<xsl:for-each> Element
looping constraints or iterations using the <xsl:for-each> element.
The syntax for the <xsl:for-each> element is:
<xsl:for-each select =Expression>
<xsl:sort> *
template body
</xsl:for-each>
the select attribute contains the expression that checks whether or not the node-set exists in the source document.
If the node-set exists, the <xsl:for-each> element selects all corresponding nodes to be displayed in the resultant document or tree.
You can specify the template body or the <xsl:sort> element within the <xsl:for-each> element.
The <xsl:sort> element helps sort numbers, strings, or node-sets.
No comments:
Post a Comment