[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Immediately preceding-sibling
Hi > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > John Marshall > Sent: Monday, October 20, 2003 5:02 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: 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
|
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
|