xsl-list
[Top] [All Lists]

import/include with xsl:variable in href

2005-08-29 09:02:39
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(_at_)iconmobile(_dot_)com > http://www.iconmobile.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>
--~--