On Tue, 2 Apr 2002, Steve at Puddletown wrote:
> The result is that Sablotron itself (command line) works fine but this
> code produces
> following error "XML parser error 4: not well-formed (invalid token)".
>
> I would appreciate any hint. Thanx alot.
>
You need to add 'file://' before your path information for both the XML
and XSL files. This solution is mentioned in the second note on step #5 on
the page refrenced in your email.
The code should look like this:
// Perform the transformation
$out = xslt_process($xsltHandle, 'file://'.getcwd().'test.xml', 'file://'.getcwd().
'test.xsl');
I was able to get the code you code to work by using the line above, but
with the original code you sent I got a diffirent error.
I've got PHP Version 4.1.1 (in Module mode), and Apache/1.3.23 on Windows
2000 Professional.
I think that since the XSLT extension is still experimental the error
messages are not quite acurate yet, but with this addition to your code
you should be in business. You might also like to check bugs.php.net for
some notes on this (XSLT) bug.
XSLT rocks!
Let me know if you have any more questions,
--> Phillip Fox -- [EMAIL PROTECTED]
405.773.WORX -- 1.888.772.WORX -- http://www.TheWorxCo.Net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php