Description
Namespace : insight-topic="http://shaman.paris5.fr/xsp/insight-topic"
Element name : insight-topic:fetch
Purpose :
Define a given Topic as current.
Inner scope
Current Topic node :
For each tree node representing a Topic, a current Topic is
defined inside the representing tag.
Parameters
Name
|
Role
|
Mandatory
|
Remarks
|
id |
Sets the Id of the Topic to fetch.
|
Yes, unless fqname is defined.
|
Exclusive with from-fqname .
|
fqname |
Sets the full-qualified name of the Topic to fetch.
(root Topic has FQName '/').
|
Yes, unless id is defined.
|
Exclusive with from-id .
Should be used for tests only. As a matter of fact, a Topic
name can change during Topic's life, making its FQName
changing. So it is not a reliable information, Topic Id
should be preferred instead whenever possible.
|
Examples
Example 1
Creates a Topic under the root Topic,
and display its name using
<insight-topic:get-current> element.
<insight:operations>
<insight-topic:create parent-fqname="/" name="1" />
<insight-topic:fetch fqname="/1" >
<p>
Topic FQName : <insight-topic:get-fqname>
</p>
</insight-topic:create>
</insight:operations>
|
This produces following XHTML output :
|