← Prev in month ← Prev in thread
Next in thread → Next in month →

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

From
Christian-Josef Schrattenthaler <>
Date
2008-02-03T18:41:35+00:00
ID
003201c86694$74dc5990$5e950cb0$@com
Thread
AW: [docbook-apps] How to get the lang-attribute in a stylesheet?
Hi!

The original javahelp.xsl has no JavaHelp 2.0 support, and so I can't set the presentation-tag. I added a standard presentation-tag to the javahelp.xsl, and changed all links from JavaHelp 1.0 to JavaHelp 2.0. It works!

I am still a beginner with JavaHelp and DocBook! I looked again to the JavaHelp documentation, and I am not sure, but I have to set the locale to the filename of my helpset -> instead helpset.hs I have to use helpset_en.hs, helpset_de.hs and so on.

I am also not sure, but there is an attribute called xml:lang (f.e. xml:lang="de"), to set the locale for some other tags inside the JavaHelp files.

I can set the lang-attribute in the book-tag of a DocBook document, and so I thought, I had only to read the value of the lang-attribute, and than I can calculate the filename, and set some other attributes over the stylesheet...

Greetings,
Christian.

-----Ursprüngliche Nachricht-----
Von:  [mailto:] 
Gesendet: Sonntag, 03. Februar 2008 19:22
An: 
Betreff: Re: [docbook-apps] How to get the lang-attribute in a stylesheet?

Hi,


On Sonntag, 3. Februar 2008, Christian-Josef Schrattenthaler wrote:
>
> Sorry, I am not good with stylesheets. I didn't need them, bevore I
> worked with DocBook.
>
> I tried:
>
> <presentation xml:lang="xsl:value-of select='@lang'" default="true"
> displayviews="true" displayviewimages="true">

I am confused. Where does this element come from? This is not a valid 
DocBook element and I couldn't find it in the DocBook stylesheets for 
JavaHelp.

Could you post a small example and describe what you did, please?


Thanks,
Tom

-- 
Thomas Schraitle

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: 
← Prev in month ← Prev in thread
Next in thread → Next in month →