Subject: Re: [xsl] question about import/include From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Fri, 04 Apr 2003 21:46:13 +0200 |
...I have the following stylesheet with a named template called "convert_linefeeds" which converts CRLF's to new paragraphs of html. It works fine when the named template is part of the stylesheet. However, I want to reuse it in other places but when using import/include the template doesn't work.
<xsl:when test="contains($input, ' ')">
^^^ The problem appears to be here. A conformant XML parser is required to normalize CRLF pairs into a single LF (Actually it requires special tricks to get a CR passed through to the reading application, look it up in the spec). See http://www.w3.org/TR/REC-xml#sec-line-ends
Just try <xsl:when test="contains($input, ' ')">
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] question about import/include, Craig Kattner | Thread | [xsl] reference external javascript, Mac Martine |
Re: [xsl] data vs. xml, Mike Brown | Date | [xsl] Tag within tag, David B. Bitton |
Month |