xsl-list
[Top] [All Lists]

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

2008-03-25 09:49:16
"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. Capacité de stockage illimitée pour vos emails. 
http://mail.yahoo.fr


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>