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

Re: XPath 2.0 Best Practice: wrap the first node of ev

Subject: Re: XPath 2.0 Best Practice: wrap the first node of every path expression within schema-element?
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 25 Mar 2008 17:48:53 +0100 (CET)
Re:  XPath 2.0 Best Practice: wrap the first node of ev
"Costello, Roger L." wrote:

  Hi

> If a processor is schema-aware and does not generate an
> error or a warning on path expressions such as the above,
> then what value does the schema-element function have?

  The processor will select only the nodes whose the dynamic type
matches.  That means that the tree will have to be validated.  If you
use schema-element in match patterns you can be sure that the type of
the context item has been validated.  And schema-element handles
correctly substitution groups also IIRC.

  Regards,

--drkm























      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Capaciti de stockage illimitie pour vos emails. http://mail.yahoo.fr

Current Thread

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
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.