[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Immediately preceding-sibling

Subject: RE: Immediately preceding-sibling
From: Americo Albuquerque <melinor@xxxxxxxx>
Date: Mon, 20 Oct 2003 17:51:07 +0100
preceding sib
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.