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

RE: Question regarding model-view architecture.


model view architecture

> Let's say I create an XML document, say, test.xml and link it 
> to an xsl file called test.xsl, now if I access the xml 
> document, it renders the data using that xsl. So far so good.
> 
> My question is: this means I cannot apply different views to 
> the same document. Is that right?
> 
> I know this can be done using server-side scripting, but if I 
> have only static XML (and XSL) documents, do I have any options?

Judging by your description, I would guess that you are marking
up all your xml on a web browser. 

If you want to be able to apply multiple stylesheets to xml data,
or a single stylesheet to multiple xml data sheets, on the fly,
on the client, then you will have to do it programmatically in
the browser.  

This is primarily done with the XMLDOMDocument object.

I recently saw a link in the XSL list to a crossbrowser API that 
assists in doing this for Netscape and IE at 
http://sarissa.sourceforge.net/

hope this helps,

Chris Strolia-Davis
Database Specialist
Contractor - CDO Technologies Inc.
 

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.