Hello,
I have a XML Data where some carriage return and new line feed are
contained. However, XSL only interprets them as spaces. How can I have
XSL detecting eventual carriage return and consequently apply the
right thing to do in the ouput?
Exemple :
<XML>
<Text data="The is the sample text. Following come the carriage
return :
Here is the next text line."/>
</XML>
Then, in XSL :
<xsl:value-of select="/XML/@data"/>
Output is :
"The is the sample text. Following come the carriage return : Here is
the next text line."
I would like it to normally be :
"The is the sample text. Following come the carriage return :
Here is the next text line."
I tried with a "<xsl:value-of select="contains(/XML/@data,' ')"/> if
it might give a positive answer... and as well with ' '... always
false!
I'm using Saxon8 processor
Any hints would be greatful
Lawrence Michel