[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Question regarding 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|