Subject: RE: [xsl] Testing for a following sibling node type that occurs a t a varied position From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 30 Jun 2004 11:31:06 -0400 |
I changed your test a little, so I detect all the last 'B' by testing if the name of the actual node differs from the name of the following node. I hope this will help you
----------------------------------------- <xsl:template match="root"> <xsl:for-each select="B"> <xsl:if test="not(name() = name(following-sibling::*))"> <xsl:value-of select="." /> </xsl:if> </xsl:for-each> </xsl:template> -----------------------------------------
<xsl:for-each select="B"> <xsl:if test="not(following-sibling::B)"> <xsl:value-of select="." /> </xsl:if> </xsl:for-each>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Testing for a following s, Tobias Nies | Thread | XML style selected by browser langu, Harald Brinkmann |
RE: [xsl] How to copy a string cont, Michael Kay | Date | multiple xsl:param, YAGOCB |
Month |