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 Sch
chael(tm) Smith; docbook-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 li
Keith Fahlgren wrote:
[EMAIL PROTECTED]"web"]/imagedata must be
@format="PNG|GIF|JPG"
Just quick note, in XPath 2.0 there are sequences as a new datatype and
you can write:
not(. = ('PNG', 'JPG', 'GIF'))
But sorry for OT on DocBook list ;-)
Jirka
--
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:
g
> Subject: Re: [docbook-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
>
> 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
>
> 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 a
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.
>
>
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 template Dick'
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 Hamilto
10 matches
Mail list logo