[Schematron] test question
Albertson, Jacob [USA]
albertson_jacob at bah.com
Tue Oct 7 12:54:24 EDT 2008
Hi All,
This might be more of an XPath question but I will try posting it
here anyway. I need a assertion test that will see if an element in an
external document is exactly the same as an element in my document (It
has all the same descendents and they all have all the same attributes
and no other extra descendents in either). I have tried many examples
including the following but nothing seems to work. Any help would be
greatly appreciated.
<sch:assert
test="document('InputFromOutput.xml')//ds:SearchRequest[child::* =
current()/ds:SearchRequest/child::*]"> atom:feed contains the
ds:SearchRequest that produced the output </sch:assert>
<sch:assert test="document('InputFromOutput.xml')//ds:SearchRequest[* =
current()/ds:SearchRequest/*]"> atom:feed contains the ds:SearchRequest
that produced the output </sch:assert>
<sch:assert test="document('InputFromOutput.xml')//ds:SearchRequest/* =
current()/ds:SearchRequest/*"> atom:feed contains the ds:SearchRequest
that produced the output </sch:assert>
Thanks,
Jacob Albertson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eccnet.com/pipermail/schematron/attachments/20081007/a3747b67/attachment.html
More information about the Schematron
mailing list