xsl-list
[Top] [All Lists]

Re: [xsl] XSLT engines and terminal newline

2006-09-19 11:47:33
Michael Kay <mike(_at_)saxonica(_dot_)com>, 2006-09-19 18:06 +0100:

If that's the only difference in the serialized output, I'm amazed. Many
aspects of serialization aren't defined in the specs to that level of detail
- for example, the order of attributes is unpredictable. The general rule is
that if the XML parser treats two documents in the same way, then they are
equivalent. The correct way to compare results is to put them both through a
canonicalizer that removes these differences.

The one concern I had was just to ensure that the serialized
output is newline-terminated. For HTML output, running the output
through a canonicalizer isn't an option.

  --Mike

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--