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

Re: Dynamic stylesheet selection

Subject: Re: Dynamic stylesheet selection
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 4 Apr 2001 13:43:12 +0100
stylesheet select
> is it possible to choose one stylesheet or another based on input,

Not on input to XSL (it's too late by then) but of course your wrapper
API might allow such a thing.

> A subquestion of that is: is it possible to select different output
> types depending on input

Not in standard XSLT 1.0 but in the 1.1 proposals the attributes to
xsl:output become AVT's so can be changed on the fly.
However for the case you mention:

> for a certain XML document, I
> want to output XML, but for others, I want to output HTML. 

all you need do is not specify an output type, then if the top level
result element is html (any case) it will default to html output type,
otherwise it will use xml.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 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.