schematron validation
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- 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
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
-
- 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
If you enclose sch:rule in sch:schema and sch:pattern it is valid.
Best Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service