[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

Subject: RE: Using external XML to control output of XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 30 Apr 2009 14:41:12 +0100
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.