[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: multiple stylesheet for an XML file


Subject: RE: multiple stylesheet for an XML file
From: Paul Tyng <paul.tyng@xxxxxxxxxxxxx>
Date: Fri, 3 Dec 1999 14:35:56 -0500

you could use asp to generate the xml file, it could use the fso to
determine availiable style sheets to apply to the xml and present the user
with a list to pick from, then ie5 could process on the client side, that
way the asp could generate the stylesheet tag and you wouldn't have to deal
with some of the limitations of ie5

-----Original Message-----
From: Richard Lander [mailto:rlander@xxxxxxxxxxxxxxxxxxx]
Sent: Friday, December 03, 1999 1:51 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: RE: multiple stylesheet for an XML file


 Paul,

Good work, but it doesn't address the problem, at least in my mind. I'd like
a way of dealing with abitrary stylesheets and have to hard-code as little
as possible. I'd envision something like a dual-boot manager, by which you
get to pick the stylesheet before you start, or optionally pick after the
default one had loaded. Ideally, the browser would have a feature that would
allow you to pick from a set of alternative stylesheets after it had loaded
the default one. Your site is nice though.

Thanks,

Richard.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Paul Tyng
Sent: Friday, December 03, 1999 1:09 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: multiple stylesheet for an XML file


check out http://www.paultyng.com/xml

i use ie5 to apply different style sheets to one xml file and display
different results

-----Original Message-----
From: Richard Lander [mailto:rlander@xxxxxxxxxxxxxxxxxxx]
Sent: Friday, December 03, 1999 11:43 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: multiple stylesheet for an XML file


 Hello,

I've got an idea. Why not make your default stylesheet a really short one
that displays a HTML forms pulldown-menu or scroll-box that displays the
available stylesheets. I'm not sure off-hand if IE5-XSL can pick out
processing instructions. If not, you can hard-code the stylesheets into
the code. From there, you can choose the stylesheet you want among many,
and then use the DOM to load and execute that chosen stylesheet. Assuming
that IE5-XSL will allow the first part, I don't think it would be very
hard to do.

Another way of doing it would be to include that code in your regular
default stylesheet, and display the above idea if multiple stylesheets
exist, and display your document regularly if the regular default
stylesheet was the only one. Sounds good to me.

On that note, I've got a question. I know that it is easy to dynamically
load an XSL stylsheet, but is there a way to do the same with CSS
stylesheets? So, could CSS stylesheets be among the listing, as described
above?

Sounds good,

Richard.


On Fri, 3 Dec 1999, Larry Mason wrote:

>
>
> I am using a servlet to process XML via XSLT.  With this approach I can
either
> pass in the stylesheet to use or a parameter to a single styslesheet with
has
> several internal transformations.  This gives me the one XML to many XSL
you
> seem to be looking for.
> Of course it means server-side only processing but then that lets me cover
all
> browsers (and network appliances).
> Larry
>
>
>
>
>
> david <david.mas@xxxxxxxxxx> on 12/03/99 08:22:01 AM
>
> Please respond to xsl-list@xxxxxxxxxxxxxxxx
>
> To:   xsl-list@xxxxxxxxxxxxxxxx
> cc:    (bcc: Larry Mason/Dallas/US/i2Tech)
> Subject:  multiple stylesheet for an XML file
>
>
>
> when an XML file is accessed in the internet, the usal way to associate
> a stylesheet is the <?xsl-stylesheet ...?> tag.
>
> But what if I want to assiociate more than one stylesheet to the XML
> file, depending of the URL. Copying the XML file and changing the link
> to the stylesheet is not a satisfying solution...
>
> Isn't it possible to have "fake" XML file with just the <?xsl-stylesheet
> ...?> tag and a link to the XML data file ?
>
> Or to assiociate the stylesheet dynamicly with an arg passed througth
> the URL
>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>

<?xml version="1.0" standalone="yes"?>
<INFO>
<NAME>Richard Lander</NAME>
<EMAIL>relander at uwaterloo.ca</EMAIL>
<WEB>http://pdbeam.uwaterloo.ca/~rlander</WEB>
</INFO>




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


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


 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
Keywords