Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2009-03-09 11:29:35 -0400
committerpelder2009-03-09 11:29:35 -0400
commite205df27c429e06e051423649658d1d00aa9b744 (patch)
tree406ee8142d541f9847060212129d16f980afd97c /doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html
parenteaad1b4c4a50baa9119054a2d213172caa719b12 (diff)
downloadorg.eclipse.jet-e205df27c429e06e051423649658d1d00aa9b744.tar.gz
org.eclipse.jet-e205df27c429e06e051423649658d1d00aa9b744.tar.xz
org.eclipse.jet-e205df27c429e06e051423649658d1d00aa9b744.zip
[267644] Enable more extensive use of relative Xpath expressions
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html')
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html
index b1e1f68..bf3cb8d 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html
@@ -18,7 +18,7 @@
</TABLE>
<HR>
<P><B>iterate</B></P>
-<P><P> Write the tag contents for each in the template input model identified by an XPath expression.<P><P>If the &apos;select&apos; XPath expression selects no objects, then the contents of the tag are not processed. If the XPath expression is not well-formed, then an error results.<P><P>If the 'select' XPath expression returns a number, then the body of the loop is processed that number of times, and the variable named by 'var' is set to 1 for the first iteration, and incremented by one for each successive iteration.<P><P>If there is a variable in scope with the same name as the value &apos;var&apos; attribute, then it is hidden during the execution of this tag.<P> </P>
+<P><P> Write the tag contents for each in the template input model identified by an XPath expression.<P><P>If the &apos;select&apos; XPath expression selects no objects, then the contents of the tag are not processed. If the XPath expression is not well-formed, then an error results.<P><P>If the 'select' XPath expression returns a number, then the body of the loop is processed that number of times, and the variable named by 'var' is set to 1 for the first iteration, and incremented by one for each successive iteration.<P><P>If there is a variable in scope with the same name as the value &apos;var&apos; attribute, then it is hidden during the execution of this tag.<P><P>If the JET variable org.eclipse.jet.taglib.control.iterateSetsContext is set and evaluates to a boolean value of true, the iterate tag will set the XPath default context object to the current object in the iteration. Using this feature allows nested XPath expressions to be relative to that object (making them shorter).<P> </P>
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -27,7 +27,7 @@
<TR>
<TD width="10%">required</TD>
<TD><SPAN style="font-family: monospace">
- &lt;c:iterate select=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot;&gt;<br>
+ &lt;c:iterate select=&quot;<I>value</I>&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
&lt;/c:iterate&gt;
</SPAN></TD>
@@ -51,10 +51,6 @@
<TD width="10%">select</TD>
<TD><BR> An XPath expression that returns either a node set (a collection of elements or attributes) or a number.<BR> </TD>
</TR>
- <TR>
- <TD width="10%">var</TD>
- <TD><BR> A variable name. During each iteration, the value of the variable is an object from the set of objects selected by the 'select' XPath expression.<BR> </TD>
- </TR>
</TBODY>
</TABLE>
<HR>
@@ -64,6 +60,10 @@
<TH colspan="2" align="left">Optional Attributes</TH></TR>
<TR>
<TR>
+ <TD width="10%">var</TD>
+ <TD><BR> A variable name. During each iteration, the value of the variable is an object from the set of objects selected by the 'select' XPath expression.<BR> </TD>
+ </TR>
+ <TR>
<TD width="10%">delimiter</TD>
<TD><BR> A string that is written to the tag's output between iteration of the tag. The text is not written after the last iteration.<BR> </TD>
</TR>

Back to the top