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

Subject: Re: [xsl] use-when in the xsl:inlcude
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 Aug 2008 12:49:02 +0300
Is there something I can pass to xslt for it to evaluate that something in the use-when attribute in the xsl:inlcude, and xsl:import?

In particular I'm using saxon in java.

I think I have found a clean way to achieve the desired effect.
I'll define an uri resolver that among others will resolve uri like "configuration:data".


Thus I can write:

<xsl:include href="..." use-when="document('configuration:data')/data/xs:boolean(@xxx)"/>

I guess, this approach has a virtue to be almost processor independent.

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

Current Thread