Re: [xsl] XPath 2.0 Best Practice: wrap the first node of every path expression within schema-element?

Subject: Re: [xsl] 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)
"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