xsl-list
[Top] [All Lists]

Re: [xsl] Call another XML and XSL from an XSL outputting HTML

2007-07-01 09:26:03
On Sun, 01 Jul 2007 09:56:13 -0600, Manfred Staudinger <manfred(_dot_)staudinger(_at_)gmail(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--