[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Writing a stylesheet to create a stylesheet, with

Subject: Re: Writing a stylesheet to create a stylesheet, with XSLT in the XML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jun 2002 12:19:16 +0100
Re:  Writing a stylesheet to create a stylesheet

> Really? Since he was using d-o-e to output an xslt element (the
> value-of), couldnt he already be using it  to produce the stylesheet
> element?

I have more faith in human nature than you, surely no one would have
anything that horrible:-)

I think the (not totally unreasonable) aim is that you have a stylesheet
being generated from some master template but you want user configuration
to drop in xslt snippets to customise things.

> Either way, using d-o-e to create xslt sounds fishy to me

sure. any use of d-o-e is suspect. But I think here the fact that
the target is xslt is a red herring, so a fish of a different colour.
The issue is (I think) just how to get XML into the output if it started
life in a quoted attribute in the source.
the answers are one of
1) don't start from there
2) use d-o-e
3) write a mini parser (in xslt or an extension function) 
   that interprets the string as  markup and creates nodes as
   specified.

1 is best but may not be possible due to other constraints.
2 is simple if portability isn't an issue.
3 is an option if nothing else works.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.