Subject: Re: [xsl] Call another XML and XSL from an XSL outputting HTML From: "M. David Peterson" <m.david@xxxxxxxxxxxxx> Date: Sun, 01 Jul 2007 10:25:31 -0600 |
On Sun, 01 Jul 2007 09:56:13 -0600, Manfred Staudinger <manfred.staudinger@xxxxxxxxx> wrote:
What I don't know is who to apply a different stylesheet with it???
This is a definite -1 for this technique. There's two ways I can think of working around this,
1) Have two different file versions with the same XML data, changing the value the PI. 2) Import the necessary transformation files and use an XML driven approach to deciding which one to use (e.g. <xsl:template match="/foo">...</xsl:template> <xsl:template match="/bar">...</xsl:template>
Dependent on the size of both the XML data file and the XML transformation file(s), there could be a significant barrier to entry for using either of the above solutions. The best solution in this regard would be to use JavaScript-based transformations.
-- /M:D
M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Call another XML and XSL , Manfred Staudinger | Thread | RE: [xsl] Call another XML and XSL , Michael Kay |
Re: [xsl] Call another XML and XSL , Manfred Staudinger | Date | RE: [xsl] Call another XML and XSL , Michael Kay |
Month |