Dick Hamilton [EMAIL PROTECTED], 2008-05-20 17:32 -0600:
[...]
I would want the instance to be valid DocBook at all times, but
would use Schematron to check for things like the presence of
required sections, the sequence of sections, the presence of
required metadata, and so forth.
Has
I am working on similar project ( creating DB5 template with
customized
sections etc.) where the instance needs to be a valid DB5 document.
I do not know Schematron; however, I have been using RelaxNG schema
(customized per requirements) and it's good so far.
I think either approach
Dick Hamilton wrote:
I'm working on a DocBook template for a documentation project
plan, and it occurred to me that once I have a template defined,
I could create a set of Schematron assertions to check that an
instance conforms to the template.
How do you define 'conforms to the
-apps] Using Schematron to define templates
Dick Hamilton [EMAIL PROTECTED], 2008-05-20 17:32 -0600:
[...]
I would want the instance to be valid DocBook at all times, but
would use Schematron to check for things like the presence of
required sections, the sequence of sections
On Wed, May 21, 2008 at 8:14 AM, Dick Hamilton [EMAIL PROTECTED] wrote:
Michael,
Thanks for the pointers. I like to work from examples, so they
should be useful.
We're planning on spinning up Schematron (with XPath 2.0) for exactly
the same sort of stuff. Here's a very minimal example:
?xml
Keith Fahlgren wrote:
report test='[EMAIL PROTECTED]web]/[EMAIL PROTECTED](.=PNG)
and not(.=JPG) and
not(.=GIF)]]'[EMAIL PROTECTED]web]/imagedata must be
@format=PNG|GIF|JPG/report
Just quick note, in XPath 2.0 there are sequences as a new datatype and
you can write:
not(. = ('PNG',
-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Using Schematron to define templates
On Wed, May 21, 2008 at 8:14 AM, Dick Hamilton
[EMAIL PROTECTED] wrote:
Michael,
Thanks for the pointers. I like to work from examples, so they
should be useful.
We're planning on spinning
Hi Dick,
The DocBook Relax NG schema already contains some embedded Schematron
rules. The Schematron rules are available also separately in a
Schematron schema in the DocBook distribution and there is also an NVDL
script that performs a validation against both the Relax NG and against
the
I'm working on a DocBook template for a documentation project
plan, and it occurred to me that once I have a template defined,
I could create a set of Schematron assertions to check that an
instance conforms to the template.
I would want the instance to be valid DocBook at all times, but
would
I am working on similar project ( creating DB5 template with customized
sections etc.) where the instance needs to be a valid DB5 document.
I do not know Schematron; however, I have been using RelaxNG schema
(customized per requirements) and it's good so far.
Regards,
Anagha
Dick
10 matches
Mail list logo