Hi
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
John Marshall
Sent: Monday, October 20, 2003 5:02 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Immediately preceding-sibling
How about:-
<xsl:template match="line">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="word">
<xsl:value-of select=".">
<xsl:if test="following-sibling!=nospace">
This test is wrong. Here you are looking for a following-sibling node,
that doesn't exists
Use <xsl:if test="following-sibling::*[1][not(self::nospace)]"> instead.
<xsl:text> </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="nospace">
<xsl:text>_</xsl:text>
</xsl:template>
(...)
Regards,
Americo Albuquerque
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list