rule context="X" semantic?
Pedro Salazar <[email protected]> 04 Mar 2004 15:47:53 +0000
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Message-ID | <[email protected]> |
Greetings,
Apparently I think I haven't figured out how schematron xpath works.
For instance, I have an aleatory tree like this one:
<root>
<A>
<B>
<C1>
<D> <E/> </D>
</C1>
<C2>
<F> <G/> </F>
</C2>
</B>
</A>
<A>
...
</A>
</root>
If I apply this rule:
<rule context="B">
<report test="1=1"> OK: matched with B </report>
</rule>
it prints fine. So it matched as expected.
But, if I apply this rule:
<rule context="F">
<report test="1=1"> OK: matched with F </report>
</rule>
or even if I apply the path to it:
<rule context="B/C2/F">
<report test="1=1"> OK: matched with F </report>
</rule>
it doesn't print anything.
Why? Am I missing anything?
If I put any element alone from my XML, and if I have a dummy report
always true, shouldn't it always matched the element and print?
I'm stuck here. Any help would be very appreciated.
regards,
Pedro Salazar.
--
-PS
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click