Page 1 of 1

schematron validation

Posted: Thu Aug 25, 2005 12:07 am
by gregor schubert
hello,

i cannot validate my schematron schema. is there an error?

<sch:rule context="person">
<sch:assert test="(@sex= 'm' and
title = 'Mr.' or
(@sex = 'f' and title = 'Ms.'))">attribute sex und element title have to be compatible.</sch:assert>
</sch:rule>

thx,
gregor

Posted: Thu Aug 25, 2005 12:30 pm
by sorin_ristache
Hello,

If you enclose sch:rule in sch:schema and sch:pattern it is valid.

Best Regards,
Sorin

Posted: Fri Dec 09, 2005 7:38 pm
by sreedevi
what is the process to validate my schematron schema.

Posted: Fri Dec 09, 2005 8:04 pm
by george
Hi,

Oxygen checks that to be valid against the XML Schema for Schematron.

Best Regards,
George