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

RE: Can one <xsl:choose> <xsl:output>?

Subject: RE: Can one <xsl:choose> <xsl:output>?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 8 May 2001 14:07:56 +0100
RE:  Can one <xsl:choose> <xsl:output>?
> In the xsl, I want to do something like:
> <xsl:choose>
> <xsl:when test="response/@TYPE='Table'">
>   <xsl:output doctype-system="TableData.dtd"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:output doctype-system="ChartData.dtd"/>
> </xsl:otherwise>
> </xsl:choose>

You can't.

The XSLT 1.1 WD allows the attributes of xsl:output to be AVTs, which solves
the problem in most cases.

You could consider having a secondary output file using xalan:redirect.

Or use setOutputProperty() in the JAXP 1.1 API.

Mike Kay
Software AG
>


 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.