Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Simple type restriction(being a complete noob i feel i am close but need just a small hint)
Simple type restriction [message #714752] Thu, 11 August 2011 12:47
Drd  is currently offline Drd Friend
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">
<xs:pattern 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.
Previous Topic:XML editor
Next Topic:Simple type restriction
Goto Forum:
  


Current Time: Thu Apr 25 04:20:37 GMT 2024

Powered by FUDForum. Page generated in 0.02661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top