Sablotron on Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Burkert

    Sablotron on Windows

    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
    message:

    --- <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" ?>
    <source>
    <employee>
    <firstName>Jo e</firstName>
    <surname>Smit h</surname>
    </employee>
    </source>



    <xsl:styleshe et version="1.0"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" version="1.0" />
    <xsl:template match="employee ">
    <b>
    <xsl:value-of select="."/>
    </b>
    </xsl:template>
    <xsl:template match="surname" >
    <i>
    <xsl:value-of select="."/>
    </i>
    </xsl:template>
    </xsl:stylesheet>

    --- </snip> ---

    Does anyone has an idea?

    --
    Thanks, Martin

Working...