xsl-list
[Top] [All Lists]

RE: Detecting carriage return and newline feed in XML Data

2004-10-27 08:33:09

  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



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