[xslt] xmllint validation disliking iso_639 three letter codes in xs:language
- From: stuart yeates <stuart yeates vuw ac nz>
- To: <xslt gnome org>
- Subject: [xslt] xmllint validation disliking iso_639 three letter codes in xs:language
- Date: Thu, 15 Jan 2009 16:39:43 +1300
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:
stuart 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 <mh glandium org>
To: Stuart Yeates <stuart yeates vuw ac nz>
CC: debian-xml-sgml-pkgs lists alioth debian org
<debian-xml-sgml-pkgs lists alioth debian org>, Jamie Norrish
<Jamie Norrish vuw ac nz>
References: <496CF893 2030806 vuw ac nz>
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
xslt gnome org
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]