Subject: Re: [xsl] Preceding comment() match From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 22 Dec 2006 00:04:18 GMT |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Preceding comment() match, Karl Stubsjoen | Thread | RE: [xsl] Preceding comment() match, Michael Kay |
Re: [xsl] Preceding comment() match, Karl Stubsjoen | Date | RE: [xsl] Preceding comment() match, Michael Kay |
Month |