Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Michael(tm) Smith
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

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
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

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
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

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
-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

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Keith Fahlgren
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

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Jirka Kosek
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',

RE: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread Dick Hamilton
-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

Re: [docbook-apps] Using Schematron to define templates

2008-05-21 Thread George Cristian Bina
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

[docbook-apps] Using Schematron to define templates

2008-05-20 Thread Dick Hamilton
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

Re: [docbook-apps] Using Schematron to define templates

2008-05-20 Thread Anagha Tongaonkar
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