[Home] [By Thread] [By Date] [Recent Entries]
> 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.
|

Cart



