[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] unsinged short for line numbers



Hi Stefan,


Stefan Froehlich <Stefan Froehlich Priv at> 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]