Subject:Selecting operator from XML to xquery Author:Santhosh Thottingal Date:07 Nov 2006 11:22 AM
hi all,
I have an XML in the following form.
<evaluate oper="or">
<assert acrtreftype="prodattr" acrtidref="pa02" from="010" to="023"/>
<evaluate oper="and">
<assert acrtreftype="prodattr" acrtidref="pa02" from="001" to="005"/>
<assert acrtreftype="condition" acrtidref="c01" value="POST"/>
</evaluate>
<evaluate oper="and">
<assert acrtreftype="prodattr" acrtidref="pa02" value="006"/>
<assert acrtreftype="condition" acrtidref="c02" value="PRE"/>
</evaluate>
<assert>AIRPLANES WITH BENDIX BRAKES</assert>
</evaluate>
What I want to do is do this evaluation using xquery. Based on the oper attribute of evaluate , in xquery I need to do an and or or operations. Can some one suggest how to do this?
Thanks in advance
-santhosh
Subject:Selecting operator from XML to xquery Author:Tony Lavinio Date:07 Nov 2006 11:05 PM
Our records don't show you as a Stylus Studio user, based on the
email address you used to register to this forum.
Which version are you using?
We offer free support to users of our product, but not users of all
products.
Subject:Selecting operator from XML to xquery Author:Santhosh Thottingal Date:09 Nov 2006 07:11 AM
Thanks a lot.
The assert statements will return boolean values, based on that evaluations will be done, the final output should be a boolean value. OR or AND operations will be applied to assert results.
I am new to XQuery and trying to learn for one of my project. And I am struggling to do the above descibed functionality.