Next in thread → Next in month →

RE: How to get the lang-attribute in a stylesheet?

From
Christian-Josef Schrattenthaler <>
Date
2008-02-04T18:39:50+00:00
ID
004701c8675d$615614f0$24023ed0$@com
Thread
RE: How to get the lang-attribute in a stylesheet?
Hi!

I did it:

1. New variable <xsl:variable name="language" select="/book/@lang"/> at the
beginning oft he stylesheet (under <xsl:output method="html"/>).

2. Creating the filename: <xsl:with-param name="filename"
select="concat($base.dir,'jhelpset_',$language,'.hs')"/>

3. Presentation-attribute: <presentation xml:lang="{$language}"
default="true" displayviews="true" displayviewimages="true">

This systems works!

Thanks to all,
Christian.
Next in thread → Next in month →