As explained below, I'm trying to track down while xmllint is
complaining when xml:lang and other xs:language-typed attributes contain
three letter language codes.

I 'mao' and 'rap' are present in both
/usr/share/xml/iso-codes/iso_639_3.xml and
/usr/share/xml/iso-codes/iso_639.xml, but xmllint appears not to be
seeing them.

The version I'm using is:

stu...@rb-501a-13-c:/usr/share/xml/iso-codes$ xmllint -version
xmllint: using libxml version 20632
    compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1
FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv
ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug
Zlib


Is this a bug?

cheers
stuart


-------- Original Message --------
Subject: Re: [xml/sgml-pkgs] xmllint validation disliking iso_639 three
letter codes in xs:language
Date: Wed, 14 Jan 2009 10:52:25 +1300
From: Mike Hommey <[email protected]>
To: Stuart Yeates <[email protected]>
CC: [email protected]
<[email protected]>, Jamie Norrish
<[email protected]>
References: <[email protected]>

On Wed, Jan 14, 2009 at 09:24:51AM +1300, stuart yeates wrote:
> > I'm trying to use xmllint to validate XML containing xs:language-typed
> > attributes, and while attributes of the form "en", "de" and
> > "i-something" work just fine, attributes of the form "mao" and "rap"
> > result in errors such as:
> >
> > TeRSirG.xml.p5.formatted:84: element language: Schemas validity error :
> > Element '{http://www.tei-c.org/ns/1.0}language', attribute 'ident':
> > 'mao' is not a valid value of the atomic type 'xs:language'.
> >
> > Bid001Kahu.xml.p5.formatted:107: element language: Schemas validity
> > error : Element '{http://www.tei-c.org/ns/1.0}language', attribute
> > 'ident': 'rap' is not a valid value of the atomic type 'xs:language'.
> >
> > Bid001Kahu.xml.p5.formatted:972: element foreign: Schemas validity error
> > : Element '{http://www.tei-c.org/ns/1.0}foreign', attribute
> > '{http://www.w3.org/XML/1998/namespace}lang': 'rap' is not a valid value
> > of the atomic type 'xs:language'.
> >
> > Both 'moa' and 'rap' are present in
> > /usr/share/xml/iso-codes/iso_639_3.xml and
> > /usr/share/xml/iso-codes/iso_639.xml.
> >
> > I understand that 'moa' is deprecated in favour of 'mi' by recent RFC's > > but I believe it's still valid for older XML files. 'rap' does not have
> > a two-letter language code.
> >
> > xs:Name and locally defined schema types seem to be working as expected.
> >
> > This seems like a bug, or am I doing something wrong.

This is definitely a bug. I invite you to contact upstream directly,
either on http://bugzilla.gnome.org or by sending a mail to
[email protected].

Cheers

Mike

-- Stuart Yeates http://www.nzetc.org/ New Zealand Electronic Text Centre http://researcharchive.vuw.ac.nz/ Institutional Repository
--
Stuart Yeates
http://www.nzetc.org/       New Zealand Electronic Text Centre
http://researcharchive.vuw.ac.nz/     Institutional Repository
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to