Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 08:47
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">
<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: Fri Apr 18 10:09:01 EDT 2014

Powered by FUDForum. Page generated in 0.01484 seconds