Modules | Implementer Page: set.trailing.html Function Syntaxnode-set set:trailing(node-set, node-set) Template Syntax<xsl:call-template name="set:trailing"> <xsl:with-param name="nodes" select="node-set" /> <xsl:with-param name="node" select="node-set" /> </xsl:call-template>
The
The Implementations
The following XSLT processors support
Implementations of ExamplesFunctionThe following example shows how to use the Source<doc> <a /> <b /> <c /> <d /> <e /> <f /> <g /> <h /> </doc> Stylesheet<xsl:template match="doc"> <out> ; <xsl:value-of select="count(set:trailing(*, d))" /> ; <xsl:value-of select="count(set:trailing(*, b|d|f))" /> ; <xsl:value-of select="count(set:trailing(*, a|f|h))" /> ; <xsl:value-of select="count(set:trailing(*, x))" /> ; <xsl:value-of select="count(set:trailing(x, *))" /> ; <xsl:value-of select="count(set:trailing(d|e|f, a|e))" /> ; </out> </xsl:template> Result<out>; 4; 6; 7; 8; 0; 0; </out> |
http://www.exslt.org/set/functions/trailing/index.html last modified 2002-11-12