GNOME Bugzilla – Bug 355959
python: calling accessors for xslt:output attributes corrupts the stylesheet
Last modified: 2007-01-11 05:44:27 UTC
I'm trying to determine the XSLT output method defined by a stylesheet's output element using the libxslt python bindings, but I find that after I call the accessor method I can no longer use the style sheet object to execute the transformation. I've tested the problem with libxslt.stylesheet.method and libxslt.stylesheet.encoding and both display the error. This seems to be the case when calling any of the output element's accessor methods when the stylesheet's output element contains the attribute in question, but is not a problem if the output element does not contain the attribute. Oddly, callign the accessor methods returns the correct value, but after calling one the stylesheet prints some random error when you try to do a transform. I have a simple test case, will attach.
Created attachment 72778 [details] python test case Test case demonstrating the problem. Uses test.xml and test.xslt (attached below)
Created attachment 72779 [details] test case XML document
Created attachment 72780 [details] test case XSLT document
This problem appears to be fixed in the current SVN. Unfortunately, I'm not at all certain what change(s) actually fixed it.