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

RE: Occurrence Question

  • To: "Michele Vivoda" <idmichele@y...>, <xml-dev@l...>
  • Subject: RE: Occurrence Question
  • From: "Tolkin, Steve" <Steve.Tolkin@F...>
  • Date: Mon, 27 Mar 2006 14:35:49 -0500
  • Thread-index: AcZRgN/zoG60i0q3TCWVRDorbsAa2gAIlAGw
  • Thread-topic: Occurrence Question

re occurrence
Can you please clarify what you meant by "there is no difference between
empty and absent in xml."

I think there is a difference.  Suppose the empty element <Bonus> is
used as a "marker", meaning: If and only if <Bonus/> occurs then the
person is eligible to receive a bonus.  
Clearly there is a difference between empty and absent.

<!-- Alex cannot get a bonus, the Bonus element is Absent -->
<Pay><Name>Alex</Name><Salary>30</Salary></Pay>
<!-- Ben can get a Bonus-->
<Pay><Name>Ben</Name><Salary>20</Salary><Bonus/></Pay>


Hopefully helpfully yours,
Steve
-- 
Steve Tolkin    Steve . Tolkin at FMR dot COM    508-787-9006 
Fidelity Investments   82 Devonshire St. M13L    Boston MA 02109
There is nothing so practical as a good theory.  Comments are by me, 
not Fidelity Investments, its subsidiaries or affiliates.


-----Original Message-----
From: Michele Vivoda [mailto:idmichele@y...] 
Sent: Monday, March 27, 2006 4:28 AM
To: Michael Kay; xml-dev@l...
Subject: RE:  Occurrence Question


Thanks, I was also thinking about this option, I think
that the PSVI is the same because neither particle or
choice contribute to the PSVI, and they validate the
same instances because there is no difference between
empty and absent in xml. So, _in a choice with
elements only_ should be true that adding an optional
element makes the whole choice optional. Is this that
I wrote true, and in case, is it _always_ true, also
with other kind of particles ?

Greetings
Michele Vivoda

[rest snipped]

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.