Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] I respectfully recommend these changes to

From: "Costello, Roger L." <costello@-----.--->
To: "'xmlschema-dev@--.---'" <-------------@--.--->
Date: 5/13/2009 12:15:00 PM
Hi Folks,

I am confused about a couple points that were made yesterday.


BREAKS XPATH

(Paraphrasing) By allowing the XPath in an <assert> element to reference ancestors, cousins, and siblings it will break XPath.

I don't understand this.

Here's an XPath expression in an XSLT document that references a parent (ancestor):


   <xsl:template match="*">

      <xsl:value-of select="name(..) eq 'Book'" />

   </xsl:template>


The XPath expression doesn't break anything in this situation. 


Now, here I use the same XPath expression, only I use it in a different host language (XSD 1.1)


    <assert test="name(..) eq 'Book'" />


Why is it that the XPath expression doesn't break anything in one host language (XSLT) but it breaks things in another host language (XSD 1.1)?



POOR PERFORMANCE

(Paraphrasing) By allowing the XPath in an <assert> element to reference ancestors, cousins, and siblings it will put an undue burden on XML Schema validators because the validator will have to hold the instance document in memory.

I don't understand this.

As I illustrate above, in XSLT the XPath expressions can reference anywhere. It doesn't seem to impose an undue burden on XSLT processors. So why would it impose an undue burden on XML Schema validators?

Besides, even if it did, so what? Isn't the objective to make things easier and better for the users, not the validator implementors?

/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