[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ID/IDREF is evil
Rick, Sometimes all you have is a local context, or, more usual, you have a an implicit global context where each identifier is bound to the explicit URI of the overall entity (which may or may not be it's URL, obviously - messaging systems in particular make the question of URLs problematic at times). I get that. The problem I'm raising is actually two-fold. The first is basically that there is no way of explicitly referring to an external entity with a NIEM s:ref, which inherits from the XSD xs:IDREF definition, because this definition is explicitly and intrinsically local. This means that if a resource references another reference, because of the XSD basis of NIEM, you MUST include the referenced entity in the message, regardless of whether it has changed in any way from what may currently exist in the original data context. s:id isn't really an issue - you can always conventionally bind that - but the IDREF itself will not validate if the referenced resource is not available in the same context. This is the argument I've been trying to make for a while.
BTW, for what it's worth I have no problem with ID/IDREF patterns if you KNOW that your context has clearly articulated contextual identifiers. It's when XML leaves the context of a file or database and becomes a message that things become problematic. Kurt Kurt Cagle Invited Expert, XForms Working Group, W3C Managing Editor, XMLToday.org 443-837-8725 On Wed, Feb 19, 2014 at 7:24 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|