GNOME Bugzilla – Bug 337509
xsl:include failed in stylesheet with non escaped path
Last modified: 2021-07-05 10:59:15 UTC
Please describe the problem: xsltproc prints: warning: failed to load external entity "included.xsl" compilation error: file dir with spaces/main.xsl line 5 element include xsl:include : unable to load included.xsl Steps to reproduce: $ xmllint --auto | xsltproc 'dir with spaces/main.xsl' - main.xsl: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:include href="included.xsl"/> </xsl:stylesheet> included.xsl: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'/> Actual results: warning: failed to load external entity "included.xsl" compilation error: file dir with spaces/main.xsl line 5 element include xsl:include : unable to load included.xsl Expected results: <?xml version="1.0"?> abc Does this happen every time? yes Other information: xmllint: using libxml version 20623 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Using libxml 20623, libxslt 10115 and libexslt 812 xsltproc was compiled against libxml 20623, libxslt 10115 and libexslt 812 libxslt 10115 was compiled against libxml 20623 libexslt 812 was compiled against libxml 20623
Created attachment 62863 [details] Test case
With escaped path to stylesheet xsltproc works fine: $ xmllint --auto | xsltproc dir%20with%20spaces/main.xsl -
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.