By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,125 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,125 IT Pros & Developers. It's quick & easy.

Sablotron on Windows

P: n/a
hello everyone,

i'm generating HTML output with a PHP-Script using the xslt-functions
from the php_xslt-extension and an XML / XSLT - File.

Some system-infos:

PHP 4.3.4
Apache/1.3.20 (Win32)

expat.dll, iconv.dll and sablot.dll are the one delivered with the
zipped 4.3.4-package and were copied to the system32 folder as usual.

On line 36 my script uses xslt_process(). It prints out following error

--- <snip> ---

Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token) in d:\wwwroot\xml_transform\index.php on line 36
XSLT processing error: XML parser error 4: not well-formed (invalid token)

--- </snip> ---

Same script, same XML, XSL-file with same PHP version 4.3.4 compiled
with '--enable-xslt' '--with-xslt-sablot' on a unix-system works fine,
and generates the HTML output without any problems.

I checked my XML and XSL file to be well-formed with several services on
the net. There shouldn't be a problem about this.

Here are the both files passed the my xslt_process()-function:

--- <snip> ---

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>

<xsl:stylesheet version="1.0"
<xsl:output method="html" version="1.0" />
<xsl:template match="employee">
<xsl:value-of select="."/>
<xsl:template match="surname">
<xsl:value-of select="."/>

--- </snip> ---

Does anyone has an idea?

Thanks, Martin

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.