Subject: AW: [xsl] XPATH or 2 templates ? From: Delaney Robin <Robin.Delaney@xxxxxxx> Date: Mon, 18 Nov 2002 14:11:46 +0100 |
I got it by trial and error ........... I can seperate the two template-match selections (must have done something wrong before). Anyway this does what I want. Sorry for wasting recources !! <xsl:template match="Concat"> <xsl:for-each select="./*[1]//*[not(*)]"> <xsl:value-of select="local-name()"/> <xsl:if test="position()!=last()">;</xsl:if> </xsl:for-each> <!-- Force a <cr> --> <xsl:text> </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="Concat/*"> <xsl:for-each select=".//*[not(*)]"> <xsl:value-of select="node()"/> <xsl:if test="position()!=last()">;</xsl:if> </xsl:for-each> <xsl:text> </xsl:text> <!-- Force a <cr> --> </xsl:template> - Robin XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPATH or 2 templates ?, G. Ken Holman | Thread | [xsl] MIME Type for XSL, Alexander Voropay |
Re: [xsl] XPATH or 2 templates ?, G. Ken Holman | Date | Re: [xsl] XPATH or 2 templates ?, David Carlisle |
Month |