Re: [xsl] Parametrized includes -work-around?

Subject: Re: [xsl] Parametrized includes -work-around?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 6 Aug 2004 17:17:21 +0100
  Doing a two-step transformation seems easier at this points. We consider
  doing the first part (constructing the stylesheet that performs the
  actual transformation) as part of the strutscx action.


That's odd because having  generated a stylesheet on teh fly you then
have to use that as the main transformation stylesheet, ie exactly the
thing you said was hard to do.

Incidentally an alternative is to just always include all the
stylesheets (making sure that the templates in your optional stylesheets
all have a mode attribute

then you can dynamically select which mode to use as in

<xsl:template match="/">
<xsl:choose>
<xsl;when>
 <xsl:apply-templates mode="a"/>
</xsl:when>
<xsl:otherwise>
 <xsl:apply-templates mode="b"/>

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread