- From: Biron,Paul V <Paul.V.Biron@kp.org>
- Date: Mon, 29 Sep 2003 08:18:42 -0700
- To: "Dolan, Kieran" <Kieran.Dolan@logicacmg.com>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Received on Monday, 29 September 2003 11:25:44 UTC
> -----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 UTC