Keith Fahlgren wrote:
> On 1/28/07, Dave Pawson <davep dpawson.co.uk> wrote:
>> I took the version 5 schematron file as a basis
>> and updated to iso Schematron.
>>
>> Below is the iso schematron file.
>
> Ah, nice. I'd been looking around for more real-world
examples.
>
>> <iso:pattern >
>> <iso:title >Root must have
version</iso:title>
>> <iso:rule
context="/db:para">
>> <iso:assert test=" version">The root element must have a
>> version attribute.</iso:assert>
>> </iso:rule>
>> <iso:rule
context="/db:set">
>
> Any reason you chose to enumerate all of these root
elements rather
> than just use "/*" ?
I didn't.
I'm guessing it was one of the working group?
The one that is 'odd' is db:para
(also note that the leading / isn't needed!)
Anyone interested, I've put some Schematron documentation
up
at www.dpawson.co.uk/schematron
All in docbook v5, with Bobs v.latest stylesheets... of
course
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|