Subject: Re: [xsl] use-when in the xsl:inlcude From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 30 Aug 2008 07:39:39 -0400 |
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.
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] use-when in the xsl:inlcu, Vladimir Nesterovsky | Thread | Re: [xsl] use-when in the xsl:inlcu, Vladimir Nesterovsky |
Re: [xsl] use-when in the xsl:inlcu, Vladimir Nesterovsky | Date | Re: [xsl] Commented contents not co, Mukul Gandhi |
Month |