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

RE: Multiple output types (text and XML)

Subject: RE: Multiple output types (text and XML)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 12 Dec 2002 10:14:56 -0000
types of text
> I've got a stylesheet that depending on a parameter outputs 
> either text or XML.  Since xsl:output only takes "xml", 
> "html", "text", or a qname, I'm currently manually changing 
> the stylesheet as appropriate to output a different type.
> 
> Does anyone have any suggestions for getting around this?  I 
> know XSLT2 makes the method attribute an AVT, but right now 
> I'm working with v1.

Actually, in the latest XSLT 2.0 drafts we've withdrawn that capability,
though we've made it possible to have multiple named xsl:output
declarations from which you can choose at run-time.

Java (JAXP) processors allow you to override the xsl:output properties
from the API before invoking the transformation. If you're in the MSXML
world, it's probably another of those cases where you modify the DOM
representing the stylesheet before you compile it.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 



 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.