Re: [PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hi, The problem is then applying the xsl transform to what is in that variable. It appears to transform everything in $xml, rather than just what is in $content. Managed to solve my own problem... Using: $content = $proc->transformToXML(DomDocument::loadXML($content)); To create an xml do

Re: [PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hi, you might start by using some braces to explicitly delineate the if and foreach block? ...personally I'm not sure exactly what your code should be doing. Putting the brackets in doesn't make any difference. That part of the code appears to work perfectly - what it does is scan through

[PHP] xsltprocessor

2005-07-31 Thread Allan Jardine
Hello all, I'm having a real problem with applying an xslt transform to a selected part of an xml document. I load the xml document using simplexml_load_file, and the same with the xsl file. Using the xpath function for simplexml I select a part of the xml document and store it in a diffe