[xml] pb xsltproc path confusion with document() function



Hi.

With xsltproc (see versions below) :

Using libxml 20511, libxslt 10033 and libexslt 722
xsltproc was compiled against libxml 20511, libxslt 10033 and libexslt 722
libxslt 10033 was compiled against libxml 20511
libexslt 722 was compiled against libxml 20511


I have a problem when using the document() function
in a template of the kind

<xsl:template match="*[ refcode]">
<xsl:apply-templates select="document(concat(@refcode,'.xml'))"/>
</xsl:template>

My stylesheet filename is /usr/local/polyTeXML/xsl/global.xsl

When applying it the following document

<SPModule>
         <SPSession refcode="MQ01_S03"/>
</SPModule>

the above template is encountered, I have the following message :

warning: failed to load external entity "/usr/local/polyTeXML/xsl/MQ01_S03.xml"

In fact xsltproc tries to find the document in the folder
of the stylesheet instead of the current working directory
(the one when xsltproc was run).

Is it a know bug ?

Cheers.

S.




--
e-mail : Stephane Mottelet utc fr
www : http://www.dma.utc.fr/~mottelet




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]