This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Can one <xsl:choose> <xsl:output>?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Can one <xsl:choose> <xsl:output>?
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 8 May 2001 14:07:56 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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