After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 355959 - python: calling accessors for xslt:output attributes corrupts the stylesheet
python: calling accessors for xslt:output attributes corrupts the stylesheet
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.15
Other Linux
: Normal major
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-14 13:35 UTC by Michael Gratton
Modified: 2007-01-11 05:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
python test case (869 bytes, text/plain)
2006-09-14 13:37 UTC, Michael Gratton
Details
test case XML document (61 bytes, application/xml)
2006-09-14 13:37 UTC, Michael Gratton
Details
test case XSLT document (319 bytes, application/xml)
2006-09-14 13:38 UTC, Michael Gratton
Details

Description Michael Gratton 2006-09-14 13:35:43 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.
Comment 1 Michael Gratton 2006-09-14 13:37:19 UTC
Created attachment 72778 [details]
python test case

Test case demonstrating the problem. Uses test.xml and test.xslt (attached below)
Comment 2 Michael Gratton 2006-09-14 13:37:54 UTC
Created attachment 72779 [details]
test case XML document
Comment 3 Michael Gratton 2006-09-14 13:38:23 UTC
Created attachment 72780 [details]
test case XSLT document
Comment 4 William M. Brack 2007-01-11 05:44:27 UTC
This problem appears to be fixed in the current SVN.  Unfortunately, I'm not at all certain what change(s) actually fixed it.