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 337509 - xsl:include failed in stylesheet with non escaped path
xsl:include failed in stylesheet with non escaped path
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: general
1.1.15
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-06 14:34 UTC by vyt
Modified: 2021-07-05 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (455 bytes, application/x-compressed-tar)
2006-04-06 14:36 UTC, vyt
Details

Description vyt 2006-04-06 14:34:42 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
Comment 1 vyt 2006-04-06 14:36:13 UTC
Created attachment 62863 [details]
Test case
Comment 2 vyt 2006-04-06 14:37:17 UTC
With escaped path to stylesheet xsltproc works fine:
$ xmllint --auto | xsltproc dir%20with%20spaces/main.xsl -
Comment 3 GNOME Infrastructure Team 2021-07-05 10:59:15 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.