Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Still banging on about extensibility and validation

From: "G. Ken Holman" <gkholman@----------------.--->
To: xml-dev@-----.---.---
Date: 5/29/2006 8:34:00 AM
At 2006-05-04 23:10 +0200, bryan rasmussen wrote:
>>I think ISO/IEC 19757-4 NVDL is the mechanism by which we can safely
>>look at XML instances using the view that sets of labeled information
>>found in a single instance *each have their own model* ... those sets
>>identified unambiguously through the use of namespace-rich
>>labels.  This is not achievable with the traditional view that the
>>entire instance *has a single model* that is sacrosanct.  The real
>>world does not accommodate this traditional view well when trying to
>>accommodate different users' needs.
>
>I'm actually having some problems with NVDL, because I was having a
>hard time reading in the available documentation how one would handle
>specific common situations.

All in good time ... there is a lot of standardization underway and 
we can't get to all the user documentation.  I do believe the answers 
are in the spec.

>These are:
>
>1. Namespace qualified attributes on an element of another element.
>I really can't think of any way one could handle that in a reasonable
>manner, and I suspect that in most scenarios this would be one
>namespace extending another, not a mix of two data sets. But I don't
>this for a fact, just a suspicion.

This is accommodated.  NVDL provides for a generic element to which 
the attributes are attached.  A schema expression to validate the 
attributes incorporates the presence of the generic element.  The 
combination gets dispatched for validation.

>2. propogation of text nodes up from elements in namespace y to
>elements in namespace x, example:
>
><x:x>
><y:y>text node</y:y>
></x:x>
>
>in this scenario y:y is extending x:x,

But it is distinct.

>and conceptually we assume that they share the text node.

They do not.  In the data model for that fragment, x:x has three 
children: two text nodes of only white-space, and one element node 
being y:y ... the string "text node" is only a child of y:y.

>so when split they should be
>
><x:x>text node</x:x>
>and <y:y>text node</y:y>

I disagree.  I don't know of any data model for XML in which text 
nodes are "copied" or considered a property of an ancestor.

>I think this is a reasonably common usage but I'm not sure if NVDL
>handles it.  I suppose the argument could be made that this is an
>extremely dangerous and dirty usage, and we would not want to automate
>that kind of splitting of data.

On that I agree ... but since the data model does not "split" the 
data as you describe, it fortunately isn't an issue for NVDL.

I hope this helps.

. . . . . . . . . . Ken

--
Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XSL-FO/XSLT training:    Minneapolis, MN 2006-07-31/08-04
Also for XML/XSLT/XSL-FO/UBL training: Varo,Denmark 06-09-25/10-06
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent