This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]