OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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: tom_schr@web.de [mailto:tom_schr@web.de] 
Gesendet: Sonntag, 03. Februar 2008 19:22
An: docbook-apps@lists.oasis-open.org
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: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]