<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:attribute name="tax-id" type="xsd:tax-idTyp"/>
<xsd:simpleType name="tax-idTyp">
<xsd:restriction base="xsd:string">
<xsd:pattern value="([0-9]{3}-[0-9]{2}-[o-9]{2}-[0-9]{3})"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
Validator zwraca trzy błędy:
src-resolve.4.2: Error resolving component 'xsd:tax-idTyp'. It was detected that 'xsd:tax-idTyp' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'xsd:tax-idTyp' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'null'.
src-resolve: Cannot resolve the name 'xsd:tax-idTyp' to a 'type definition' component.
src-resolve: Cannot resolve the name 'xsd:tax-idTyp' to a 'simpleType definition' component.
"Problem polega nad typem jaki jest "tax-idTyp" - definiowany przez użytkownika, czy wbudowany? Tu tkwi Pański problem" taką wiadomość dostałem od pana dr, tylko, że ja dalej nie wiem jak naprawić ten błąd. Czy mógłby ktoś pomóż?