Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » XML+XSL matters » Hacking into the XSLT process
Re: Hacking into the XSLT process [message #1565 is a reply to message #1563] Fri, 22 August 2008 11:17 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
If you want to export data in XML format then why bother to go through an XSLT process? Why can't you have a process which outputs an XML file directly without including an XSL transform? You won't then have to modify an XSL stylesheet to do what you want.

There are already several examples in the framework of functions which export data to non-database files (such as the dictionary export and the menu subsystem export), so why can't you use one of those as a model? It is very easy with PHP to create an XML document and then write it out to disk.

All of the xsl templates get their data from the same source - the XML file which is generated from the PHP code just before the XSLT process is executed. The PHP code which creates the XML document can be found within file 'include.xml.php?.inc'.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Change XSLT based on role
Next Topic: XSL error when supposedly using csxslt
Goto Forum:
  


Current Time: Thu Nov 21 12:06:28 EST 2024

Total time taken to generate the page: 0.01061 seconds