Subject: Re: [xsl] use-when From: Andriy Gerasika <andriy.gerasika@xxxxxxxxx> Date: Fri, 17 Dec 2010 00:23:36 +0200 |
At 2010-12-10 01:43 +0200, Andriy Gerasika wrote:I cannot figure out how to use use-when attribute, beyond standard "system-property('file-separator')" example.
That is the only context of using it, as those are the only properties defined when the use-when= attributes are evaluated.
Have you yet tried using modes for your problem?
Yes, I use modes extensively http://www.gerixsoft.com/blog/xslt/pipeline http://www.gerixsoft.com/blog/xslt/include-mode-new
<xsl:choose> <xsl:when test="$file-set='A'"> <xsl:apply-templates mode="file-set-A"/> </xsl:when> <xsl:when test="$file-set='B'"> <xsl:apply-templates mode="file-set-B"/> </xsl:when> <xsl:when test="$file-set='C'"> <xsl:apply-templates mode="file-set-C"/> </xsl:when> </xsl:choose>
...
<xsl:template match="some-xpath1" mode="file-set-A"> <xsl:template match="some-xpath2" mode="file-set-B"> <xsl:template match="some-xpath3" mode="file-set-C">
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] use-when, G. Ken Holman | Thread | Re: [xsl] use-when, G. Ken Holman |
[xsl] [ANN] XML Prague 2011 'Web an, Jim Fuller | Date | Re: [xsl] use-when, G. Ken Holman |
Month |