Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

namespace?type? I don't know,need help :)(not such a good description)

Status
Not open for further replies.

durduman

Programmer
Aug 2, 2011
2
0
0
RO
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 ' 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top