 |
 |
 |
Saxon reckons this schema document is OK.
Perhaps you've confused the processor by using an invalid URI (c:\vistaTec)
as your namespace.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: xmlschema-dev-request@w...
> [mailto:xmlschema-dev-request@w...] On Behalf Of
> Farid.Mahini@L...
> Sent: 05 April 2005 14:28
> To: xmlschema-dev@w...
> Subject: Namespace error
>
>
>
> Hi,
>
> I am getting the following error when I attempt to set the
> schema of an
> instance of schemaFactory (J2SE 1.5.0). I created the schema
> using XMLSpy
> and it did validate my XML source file.
>
> org.xml.sax.SAXParseException: src-resolve.4.2: Error
> resolving component
> 'trueFalse'. It was detected that 'trueFalse' is in namespace
> 'c:\vistaTec',
> but components from this namespace are not referenceable from schema
> document
> 'file:///C:/Development/eclipse/workspace/TecParser/TecMeasure
> ments_revC.xsd
> '.
>
> Since the simpleType ' trueFalse' is defined in the same
> schema file where
> it gets used, I am assuming there are in the same namespace since
> 'c:\vistaTec' is also the default namespace. I am getting
> the same error
> for every element/simpleType/complexType referenced in the
> root element of
> this schema. For illustration purpose, I removed all but
> the following
> from the schema file (TecMeasurements_revC.xsd) and still get the same
> error.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- edited with XMLSpy v2005 sp2 U (http://www.altova.com)
> by farid mahini
> (L3 Communications - TE) -->
> <xs:schema xmlns="c:\vistaTec"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:fmTec="c:\vistaTec" targetNamespace="c:\vistaTec"
> elementFormDefault="qualified">
> <xs:simpleType name="trueFalse">
> <xs:restriction base="xs:string">
> <xs:enumeration value="true"/>
> <xs:enumeration value="false"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:element name="tec">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="test" type="trueFalse"/>
> </xs:sequence>
> <xs:attribute name="name" type="xs:string" use="required"/>
> <xs:attribute name="version" type="xs:string"
> use="required"/>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
>
> Thank you,
> -Farid
>
>
> >From E-mail Administrator
> ATTENTION PLEASE: Do you have our new e-mail addresses?
> The current L-3 standard is First.Last @ L-3com.com
> E-mail addressed to First.Last @ te.L-3com.com will no longer
> be delivered.
> Please update your address book using the "From" address on
> this email.
>
>
>
>
From Farid.Mahini@L... Tue Apr 05 21:59:37 2005
Received: from bart.w3.org ([128.30.52.40])
by frink.w3.org with esmt
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |