Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] schematronx (Xpath): how to verify the absence of anattribute?

From: Pedro Salazar <pedro-b-salazar@----------.-->
To: "G. Ken Holman" <gkholman@----------------.--->
Date: 3/3/2004 11:09:00 AM
On Tue, 2004-03-02 at 21:12, G. Ken Holman wrote:

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

You're right. I think I may have done a few mistakes on my tests. I just
tested as you said (and as I was thinking but not as I wrote here), and
worked just fine.

Is a "not(@y)" and not a "not(y)".

thanks,
Pedro Salazar.
-- 
PS
pedro-b-salazar_at_ptinovacao_dot_pt
PGP:0E129E31D803BC61


transparent
Print
Mail
Like It
Disclaimer
.

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.

.
.

transparent

transparent