[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: multiple XSL from one XML

Subject: Re: multiple XSL from one XML
From: Pedro Pastor <pps@xxxxx>
Date: Wed, 09 May 2001 00:48:06 +0200
xml multiple xsl
Ok, there must be any kind of dynamicity to change the way the XML source
document is going to be presented (pre-processed). This usually mean a control
object (process) at the server (servlet, jsp, asp, etc.). But let's consider
the following scenario:

- Suppose we have an XML database (whatever it means, let's say a repository of
XML-structured data talking HTTP to the rest of the world).
- Suppose we have an XML-Query Language with a syntax supporting constructive
directives.

You can:
- build a web form asking for different options,
- converting the parameters into a XML-query sentence,
- send it via HTTP,

and the XML-DBMS produces the magic (combining the XML source with the
appropriate templates).

Of course there is a control process too, but we can get rid of intermediate
processes like the ones mentioned above and encapsulate the dynamicity into the
DBMS.

Well, just an idea.

Bob DuCharme wrote:

> 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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.