- From: Morcom, Harvey <Harvey.Morcom@KPMG.co.uk>
- Date: Fri, 29 Aug 2003 09:04:04 +0100
- To: <www-math@w3.org>
> I am trying to import the MathML XMLSchema into my own XMLSchema but I keep getting error messages from both the XMLSpy validating parser and Xerces. > Xerces error message states that 'grammar with uri: http://www.w3.org/1998/Math/MathML cannot be found.' > XMLSpy states that 'some of the include and/or import and/or redefine statements has no schemaLocation and will be ignored' > > The syntax I am using in my XMLSchema is: > > <xs:schema targetNamespace="http://www.assurancesource.kworld.kpmg.com/UK_ExternalSchema/20030721" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.assurancesource.kworld.kpmg.com/UK_ExternalSchema/20030721" xmlns:mml="http://www.w3.org/1998/Math/MathML" elementFormDefault="qualified" attributeFormDefault="unqualified"> > <xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd"/> > etc... > The element is then declared later in the XMLSchema: <xs:complexType name="mixedType" mixed="true"> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Footnote" type="footnoteType"/> <xs:element name="List" type="listType"/> <xs:element name="Emphasis" type="emphasisType"/> <xs:element name="Link" type="linkType"/> <xs:element name="References" type="inlineType"/> <xs:element name="Graphic" type="graphicType"/> <xs:element name="Table" type="tableType"/> <xs:element name="Modification" type="modificationType"/> <xs:element name="TextColor" type="textcolorType"/> <xs:element name="BackgroundColor" type="backgroundcolorType"/> <xs:element ref="mml:math"/> <xs:element ref="Br"/> </xs:choice> </xs:complexType> The instance document has the following reference to the XML Schema which imports MathML: <Document xmlns="http://www.assurancesource.kworld.kpmg.com/UK_ExternalSchema/20030721" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.assurancesource.kworld.kpmg.com/UK_ExternalSchema/20030721 UKAssuranceSource_External.xsd" xmlns:mml="http://www.w3.org/1998/Math/MathML"> > I tested this with the files downloaded onto my harddrive but still with no luck. > > Any ideas? > > Regards > Harvey > > Harvey Morcom > Knowledge Analyst > harvey.morcom@kpmg.co.uk > Tel: 782 8695 (020 7694 8695) > Email Disclaimer This email has been sent from KPMG LLP, a UK limited liability partnership, or from one of the companies within its control (which include KPMG Audit Plc , KPMG United Kingdom Plc and KPMG UK Limited). The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter.
Received on Friday, 29 August 2003 04:11:41 UTC