From: [EMAIL PROTECTED] Operating system: windows2000 PHP version: 4.1.2 PHP Bug Type: XSLT related Bug description: XML parser error 4: not well-formed (invalid token) in
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 bug report at http://bugs.php.net/?id=16193&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16193&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16193&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16193&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16193&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16193&r=support Expected behavior: http://bugs.php.net/fix.php?id=16193&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16193&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16193&r=submittedtwice