Subject: RE: [xsl] Can one <xsl:choose> <xsl:output>? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Tue, 8 May 2001 14:07:56 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Can one <xsl:choose> <xsl, Gavin Corfield | Thread | RE: [xsl] Can one <xsl:choose> <xs, Dan Diebolt |
RE: [xsl] wysiwyg xml editing, Michael Kay | Date | RE: [xsl] XSL output media type, Michael Kay |
Month |