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 » Thu Aug 25, 2005 12:07 am

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: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Thu Aug 25, 2005 12:30 pm

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 » Fri Dec 09, 2005 7:38 pm

what is the process to validate my schematron schema.

george
Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Fri Dec 09, 2005 8:04 pm

Hi,

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

Best Regards,
George

Post Reply