[Webkit-unassigned] [Bug 24418] transformToFragment() method from XSLTProcessor objects returning null when processing XML data read from on-disk files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 6 01:13:29 PST 2009


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


ap at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




------- Comment #2 from ap at webkit.org  2009-03-06 01:13 PDT -------
This is caused by a mistake in stylesheet.xsl. For the first output element,
the stylesheet attempts to add an id attribute after adding a child, which is
forbidden by XSLT spec, see <http://www.w3.org/TR/xslt#creating-attributes>:

-----------
The following are all errors:
- Adding an attribute to an element after children have been added to it;
implementations may either signal the error or ignore the attribute.
...
-----------

Firefox silently ignores the error, but libxslt does not. I've checked that
there is no way to ask libxslt to be lenient in this case.

Please note that the XSLT transformation error is printed to Mac OS X console.
We certainly should make it so that errors are printed to Web Inspector console
in the future for easier debugging.


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



More information about the webkit-unassigned mailing list