You are here:  » Feed parsed XML data into XSL file?


Feed parsed XML data into XSL file?

Submitted by ne00 on Sat, 2007-03-03 22:09 in

Is it possible to feed the parsed XML data into an XSL file? Current I have to deal with a lot of XML files and within each file I need to insert in <?xml-stylesheet type="text/xsl" href="styles.xsl"?>.

Would this parser save me the time from having to do this? Can I still use the XSL file or would i need to define the output into the PHP file with css?

thanks.

Submitted by support on Sun, 2007-03-04 08:55

Hi,

Magic Parser removes all the XML context handing you a simple array in each call to your record handler function containing the extracted data, so it wouldn't be a solution with regards to changing the declaration in your XML file.

I think you second statement is correct; if you used Magic Parser your solution would involve standard PHP to generate HTML, which could be styled using CSS as normal...

Hope this helps,
Cheers,
David.