It worked from php with file://absolute_path
but this form now issues a access denied when relying on
MSXML3 parser ...because of server access rights i suppose
(i toggle from sablotron to msxml3 sending raw xml + xsl
stylesheet or already parsed into html with sablotron xml )
thank you
>
> I had the very same problem using PHP. Try addressing the
stylesheet using a
> full path to the file (on the local drive). There seems to
be a problem in
> the way the php extension for Sablotron handles file
requests. All works
> fine for me when i use something like
>
> <xsl:include href="c:\docroot\style.xsl"/>
>
> As far as i know there's been no bugfix for PHP. The
developers are aware of
> this behaviour.
>
> Cheers,
>
> Peter
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: "Sablotron Mailing List" <[EMAIL PROTECTED]>
> Sent: Saturday, April 21, 2001 7:27 PM
> Subject: [Sab] problem with xsl:include
>
>
> >
> > 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
> >
> >
> >
>
>