|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: XPATH or 2 templates ?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








