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

Re: Q: How to select different style sheets at run time?

Subject: Re: Q: How to select different style sheets at run time?
From: dog <dog@xxxxxxxxxx>
Date: Fri, 20 Aug 1999 08:47:42 +0100
dog styl
todd.schwartz wrt:
> I am wondering if anyone knows of a standard way to change the style sheet
> applied to an XML document at run time. For example, I have a single XML
> photo album document (see below) that contains both the thumbnail and
> full-size versions of each photo. I have a default style sheet "album.xsl"
> that displays a table with the thumbnails. What I would like is to somehow
> make each thumbnail a link to the same XML document with a different style
> sheet applied, say "photo.xsl". Microsoft has proprietary DOM extensions
> that can do this; I was hoping there would be a more standard way. Seems
> like there ought to be a way to specify "document + style sheet" in a URI...

see http://www.w3.org/TR/xml-stylesheet paying attention to the 'alternate'
attribute. your server/servlet/resource-implementation can select alternate
stylesheets via information posted to a resource or by a url mechanism such as

  http://host/images        to select the default (album.xsl) stylesheet
  http://host/images?photo  to select the photo.xsl stylesheet

dog


 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.