RE: [xsl] Detecting carriage return and newline feed in XML Data

Subject: RE: [xsl] Detecting carriage return and newline feed in XML Data
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 27 Oct 2004 16:33:09 +0100
>   I tried with a "<xsl:value-of 
> select="contains(/XML/@data,'&#10;')"/> if
>   it might give a positive answer... and as well with 
> '&#13;'... always
>   false!
> 
> 
> an XML parser normalises newlines in attribute values to space
> 

But not if they are written as character references.

Michael Kay

Current Thread