[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|