 |
 |
 |
I need something which verifies the absence of an attribute and the
presence of another in a such form that let me do something like
counting elements:
<rule context="b">
<assert test="count(a[@x and not(y)])=10"> the sum must be 10 </assert>
</rule>
The not(y) doesn't work on test, I think...
I tried to move the condition of negation of the attribute to the
context (there it works), but I miss the count (or any other real
operation):
<rule context="b/a[@x and not(y)]">
<assert test="count(.)=10"> the sum must be 10 </assert>
</rule>
I believe the count will always 1 in the second operation. So, my
intention is using it on 'test' and not in 'context'.
Any ideas?
regards,
Pedro Salazar.
--
-PS
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |