Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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.html92
1 files changed, 0 insertions, 92 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
deleted file mode 100644
index bf3cb8d..0000000
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/iterateTag.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META name="GENERATOR" content="IBM Software Development Platform">
-<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
-<TITLE>&lt;c:iterate&gt; - Standard JET2 Control Tags</TITLE>
-</HEAD>
-<BODY>
-<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
- <TBODY>
- <TR>
- <TH align="left">
- <P>&lt;c:iterate&gt;</P></TH>
- <TH align="right"><A href="overview.html">Standard JET2 Control Tags</A></TH>
- </TR>
- </TBODY>
-</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>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>
- <TR>
- <TH colspan="2" align="left">Tag Summary</TH></TR>
- <TR>
- <TD width="10%">required</TD>
- <TD><SPAN style="font-family: monospace">
- &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>
- </TR>
- <TR>
- <TD width="10%">full tag</TD>
- <TD><SPAN style="font-family: monospace">
- &lt;c:iterate select=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot; delimiter=&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>
- </TR>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Required Attributes</TH></TR>
- <TR>
- <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>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <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>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Example</TH></TR>
- <TR>
- <TD width="10%"></TD>
- <TD><SPAN style="font-family: monospace">
-<!-- Begin iterate example -->
- &lt;%-- Iterate over child 'a' elements of $root. $curA refers to each instance --%&gt;<BR>
- &lt;c:iterate select=&quot;$root/a&quot; var=&quot;curA&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
- &nbsp;&nbsp;&nbsp;&nbsp;Value of name: &lt;c:get select="$curA/@name"/&gt;<BR>
- &lt;/c:iterate&gt;
-<!-- End iterate example -->
-</SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-<P></P></BODY>
-</HTML>

Back to the top