[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: use-when
On 12/10/2010 01:55 AM, G. Ken Holman wrote:
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.
but what I need, is to separate static portion of xpath to use-when, both for speed and readability purposes, conditions can be quite complex: <xsl:template match="some-xpath1" use-when="$first-config-option=('A','B') or $another-config-option='C'"> where config options are set on TransformerFactory level any ideas? <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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|