How to use xml:id
Posted: Thu Oct 06, 2005 7:08 am
I've been trying to use xml:id in a schema, and keep getting messages like "Description: E src-resolve.4.2: Error resolving component 'xml:id'. It was detected that 'xml:id' is in namespace 'http://www.w3.org/XML/1998/namespace', but components from this namespace are not referenceable from schema document 'file:/C:/Devel/foo.xsd'. If this is the incorrect namespace, perhaps the prefix of 'xml:id' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Devel/foo.xsd'."
This is for using it inside a type definition like:
<xs:attribute ref="xml:id" use="optional"/>
I see that xml:id is defined in the xml.xsd file in the program files tree - how do I define something a schema to use it that will validate (even if the xml:id spec requirements of uniqueness isn't enforced)?
Thanks,
dgc
This is for using it inside a type definition like:
<xs:attribute ref="xml:id" use="optional"/>
I see that xml:id is defined in the xml.xsd file in the program files tree - how do I define something a schema to use it that will validate (even if the xml:id spec requirements of uniqueness isn't enforced)?
Thanks,
dgc