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 172832 - Using document() in stylesheet, xsltproc to stdout is correct but output to file is not
Using document() in stylesheet, xsltproc to stdout is correct but output to f...
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
1.1.14
Other Mac OS
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-06 16:35 UTC by Rush Manbert
Modified: 2021-07-05 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Contains test files described in the bug report, plus good and bad output files (1.65 KB, application/zip)
2005-04-06 16:53 UTC, Rush Manbert
Details

Description Rush Manbert 2005-04-06 16:35:57 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.
Comment 1 Rush Manbert 2005-04-06 16:53:45 UTC
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
Comment 2 GNOME Infrastructure Team 2021-07-05 10:59:48 UTC
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.