W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

RE: Use of xml:lang in XML Schema

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Mon, 29 Sep 2003 08:18:42 -0700
Message-Id: <8904C60CACA7D51191BC00805FEAAF4301A12989@crdc-exch-7.crdc.kp.org>
To: "Dolan, Kieran" <Kieran.Dolan@logicacmg.com>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
> -----Original Message-----
> From: Dolan, Kieran [mailto:Kieran.Dolan@logicacmg.com] 
> Sent: Mon, Sep 29, 2003 08:05
> To: 'xmlschema-dev@w3.org'
> 
> My question is as follows:
> 
> Which is the correct usage of "xml:lang" in an XML schema?
>  
> a) <xs:import namespace="http://www.w3.org/XML/1998/namespace">
> 
> or 
> 
> b)   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
> schemaLocation="http://www.w3.org/2001/xml.xsd">
> 
> Option a) does not appear to work on xerces 2.5.0 while 
> option b) does.

both are correct.

a) will work with any processor which "knows" what the schema for the XML namespace is (check the documentation for your processor(s) to see if it already "knows" that schema).

b) will work with any processor that honors the schemaLocation **hint**.  Just as with xsi:schemaLocation, this is only a hint and processors are licensed to ignore it.  However, most _general purpose_ processors such as xerces do, in fact, honor it.

pvb
Received on Monday, 29 September 2003 11:25:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT