This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:output question
- To: "Roshan Sharma" <roshansharma at hotmail dot com>
- Subject: Re: [xsl] xsl:output question
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Tue, 27 Mar 2001 09:53:53 +0100
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <F3XItMcx4vvsGOkevWW00005663@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Roshan,
> Is there any way to dynamically format xsl:output format and have
> one style sheet control the result tree format? I tried having
> <xsl:output method="xml"|"text"|"html" >, and I hoped to have the
> right output if it is within <out> .. </out>. In stead, I get output
> in text always.
I'm afraid that you can't dynamically choose the output method that
you use with pure XSLT 1.0.
However, come XSLT 1.1 then you can - it's an attribute value
template, so you will be able to use:
<xsl:output method="{$format_type}" />
You can get this behaviour currently if you use Saxon as your
processor.
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list