GNOME Bugzilla – Bug 172832
Using document() in stylesheet, xsltproc to stdout is correct but output to file is not
Last modified: 2021-07-05 10:59:48 UTC
Version details: libxml2-2.6.19, no gnome Distribution/Version: 10.3.8 Use the attached files stylesheet.xsl, test.xml, and snentry.xml. Run xsltproc as follows: xsltproc --novalid stylesheet.xsl test.xml Output to stdout will be as expected Now run using: xsltproc --novalid -o xform.xml stylesheet.xsl test.xml Output to xform.xml will be different than that to stdout, and will be incorrect.
Created attachment 39760 [details] Contains test files described in the bug report, plus good and bad output files Archive contains: stylesheet.xsl test.xml snentry.xml xform.xml (example of incorrect output) expectedXform.xml (example of correct output) Good output genereted by: xsltproc --novalid stylesheet.xsl test.xml >expectedXform.xml Bad output generated by: xsltproc --novalid -o xform.xml stylesheet.xsl test.xml
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.