[xsl] import/include with xsl:variable in href

Subject: [xsl] import/include with xsl:variable in href
From: Dominik Zayer <dzayer@xxxxxxxxxxxxxx>
Date: 29 Aug 2005 18:02:39 +0200
Hi

I have some kind of generic transformation stylesheet to tranform my own
markup in a couple of others (xhtml, wml, chtml).
I too have several other, more specific stylesheets and i'm in need to
import one of those to my main stylesheet.

Right now i'm writing a xsl:variable element to the stylesheet before
transformation which specifies, which stylesheet to import.
Then i'm trying something like this:
<xsl:variable name="import_test">foo</xsl:variable>
<xsl:import href="/xxx/yyy/zzz/{$import_test}.xsl"/>

This is not working (i think cause import is only allowed as first
child), but when i try soemthing similar with "include" it's still not
working.

Just a syntax issue?
Or a totaly wrong approach ?
Is it possible at all to use a xsl:variable in the href-attribut?

Thanks for any help or hints!
Dominik


-- 
Dominik Zayer  > Development
iconmobile GmbH > Methfesselstr. 32-36 > D-10965 Berlin
phone +49 30 890 686 32 > fax +49 30 890 686 50
dzayer@xxxxxxxxxxxxxx > http://www.iconmobile.com

Current Thread