Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html')
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html
index 22ef3ef..09f90f4 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/visitorTag.html
@@ -42,7 +42,6 @@
</TR>
</TBODY>
</TABLE>
-<exists node="tag/attribute use='required'">
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -58,7 +57,6 @@
</TR>
</TBODY>
</TABLE>
-</exists>
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -68,9 +66,12 @@
<TD width="10%"></TD>
<TD><SPAN style="font-family: monospace">
<!-- Begin visitor example -->
-
- &lt;c:visitor select=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
+ &lt;%-- traverse a model starting at $root. $cur refers to current node --%>
+ &lt;c:visitor select=&quot;$root&quot; var=&quot;cur&quot;&gt;<br>
+ &lt;c:visit test=&quot;local-name($cur) = 'a'&quot;&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process of test is true</I><BR>
+ &lt;/c:visit&gt;<BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>... other &lt;c:visit&gt; tags ...</I><BR>
&lt;/c:visitor&gt;
<!-- End visitor example -->
</SPAN></TD>

Back to the top