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

Re: XML allowing variable XSL application for browsers

Subject: Re: XML allowing variable XSL application for browsers?
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 21 Apr 2005 05:07:25 +0100
stylesheet variable
>>>>> "John" == John  <john-xsl-list@xxxxxxxx> writes:

    John> I have an XML file on a web server which references an XSL
    John> with code as follows:

    John> <?xml-stylesheet type="text/xsl" href="somefile.xsl"?>

    John> When IE or Firefox requests this XML file, the browser
    John> detects the stylesheet reference and applies it to the XML
    John> to transform it into HTML.  This works great, but what if I
    John> want to let the user choose from multiple XSL files which
    John> can be applied to the same XML? 

You have to code alternate="yes" and title="some descriptive choice-name" 
on the xml-stylesheet PI.

And least, that's how it's supposed to work - I haven't tried it.
-- 
Colin Paul Adams
Preston Lancashire

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.