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

Re: Preceding comment() match

Subject: Re: Preceding comment() match
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 22 Dec 2006 00:04:18 GMT
Re:  Preceding comment() match
> Currently, this:
> 
> <xsl:value-of select="preceding-sibling::node()[not(self::text()[not(normalize-space())])][1][self::comment()]"/>
> Produces no line breaks.

the line breaks are copied to the html but are by default rendered as
space, you can render then as linebreaks using css or a <pre> element.

Otherwise you need to replace #10 by <br/> using a replace template (the
faq has some examples) or xsl:analyze-string in xslt2

David

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.