OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



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

[ Lists Home | Date Index | Thread Index ]

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

Pedro Salazar.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS