Re: Multiple stylesheets

Subject: Re: Multiple stylesheets
From: Scott Ferguson <ferg@xxxxxxxxxx>
Date: Wed, 26 Jul 2000 17:22:39 -0700
>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


Current Thread
  • Multiple stylesheets
    • Ben C. - Wed, 26 Jul 2000 16:09:41 GMT
      • <Possible follow-ups>
      • Scott Ferguson - Wed, 26 Jul 2000 17:22:39 -0700 <=
      • Ben C. - Thu, 27 Jul 2000 14:15:09 GMT