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


Help: OASIS Mailing Lists Help | MarkMail Help



   xpath+schematron rule (is possible...)

[ Lists Home | Date Index | Thread Index ]


I wonder if is possible to verify with XPath the following "pseudo" rule
for schematron:

-I want to match (assert) an element <a> with an attribute @match='true'
that its @index value will exist in another element <b> with the same
attribute @index.

For instance,

   	<a index="1" match="true">
 	<a index="2" match="false">
	<a index="3" match="true">
   	<b index="1">
 	<b index="2">

Now, I want to pick a rule with XPath and schematron which will detect
the non existence of <b> with @index='3'.

I tried this rule but it's malformed:

<rule context="root" >
	<assert test="a[@match='true']@index=b@index"> 
	fail </assert>

Any help would be very appreciated.

Pedro Salazar.

This is a digitally signed message part


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

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