|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Fwd: text nodes
> I am not sure how to deal with <br/> elements.
> <xsl:for-each select="following-sibling::text()[ generate-id(
> following-sibling::a[1] ) = $next_a ]">
> <xsl:value-of select="."/>
> </xsl:for-each>
value-of gives the string value of its argument, which is "" for <br/>
also you are only selecting text but you want to select all nodes
you want copy-of here, so
<xsl:for-each select="following-sibling::node()[ generate-id(
following-sibling::a[1] ) = $next_a ]">
<xsl:copy-of select="."/>
</xsl:for-each>
or more simply
<xsl:copy-of select="following-sibling::node()[ generate-id(
following-sibling::a[1] ) = $next_a ]"/>
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
|
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








