No schemaLocation for XML namespace
OOXML XML Schemas reference xml:space as an attribute value, but don’t provide a schemaLocation for the schema for the XML namespace. Although this is valid XML Schema (the schemaLocation is a hint, rather than required), it imposes an unnecessary complication on using the schema (since the schema location must be specified separately, either automatically by the validator as MSXML does, or using a catalog as most other tools do).
Include reference to xml.xsd
Alter the stylesheets (wml.xsd, shared-math.xsd) that import the xml namespace to include a schemaLocation of http://www.w3.org/2001/xml.xsd.
Affects files: wml.xsd, shared-math.xsd"
Schemas
te
Proposed Disposition of DIS 29500 Comment ECMA-0012 (Modified: 2008-01-10) Agreed; although on further investigation, it appears that different validators handle this in different ways. Xalan, and Saxonica require that the xml namespace to be imported into the schemas, and that the schemaLocation attribute be specified. Xerces also requires that the xml namespace be imported, but the location must be a local path. MSXML does not require that the xml namespace be imported. However, if you do import the xml namespace, MSXML6 requires that there NOT be a schemaLocation attribute. System.Xml validates properly if the schema imports the xml namespace with a schemaLocation. It also validates properly if the schema does not import the xml namespace. As it’s not clear what the most interoperable approach is for this functionality, rather than change the schemas, we will instead provide the following comment at the beginning of each XSD file that uses the XML namespace, so that people can customize it to best work with their validator: <xsd:import id="xml" namespace="http://www.w3.org/XML/1998/namespace"/> <!– Note, the preceding import statement may need to be modified depending on the W3C XML Schema validator you are using. If your validator requires the schemaLocation be present, you may use the following import statement: <xsd:import id="xml" namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" /> If you’re validator requires that the schema be stored locally, you should first download the schema from the following URL http://www.w3.org/2001/xml.xsd, and then update the schemaLocation attribute to point to the local path of the schema file: <xsd:import id="xml" namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="[local path] "/> –> Similar Comments: GB-0622
