Re: Assert matched to Rule context?

Rick Jelliffe <[email protected]> Tue, 30 Sep 2003 14:38:25 +1000
Newsgroups gmane.text.xml.schematron
Message-ID <[email protected]>
Sure.  Implementations based on the skeleton can have customized output.
There already is code to generate the XPath of the context as part of the
skeleton IIRC.

One place to start might be the schematron-conformance implementation
see
    http://www.ascc.net/xml/schematron/1.5/
in particular
    http://www.ascc.net/xml/schematron/1.5/conformance1-5.xsl

Cheers
Rick Jelliffe


Peter Charles wrote:

>Hello,
>
>Is there any way to have the <ASSERT> elements in the validation output
>reference the context of rule being tested?
>
>Output would look like this:
>
>    <SchematronValidation>
>        <Result>failure</Result>
>        <Asserts>
>            <ASSERT context"/ab/b">b must be greater than a </ASSERT>
>            <ASSERT context="/ab/a">a must be less than b</ASSERT>
>        </Asserts>
>        <Reports/>
>    </SchematronValidation>
>
>Thank you
>
>Peter
>
>  
>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf