Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Simple type restriction (just in need of a small hint)
Simple type restriction [message #714761] Thu, 11 August 2011 09:03 Go to previous message
Drd  is currently offline Drd
Messages: 20
Registered: August 2011
Junior Member
hello all!

if I put the restriction manual without predefining it i get this error:

src-resolve.4.2: Error resolving component 'spatii'. It was detected that 'spatii' is in namespace 'http://www.w3schools.com', but components from this namespace are not referenceable from schema document 'file:///C:/Documents%20and%20Settings/adurnea/workspace/Schema/MyFiles/config.xsd'. If this is the incorrect namespace, perhaps the prefix of 'spatii' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///C:/Documents%20and%20Settings/adurnea/workspace/Schema/MyFiles/config.xsd'.

this is the implementation i use:


<xs:element name="nume" type="spatii"/>

<xs:simpleType name="spatii">
<xs:restriction base="xs:string">
<xsattern value="[a-zA-Z0-9.]+"/>
</xs:restriction>
</xs:simpleType>

being a complete noob i dont know what should i do
I would really be grateful for the help.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Simple type restriction
Next Topic:reading inside a xml
Goto Forum:
  


Current Time: Thu May 23 12:41:25 EDT 2013

Powered by FUDForum. Page generated in 0.03420 seconds