|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: schematronx (Xpath): how to verify the absence of anattrib
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








