Re: XSLT In the Build Process?
I've observed a team of developers using XSLT as a build tool to generate C++ code, instead of using the UML tool that had been selected for them (Rhapsody). They modelled various aspects of the problem domain using XML, and used XSLT templates to pump out C++.[...snip...]
How common is this approach? Anyone else have experience long-term applying a similar approach?
Since an XSLT stylesheet may produce text output virtually any source code may be generated - including most documentation formats (HTML, nroff, etc).
Going further, when one combines XSLT with a dynamic, interpreted scripting language (Tcl, Python, Perl, etc) it is possible to not only use XSLT to generate code but to evaluate that code on-the-fly as part of the runtime application. One of my currently projects is a GUI XML editor that is implemented mostly as XSLT stylesheets, using Tcl/Tk as "glue" between the stylesheets and the UI.
HTHs, Steve Ball
-- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Steve.Ball@xxxxxxxxx +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format