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


Help: OASIS Mailing Lists Help | MarkMail Help

office message

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

Subject: Re: [office] Proposal for language tags according to RFC 4646

Hi Dave,

On Tuesday, 2006-11-28 13:32:15 +0000, Dave Pawson wrote:

> >The question now is how to do it in the schema.
>  public static String langtag="("+language+
>    "(-"+script+")?"+
>    "(-"+region+")?"+
>    "(-"+variant +")?"+
>    "(-"+extension + ")?"+
>    "(-"+privateuse+")?)|"+irregulars;

Well, yes, that almost does it for a language tag string. Note that
variant and extension in RFC 4646 have zero or more occurrences though,
not only zero or one. That IMHO makes it difficult (or impossible? I'm
not an expert there) to express them as attributes in Relax NG.


 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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