This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: multiple XSL from one XML
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] multiple XSL from one XML
- From: "Bob DuCharme" <bob at udico dot com>
- Date: Tue, 8 May 2001 17:08:55 -0400
- References: <19D8531DF96CDC4E98EF6A2FCC29DACA956B45@EXCHANGE.mobileum.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Stephen_Csiza wrote:
>> I have an XML document that I would like to have an initial style sheet
>> associated w/ it.
>> That part I have.... the part I can't figure out is how to allow the
users
>> to choose the style sheet they want to view it with.
"Narinder Anand" wrote:
> Try passing a parameter to the stylesheet...
To add a little more detail here, having the user make a choice and then
acting on it means some sort of interactivity, and XSLT itself doesn't
provide for interactivity. Perhaps some external process could find out the
user's choice and pass along a parameter when processing the document with
the stylesheet.
If you're talking about viewing the document with a browser and the user's
choice of stylesheet, then passing a parameter probably isn't an option. I
can't think of a way to dynamically choose a stylesheet for a static XML
document sitting on a server; the best I can think of is to add the
appropriate xml-stylesheet processing instruction to the beginning of your
XML document, based on the user's choice of stylesheet, before shipping it
to the browser.
Bob DuCharme www.snee.com/bob <bob@
snee.com> "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list