Convert code is designed to apply an arbitrary XSL over any XML from the local server (or remote server via a Proxy or [[Apache_Remote_Simple?]].
Unlike most XSL conversions, this one is designed to be controlled by the developer/web designer.
Some examples...
/MyApplication/SomeData.xml
To represent your XML data to the user as RSS
/z/convert/mydata2rss/MyApplication/SomeData.xml
Note: you can use the prefix versions as well, using mod_rewrite. You can also even do automatic conversions based on all sorts of rules.For example based on Extension (rss = rss2html, atom = atom2html, svg = svg2png and more); or time of day, keep your mind open.
/MyApplication/SomeData.xml?zaltana_convert=mydata2rss /view/MyApplication/SomeData.xml
The XSL itself is just stored in a URL. Note that although it is normally just uploaded and managed directly as a file on disk, this is not a limitation. If you choose to generate the XSL from a database, or store it in Subversion - this is all valid methods.
See Apache Subproc
Source
Browse Trunk
Checkout command: svn co http://zaltana.org/project/zaltana/Apache-Convert/trunk Apache-Convert
