[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using external XML to control output of XSLT
This certainly is a case where generating an XSLT stylesheet (or modifying parts of a stylesheet) is often a useful approach. A stylesheet is just an XML document, so it's not essentially different from any other transformation: if you know how to write XSLT, it shouldn't be difficult to write XSLT that generates XSLT. One thing that makes it a little bit easier is xsl:namespace-alias. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Michael Reed [mailto:michaelr@xxxxxxxxxxxxxxxx] > Sent: 30 April 2009 14:15 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Using external XML to control output of XSLT > > Been researching this scenario and can't find anything to > confirm whether it is possible and (if it is possible) how to > set it up. The scenario is to use a transform that would be > taking data like Name, JobTitle, Company, Phone, etc. The > transform's job is to handle the output but I would like to > have a separate XML file that controls what fields appear and > in what order for the output. So if a user who is not > familiar with transforms want to make Company first and then > the Name, they could just modify the XML file and it would be > independent of the data or transform. > > I thought I had read a long time ago about using a transform > to create a transform but have been unable to find the > article or intuit the process whereby I could make this happen. > > Thank you for any suggestions, > Michael Reed
|
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
|