Subject: RE: how to change xsl dynamically? From: Marco.Mistroni@xxxxxxxxx Date: Fri, 10 Sep 1999 11:33:18 +0300 |
hi, maybe i do not understand fully the question, but if the problem is to change xsl dynamically you could try to do like this: you write a common stylesheet in which you import another stylesheet the name of this stylesheet is a param-variable, so that you can change it from for example a servlet. when you call for example the servlet, based on a value entered by the user you use the instruction setStylesheetParam() to set the name of the xsl stylesheet. Have i understood the problem correctly? best regards marco > -----Original Message----- > From: EXT Sam.Walker [mailto:Sam.Walker@xxxxxxxxxxxxxx] > Sent: 10. September 1999 10:35 > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: RE: how to change xsl dynamically? > > > I have been trying to do the same thing, but I haven't found > a way of doing > it other than by the use of server-side scripting which dynamically > generates the XML document header. > I think it seems a bit strange to have a fixed style sheet in an XML > document - how does this utilise the power of XML i.e. how > can you display > different views of an XML document other than by writing server side > applications or by modifying the XML header by hand? Is > anyone aware of a > technique for this? Ideally you should not have to use an > http server to > achieve this. > > --New Naive Idealistic XML User (or just Sam). > > > > -----Original Message----- > From: Michele Lee [mailto:mclee@xxxxxxxxx] > Sent: 08 September 1999 22:16 > To: xsl-list@xxxxxxxxxxxxxxxx; Michele Lee > Subject: how to change xsl dynamically? > > > > Hi, > > I'm trying to call a different stylesheet (with the same xml > document) based > on a button click. I know that Microsoft website has > examples of this, but > they seem to be Microsoft specific methods. Is there a > generic way for > changing XSL dynamically? In particular, I'm looking for > something that > will > work with both IE 5 and Netscape 5 (when it comes out). > > thanks! > > --Michele > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: how to change xsl dynamically?, Sam.Walker | Thread | RE: how to change xsl dynamically?, Steven Livingstone, |
xsl:fo in web browsers, Vidar Gundersen | Date | RE: how to change xsl dynamically?, Steven Livingstone, |
Month |