ID:               16193
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         XSLT related
 Operating System: windows2000
 PHP Version:      4.1.2
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


Previous Comments:
------------------------------------------------------------------------

[2002-03-20 17:19:28] [EMAIL PROTECTED]

Here is the error:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token) in
c:\Inetpub\wwwroot\localData\tools\xml\example\xsl\xml.php on line 7
Error: XML parser error 4: not well-formed (invalid token)

Now the code imma going to show has been tried many different ways all
with the exact same error message.

Here is one sample of the php code...

$xh = xslt_create();
$args = array();
$params = array( 'foo' => 'bar' );
$result = xslt_process($xh,
'c:\Inetpub\wwwroot\localData\tools\xml\example\xsl\xml.xml','c:\Inetpub\wwwroot\localData\tools\xml\example\xsl\xml.xml',NULL,
$args,$params);
if ($result)
{
 print $result;
} else {
 print "Error: ".xslt_error($xh);
}
@xslt_free($xh);
exit;


here is the xml.xml

<?xml version="1.0"?>
<catalog>
        <cd>
                <title>str_title</title>
                <artist>str_artist</artist>
        </cd>
</catalog>


here is the xsl.xsl file

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
<xsl:for-each select="catalog/cd">
<xsl:value-of select="title"/>
<xsl:value-of select="artist"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>


I have no idea what is going on here.  Read the peeps where able to run
this on windows but no go here.  Maybe my dlls are baffed????

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16193&edit=1

Reply via email to