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: Gavin Corfield <gavin at twobluedots dot com dot au>
- Date: Tue, 08 May 2001 10:47:15 +0800
- Organization: two blue dots
- References: <000301c0d759$30b62b00$a301a8c0@3d38kw1n0b1udc>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Tim Watts wrote:
>
> I'm not sure this can be done, but you could try by using Choose to set a
> variable, as I have shown below.
>
No it can't you can't have <xsl:choose> at the top level, it can only be
within a template.
<xsl:output> can only be used as a child of the root element.
You can't use the xml source file to specify the output as you can only
access the data within it once you have matched the root element which
has to happen below the top level.
gavin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list