xsl-list
[Top] [All Lists]

Re: [xsl] Preceding comment() match

2006-12-21 17:39:15

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>