Hi

i have a xsl stylesheet that works from sabcmd but fails from php.

this is because of <xsl:include> tags. it looks like this is the way i write
the uri for a file in the same folder than the calling stylesheet that is
the problem. but i don't know how i should write it. tried many ways like
file://.

note : everything works with ms IE5 xsl parser (updated the latest patch
msxml3)




here is the xsl stylesheet

*******************************************************
<?xml version="1.0" encoding="ISO-8859-1" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:include href="formulaire.xsl"/>

<xsl:template match="/">
<html>
 <body>
 <xsl:call-template name="formulaire"/>
 </body>
</html>

</xsl:template>

***********************************************


the formulaire.xsl included stylesheet

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">


<xsl:template name="formulaire">

hello formulaire

</xsl:template>


</xsl:stylesheet>


and the xml fragment ****************************************


<?xml version="1.0" ?>
<vide></vide>



now from the comand line sabcmd is ok

and from php script, thanks to error handler i have this message :


XSLT processing error errno: 243 level: 3 fields: msgtype => error;
code => 243;
module => Sablotron;
URI => arg:/_stylesheet;
line => 5;
node => element '';
msg => 'arg:/formulaire.xsl' not found;


thanks for helping
pascal




Reply via email to