Next in thread →
Next in month →
Re: [xml-dev] Schematron and RNG, RNC
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:svg="http://www.w3.org/2000/svg" xmlns:dk="http://docbook.org/ns/docbook" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://relaxng.org/ns/structure/1.0">
<s:pattern id="condition.checks">
...
</s:pattern>
Not sure if I explained that well but here is what i've done and no syntax error given..
I was following the advice from http://www.xml.com/pub/a/2004/02/11/relaxtron.html?page=2
" it is recommended that you embed the Schematron rules in one of two places:
--
Some fantastic African/Canadian Fusion http://bafila.bandcamp.com/
<grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:svg="http://www.w3.org/2000/svg" xmlns:dk="http://docbook.org/ns/docbook" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://relaxng.org/ns/structure/1.0">
<s:pattern id="condition.checks">
...
</s:pattern>
Not sure if I explained that well but here is what i've done and no syntax error given..
I was following the advice from http://www.xml.com/pub/a/2004/02/11/relaxtron.html?page=2
" it is recommended that you embed the Schematron rules in one of two places:
Insert all the embedded Schematron rules at the beginning of the RELAX NG schema as a child of the top-level element. Then you always know that if you have embedded rules, they will be specified together and in the same place.
Specify each Schematron rule on the element pattern that specifies the context of the embedded rule. In the previous example this means that one of the Schematron rules would be embedded on the element pattern for the
itemelement and the other on the element pattern for theamountelement in the payment section."
On Fri, Feb 3, 2012 at 7:01 PM, John Cowan <[email protected]> wrote:
> Well the other thing I'm not clear on is that for the RNG the schematronI don't understand that. An element placed after the document (top-level)
> logic can be placed after the top level grammar element,, for the RNC I'm
> getting syntax error
element would not be well-formed XML.
--
Alex Muir
Program Organizer - University Technology Student Work Experience Building
University of the Gambia
http://sites.utg.edu.gm/alex/
Come visit Gambia enjoy the sun and culture and help out! Software Engineering Lecturers needed!
Join UTSWEB do local contract work or give a student a contract remotely for slow, cheap and good work http://sites.utg.edu.gm/utsweb/
Program Organizer - University Technology Student Work Experience Building
University of the Gambia
http://sites.utg.edu.gm/alex/
Come visit Gambia enjoy the sun and culture and help out! Software Engineering Lecturers needed!
Join UTSWEB do local contract work or give a student a contract remotely for slow, cheap and good work http://sites.utg.edu.gm/utsweb/
Some fantastic African/Canadian Fusion http://bafila.bandcamp.com/
Next in thread →
Next in month →