Schematron embeded in RELAX NG

Hi, does oXygen support Schematron rules embedded inside RELAX NG schema for validation? If not, is there any chance to add this into future versions? The reason why I ask is that DocBook 5.0 schema uses Schematron to enforce some constraints that can't be expressed on RELAX NG level. TIA, Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: DocBook 5.-7.12. * XSL-FO 19.-20.12. XSLT 17.-20.10. * XML schémata (včetně RELAX NG) 7.-9.11. ------------------------------------------------------------------

Hi Jirka, Yes, it does. We support * Schematron 1.5 * Schematron 1.5 embedded in Relax NG * Schematron 1.5 embedded in XML Schema and since version 6.2 you can configure if you want XPath 2.0 or XPath 1.0 for Schematron. There is also an article about Schematron: http://www.oxygenxml.com/doc/HowToSchematron.pdf Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Jirka Kosek wrote:
Hi,
does oXygen support Schematron rules embedded inside RELAX NG schema for validation? If not, is there any chance to add this into future versions?
The reason why I ask is that DocBook 5.0 schema uses Schematron to enforce some constraints that can't be expressed on RELAX NG level.
TIA,
Jirka
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

George Cristian Bina wrote:
Yes, it does. We support
* Schematron 1.5 * Schematron 1.5 embedded in Relax NG * Schematron 1.5 embedded in XML Schema
and since version 6.2 you can configure if you want XPath 2.0 or XPath 1.0 for Schematron.
Cool.
There is also an article about Schematron: http://www.oxygenxml.com/doc/HowToSchematron.pdf
Thanks. Unfortunatelly process described in the document didn't work for me. I get no error messages from Schematron rules, although same document and schema produced error messages in other validators like MSV + Schematron plugin. If you are interested I can send you sample document and schema, but I don't know whether policy of this list allows attachements. My second comment is rather RFE. I would like if oXygen would be able to use Schematron rules that are placed inside schemas associated with default schema association. E.g. if I associate DocBook 5.0 RELAX NG schema with DocBook namespace I would like code completition to use RELAX NG schema solely (this works already nicely) and when I hit "Validate" button then I would like RELAX NG and Schematron validation done once. -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: DocBook 5.-7.12. * XSL-FO 19.-20.12. XSLT 17.-20.10. * XML schémata (včetně RELAX NG) 7.-9.11. ------------------------------------------------------------------

Hi Jirka, The list should allow attachments. Anyway, there is a sample file in [oxygen]/samples/schematron/tournament called Tournament.xml. If you add the following associations in that file: <?oxygen SCHSchema="tournament.rng"?> <?oxygen RNGSchema="tournament.rng" type="xml"?> and then perform the validate action then oXygen validates against both Relax NG and Schematron embedded rules. I will add a feature request with the support for schemas with embedded Schematron rules in the default association. Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Jirka Kosek wrote:
George Cristian Bina wrote:
Yes, it does. We support
* Schematron 1.5 * Schematron 1.5 embedded in Relax NG * Schematron 1.5 embedded in XML Schema
and since version 6.2 you can configure if you want XPath 2.0 or XPath 1.0 for Schematron.
Cool.
There is also an article about Schematron: http://www.oxygenxml.com/doc/HowToSchematron.pdf
Thanks. Unfortunatelly process described in the document didn't work for me. I get no error messages from Schematron rules, although same document and schema produced error messages in other validators like MSV + Schematron plugin. If you are interested I can send you sample document and schema, but I don't know whether policy of this list allows attachements.
My second comment is rather RFE. I would like if oXygen would be able to use Schematron rules that are placed inside schemas associated with default schema association. E.g. if I associate DocBook 5.0 RELAX NG schema with DocBook namespace I would like code completition to use RELAX NG schema solely (this works already nicely) and when I hit "Validate" button then I would like RELAX NG and Schematron validation done once.
participants (2)
-
George Cristian Bina
-
Jirka Kosek