| Subject: Re: [xsl] use-when in the xsl:inlcude From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 30 Aug 2008 15:58:06 +0300 | 
<xsl:include href="..." use-when="document('configuration:data')/data/xs:boolean(@xxx)"/>
Except that it won't work. Your use-when= above relies on *some* document context in order to determine the argument values for the document() function...
As you might understand, I have some configuration defining xslt to run. E.g. Andrew has proposed to define all required compositions. I was thinking of conditional xsl:include.
This works (if I'm not wrong), as doc() function is available in the context where values of @use-when are evaluated. See http://www.w3.org/TR/xslt20/#conditional-inclusion.
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] use-when in the xsl:inlcu, G. Ken Holman | Thread | Re: [xsl] use-when in the xsl:inlcu, G. Ken Holman | 
| Re: [xsl] Commented contents not co, Mukul Gandhi | Date | Re: [xsl] use-when in the xsl:inlcu, G. Ken Holman | 
| Month |