W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2010

Clarification regarding DOM3 Validation Spec

From: Casey Jordan <casey.jordan@jorsek.com>
Date: Fri, 30 Apr 2010 19:18:50 -0400
Message-ID: <k2xbf585bb61004301618h5ffed7b7rb28b537245a58e8c@mail.gmail.com>
To: xmlschema-dev@w3.org
The DOM3 Validation Spec lists a number of getter interfaces like
Node.allowedNextSiblings and Node.allowedFirstChildren

My question is, should these interfaces return all possible results
regardless of whether they would make the document invalid?

For instance given the following fragment and schema pattern.

<fragment>
   <one/>
   <two/>
   <three/>
<fragment>

conforming to the pattern

<xs:sequence>
        <xs:element ref="one"/>
        <xs:element ref="two"/>
        <xs:element ref="three"/>
</xs:sequence>

Would a call to <one/>.allowedNextSiblings return an empty set [], since the
sequence is complete or return ['two'] since it is a possible next sibling?

Just need a clarification.

Thanks,

Casey





-- 
--
Casey Jordan
Jorsek Software LLC.
"CaseyDJordan" on LinkedIn, Twitter & Facebook
Cell (585) 771 0189
Office (585) 239 6060
Jorsek.com


This message is intended only for the use of the Addressee(s) and may
contain information that is privileged, confidential, and/or exempt from
disclosure under applicable law.  If you are not the intended recipient,
please be advised that any disclosure  copying, distribution, or use of
the information contained herein is prohibited.  If you have received
this communication in error, please destroy all copies of the message,
whether in electronic or hard copy format, as well as attachments, and
immediately contact the sender by replying to this e-mail or by phone.
Thank you.
Received on Friday, 30 April 2010 23:19:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:20 GMT