schematron validation

This should cover W3C XML Schema, Relax NG and DTD related problems.
gregor schubert
Posts: 2
Joined: Wed Aug 24, 2005 11:54 pm

schematron validation

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

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

Best Regards,
Sorin
sreedevi
Posts: 1
Joined: Fri Dec 09, 2005 7:35 pm

Post by sreedevi »

what is the process to validate my schematron schema.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

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

Best Regards,
George
Post Reply