OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Question regarding model-view architecture.

[ Lists Home | Date Index | Thread Index ]


> 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.
 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS