Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [Update #2] XML Schema 1.1 Tutorial

From: noah_mendelsohn@--.---.---
To: "Costello, Roger L." <costello@-----.--->
Date: 8/12/2009 3:21:00 PM
Slide 50:

"If I had placed the assertion on the <Para> element my XPath expression 
would need to "look up" to the <Document> element (parent). That's not 
allowed. It's an error, in fact."

Nope, it's not an error, at least not in the eyes of a schema processor. 
It won't do what you want, but it's not a violation of the constraints on 
schemas and it results in no error indication in the PSVI.  What happens 
is that the XPath looking up to find the "Document" won't find it.  That's 
because the assertion is validated with the <Para> were the root of the 
XPath data model;  for this purpose, <Para> has no ancestors.

I think it would be better to say:

"If I had placed the assertion on the <Para> element my XPath expression 
would need to "look up" to the <Document> element (parent). In fact, that 
won't do what you want.  The <para> is the root for the XPath evaluation, 
so the XPath won't even see the <Document> element."  Or some such.

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








"Costello, Roger L." <costello@m...>
Sent by: xmlschema-dev-request@w...
08/08/2009 01:27 PM
 
        To:     "xmlschema-dev@w..." <xmlschema-dev@w...>
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        [Update #2]  XML Schema 1.1 Tutorial



Hi Folks,

Here are the updates I made to the XML Schema 1.1 Tutorial:

    1. I received many excellent comments and 
       incorporated them.

    2. I created 20 lab exercises. I recommend 
       working the exercises as you read through 
       the tutorial.


Here is the updated tutorial:

http://www.xfront.com/xml-schema-1-1/xml-schema-1-1.ppt


Here is the updated tutorial + labs + examples:

http://www.xfront.com/xml-schema-1-1/xml-schema-1-1.zip


As always, please let me know if there is anything in the tutorial that is 
unclear or if you find a typo. 

/Roger





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