[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The subsetting has begun


Re:  The subsetting has begun
On Wednesday 26 February 2003 19:00, K. Ari Krupnikov wrote:

> <!DOCTYPE A [
>   <!ATTLIST D id ID #IMPLIED>
>   <!ATTLIST D ref IDREF #IMPLIED>
> ]>
> <A>
>   <B>
>     <D id="d1">
>       <any> children D might have, just to make it more interesting</any>
>     </D>
>   </B>
>   <C>
>     <D ref="d1"/>
>   </C>
> </A>

Ah, but that's implementing a form of pointer on top of the underlying tree 
structure by nominating a part of the tree - that, otherwise, would mean 
nothing but that 'id' equalled 'd1' - and giving it some semantics.

Yet again, unless your program explicitly went to the effort of matching up 
the id references itself, any parser would still show the D within B and the 
D within C to be different elements. Even in XPath, they are different. The 
DTD declares that the second D is linked to the first in some way, but 
doesn't say that this is supposed to be an identity constraint, so it still 
doesn't make it a DAG, it merely potentially *suggests* a DAG viewpoint of 
the tree :-)

It would be a DAG if, instead of the second D, you could write:

<?xml-ptr d1?>

...with <?xml-ptr?> being defined as being substituted for the element whose 
ID is d1 during parsing.

But anyway! I'm splitting hairs and have been doing so all day! Stop baiting 
me! :-)

ABS

-- 
A city is like a large, complex, rabbit
 - ARP

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.