Next in thread → Next in month →

RE: [docbook-apps] AW: [docbook] How to get the lang-attribute in a stylesheet?

From
Mauritz Jeanson <>
Date
2008-02-03T18:43:07+00:00
ID
000001c86694$974d5600$71ea1a51@D7MZ171J
Thread
RE: [docbook-apps] AW: [docbook] How to get the lang-attribute in a stylesheet?
> -----Original Message-----
> From: Christian-Josef Schrattenthaler 
> 
> I tried:
> 
> <presentation xml:lang="xsl:value-of select='@lang'" 
> default="true" displayviews="true" displayviewimages="true">
> 
> But this didn't work.


This should work:

 <presentation xml:lang="{/*/@lang}" 
 default="true" displayviews="true" displayviewimages="true">

assuming that the lang attribute is set on the root element (/*).


Mauritz
Next in thread → Next in month →