Re: php, win32, xml bug?

From: Date: Tue, 26 Feb 2002 16:30:21 +0000
Subject: Re: php, win32, xml bug?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-86270@lists.php.net to get a copy of this message
If you happen to be running PHP on Windows, you can use the MSXML engine through it's COM interface. Unfortunately, I haven't seen any documentation on plugging any of the other engines into the new (for PHP4.1) XSLT API. So, I don't know of a solution on UNIX (most of my XSLT work is in a Websphere on Win2K environment). Here's the basic COM code for Windows servers: $xml_com = new COM("MSXML.DOMDocument") or die("MSXML must be installed on server."); $xsl_com = new COM("MSXML.DOMDocument") or die("MSXML must be installed on server."); $xml_com -> loadXML($xml_string); $xsl_com -> loadXML($xsl_string); $output = $xml_com -> transformNode($xsl_com); "Alexander GräF" <graef@milanomedien.com> wrote in message news:20020226115650.85017.qmail@pb1.pair.com... > > "J Wynia" <letterj@phpgeek.com> schrieb im Newsbeitrag > news:20020226024603.10825.qmail@pb1.pair.com... > > The first thing I'd do is run your transformation through one of (or all > of) > > the rest of the XSL engines out there. There's a lot more variability out > > there in XSL engines. Unfortunately, Sablotron isn't the most conformant > of > > the field. I haven't used Sablotron in a while for XSLT processing so am > not > > sure of your specific question. I left Sablotron behind for reasons like > > this one. It fails on a great many transformations that run through Xalan, > > Saxon and MSXML identically with no errors. My general rule is if it blows > > up all XSLT engines, it's probably my XSLT. If Sablotron's the only one > that > > chokes, it's Sablotron. The new API for XSLT should allow for the other > > engines, however, I haven't seen anything on putting the rest of them into > > the equation, yet. > > > > i tested it on MSXSL, no problem, all runs fine. but how to choose another > xsl-engine? > > thanks > alex > >

« previous php.general (#86270) next »