Subject: RE: [xsl] Grouping over multiple files From: "Kevin Bird" <kevin.bird@xxxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 14 Jan 2006 21:20:41 -0000 |
Hi Michael & Florent Thank you for your answers. Florent, would you be kind enough to explain the function. > <xsl:function name="k:get-source" as="xs:string"> > <xsl:param name="node" as="node()"/> > <xsl:variable name="root" as="node()" > select="root($node)"/> > <xsl:choose> > <xsl:when test="$root = $north"> > <xsl:text>north</xsl:text> > </xsl:when> > <xsl:when test="$root = $south"> > <xsl:text>south</xsl:text> > </xsl:when> > <xsl:when test="$root = $east"> > <xsl:text>east</xsl:text> > </xsl:when> > <xsl:when test="$root = $west"> > <xsl:text>west</xsl:text> > </xsl:when> > <xsl:otherwise> > <xsl:message terminate="yes"> > <xsl:text>Unjnown source!</xsl:text> > </xsl:message> > </xsl:otherwise> > </xsl:choose> > </xsl:function> > Thanks. -- Kevin
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Grouping over multiple fi, Florent Georges | Thread | RE: [xsl] Grouping over multiple fi, Michael Kay |
Re: [xsl] Web-sevices in xslt, António Mota | Date | RE: [xsl] Grouping over multiple fi, Michael Kay |
Month |