 |
 |
 |
At 2004-03-02 20:51 +0000, Pedro Salazar wrote:
>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...
You say "another attribute" yet you are asking for an element ... have you
tried:
<assert test="count(a[@x and not(@y)])=10"> the sum must be 10 </assert>
Also, I note you are using count() but documenting it as sum() ... is that
what you need?
I hope this helps.
....................... Ken
--
US XSL training: Washington,DC March 15; San Francisco,CA March 22
World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@C...
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/x/bc
|
 | 

|  |
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.
|  |
| |
 |
 |
 |