Subject: RE: [xsl] Multiple output types (text and XML) From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 12 Dec 2002 10:14:56 -0000 |
> I've got a stylesheet that depending on a parameter outputs > either text or XML. Since xsl:output only takes "xml", > "html", "text", or a qname, I'm currently manually changing > the stylesheet as appropriate to output a different type. > > Does anyone have any suggestions for getting around this? I > know XSLT2 makes the method attribute an AVT, but right now > I'm working with v1. Actually, in the latest XSLT 2.0 drafts we've withdrawn that capability, though we've made it possible to have multiple named xsl:output declarations from which you can choose at run-time. Java (JAXP) processors allow you to override the xsl:output properties from the API before invoking the transformation. If you're in the MSXML world, it's probably another of those cases where you modify the DOM representing the stylesheet before you compile it. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Multiple output types (te, David Carlisle | Thread | [xsl] XSL - IFRAME - HTML LAYER, Adrian Bell |
RE: [xsl] xml:preserve space makes , Michael Kay | Date | RE: [xsl] Problem on: Cascading xsl, Michael Kay |
Month |