Hi Stefan,

Stefan Froehlich <[EMAIL PROTECTED]> writes:

> [sample from a well-established eCommerce standard]
> [...]
> | <CATALOG_STRUCTURE>
> |     <GROUP_ID>0103</GROUP_ID>
> |     <GROUP_NAME>Kabelschutz-/ Nachrichtentechnik</GROUP_NAME>
> |     <PARENT_ID>01</PARENT_ID>
> | </CATALOG_STRUCTURE>
> | <CATALOG_STRUCTURE>
> |     <GROUP_ID>010303</GROUP_ID>
> |     <GROUP_NAME>Verbundrohre aus PE</GROUP_NAME>
> |     <PARENT_ID>0103</PARENT_ID>
> | </CATALOG_STRUCTURE>
>
> Every content of a <PARENT_ID> has to match some value of a <GOUP_ID>,
> however in real life it won't always do.  This is nothing you can catch
> with a DTD or an XSD.

You may be able to do this with XML Schema key/unique/keyref constructs.


hth,
-boris


-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to