This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Attributes for text direction and language
- From: Bob Stayton <bobs at caldera dot com>
- To: Tsuguya Sasaki <ts at ts-cyberia dot net>, DOCBOOK <docbook at lists dot oasis-open dot org>
- Date: Sat, 15 Jun 2002 23:42:38 -0700
- Subject: Re: DOCBOOK: Attributes for text direction and language
- References: <001901c214bc$067e68b0$0201a8c0@TS>
On Sun, Jun 16, 2002 at 07:28:29AM +0900, Tsuguya Sasaki wrote:
> I'm new to DocBook, so I apologize in advance if someone else has
> already asked the following questions; I couldn't find anything about
> them in the archive of this list.
>
> 1) What is the DocBook equivalent, if any, of the HTML attribute DIR
> for specifying in which direction, i.e. left-to-right or right-to-left,
> text should be rendered within the containing element?
I don't know of one. Wouldn't the direction be determined
by the lang?
> 2) What is the correct way to specify the language used within the
> content of a certain element in DocBook *XML*: a) with the LANG
> attribute (as in HTML), b) with the LANG and XML:LANG attributes
> (as in XHTML 1.0), or c) with the XML:LANG attribute (as in XHTML
> 1.1)?
Either 'lang' or 'xml:lang' attribute would be correct
(note they use lowercase letters). The 'lang' attribute is
declared in the DocBook DTD for just about every element.
The 'xml:lang' attribute is outside the DocBook DTD, of
course, but is defined in the xml namespace specifically
for that purpose. The DocBook XSL stylesheets support both.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com