|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Multiple stylesheets
>From Ben C > This is what I am trying to get to work: > I have Resin server set up on a machine. On it I have an XML and two XSL > documents. One of the XML documents turns it into HTML wich can then be > viewed as a company web page. On the web page I would like a link that > takes that same XML document and the second XSL document (a stylesheet with > the RTF format hard coded) and generates an RTF file dynamically. Is this > possible? Could somone point me in the right direction if it is? It's only available in the latest Resin 1.2 beta snapshot. There's an example at: http://www.caucho.com/products/resin/examples/xsl/vary.xtp That example is also in the beta snapshot. The example uses XTP, but will also work as an XSL filter. Basically, your dispatch servlet (or JSP), will set the "caucho.xsl.stylesheet" attribute of the servlet Request object. The XSL processor will use that stylesheet instead of the default one. That way you can vary the stylesheet based on anything you like in the request, e.g. a query parameter. Scott Ferguson Caucho Technology XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








