OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] XSLT Preserve Space in Attributes



is it possible to preserve space in attribute values when passing them to a XSLT processor?
 
 
Attribute values are normalized according to XML rules before the XSLT processor gets to see them. This means newlines are converted to spaces. This means it isn't a good idea to put JavaScript code in XML attributes, because newlines in JavaScript are significant - for example, a newline can terminate a comment, so replacing it by a space is bad news.
 
Mike Kay