|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8299 xsl:include doesn't work
Submitted: 2000-12-16 18:58 UTC Modified: 2001-01-16 06:26 UTC
From: jpoon88 at yahoo dot com Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0.3pl1 OS: RedHat Linux
Private report: No CVE-ID: None
 [2000-12-16 18:58 UTC] jpoon88 at yahoo dot com
We encountered an error when using "xsl:include" syntax.
It always return "error no: 242 " when I transform my xml 
file with my xsl file. I use the same file with MS XML Parser 3.0, it work okay. I confirmed with Tom Kaiser that 
xsl:include is supported in 0.43, but it's definitely better to upgrade to 0.44 (and to 0.5 when it's out finally).

Here is the listing of the files for your testing:
XSL file: test.xsl
 <xsl:stylesheet version="1.0"
 xmlns:xsl="" >
 <xsl:output method="html"/>
 <xsl:include href="test2.xsl"/>
 <xsl:template match="/">
 <html><head>This is header</head>
 <xsl:apply-templates select="node()"/>

 XSL file: text2.xsl
 <xsl:stylesheet version="1.0"
 xmlns:xsl="" >
 <xsl:template match="bold">
 <P><B><xsl:value-of select="."/></B></P>
 <xsl:template match="red">
 <P style="color:red"><xsl:value-of
 <p> Testing</p>
 <xsl:template match="italic">
 <P><i><xsl:value-of select="."/></i></P>
 XML File: data.xml
 <?xml version="1.0"?>
 <?xml-stylesheet type="text/xsl" href="test.xsl"?>
         <bold>Hello, world.</bold>
         <red>I am </red>
What's meaning of the error code 204? Anyone have similar problem????


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-16 06:26 UTC]
You must specify the absolute path to the xslt document you are including (feedback from the user).
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jul 08 00:01:26 2020 UTC