Re: discrepancy in xpath for ref and nodeset

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/discrepancy-in-xpath-for-ref-and-nodeset-tp43741p43742.html

Pralhad,

vernekap wrote
instance('product-state')/properties/property[name='x.y.z']"
instance('options-instance')//property[@name = ...
Your first expression above tests on the existence of an element (name = ...) while the second one tests on the existence of an attribute (@name = ...). I guess that in one case you must have an element "name", and the other an attribute "name".

Alex