[Webkit-unassigned] [Bug 53375] space character treated as newline with XSLT stylesheet when run using XSLTProcessor script API, but not when using xml-stylesheet pi

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 30 13:57:48 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=53375





--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2011-01-30 13:57:49 PST ---
> Which spec is violated by transforming a DOM tree with XSLT?

The XSLT spec, <http://www.w3.org/TR/xslt>. The spec is written in terms of XML documents, not browser DOM trees. An XML document is text, and DOM isn't even a good data model for XPath and XSLT, which work with XML Infoset.

Obviously, an implementation can do anything internally, as long as there is no observable difference.

> If WebKit serializes the stylesheet for further processing with its XSLT processor then that
> step should not change the meaning of the stylesheet. I don't think the behaviour
> of XMLSerializer in Firefox should be used as an argument.

Well, XMLSerializer is a non-standard Mozilla extension, so we should be very cautious about introducing intentional incompatibilities with Firefox.

It is true that we don't necessarily have to use the same serialization algorithm in XMLSerializer and in XSLTProcessor. But that's highly desirable in practice, as anything else would be horribly confusing.

Sounds like the best course of action would be for both Mozilla and us to change XML serialization to follow <http://www.w3.org/TR/xslt-xquery-serialization/>. I'll ask some Mozilla folks what they think about <https://bugzilla.mozilla.org/show_bug.cgi?id=398272>.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list