xsl-list
[Top] [All Lists]

Re: [xsl] use-when in the xsl:inlcude

2008-08-30 07:58:24
Ken,

<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 has nothing in common with source input tree during transformation.

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.

Sorry, if I was not clear about the problem I was asking about.

Thanks.
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com



--~------------------------------------------------------------------
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>
--~--