note 10172 added to xslt_transform

From: Date: Sat, 16 Dec 2000 23:20:14 +0000
Subject: note 10172 added to xslt_transform
Groups: php.notes 
Request: Send a blank email to php-notes+get-8794@lists.php.net to get a copy of this message
Hello, 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. Here is the listing of the files for your testing: XSL file: test.xsl ------------------ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="html"/> <xsl:include href="test2.xsl"/> <xsl:template match="/"> <html><head>This is header</head> <body> <xsl:apply-templates select="node()"/> </body> </html> </xsl:template> </xsl:stylesheet> XSL file: text2.xsl ------------------- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:template match="bold"> <P><B><xsl:value-of select="."/></B></P> </xsl:template> <xsl:template match="red"> <P style="color:red"><xsl:value-of select="."/></P> <p> Testing</p> </xsl:template> <xsl:template match="italic"> <P><i><xsl:value-of select="."/></i></P> </xsl:template> </xsl:stylesheet> XML File: data.xml ------------------ <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <xslTutorial> <bold>Hello, world.</bold> <red>I am </red> <italic>fine.</italic> </xslTutorial> What's meaning of the error code 204? Anyone have similar problem???? http://www.php.net/manual/function.xslt-transform.php

« previous php.notes (#8794) next »