List Info

Thread: Validating DocBook V5.0




Validating DocBook V5.0
user name
2007-06-13 19:57:59
I've been reading through the "DocBook V5.0: The
Transition Guide"
(http://www.docbook
.org/docs/howto/) about validating V5 documents.

>From that document, "Sun Multi-Schema XML Validator
(MSV) is able to
validate an XML document against a RELAX NG schema *and*
Schematron
rules at the same time" (emphasis mine). Unfortunately
(on Windows at
least) the exit code doesn't seem to be set when validation
fails --
which makes automation a bit difficult. Anyone else
experienced this?

As an alternative, I thought I might use xmllint -- anyone
know if it
is able to validate both against a RELAX NG schema and
Schematron
rules?

Thanks,
Ken

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Validating DocBook V5.0
user name
2007-06-14 07:03:24
Ken Morse wrote:

> As an alternative, I thought I might use xmllint --
anyone know if it
> is able to validate both against a RELAX NG schema and
Schematron
> rules?

Not in a single step. But it is possible to convert
Schematron schema
into XSLT stylesheet and then use this stylesheet together
with xsltproc
for validation.

See:

http://xml.ascc.n
et/schematron/1.5/

-- 
------------------------------------------------------------
------
  Jirka Kosek      e-mail: jirkakosek.cz      http://xmlguru.cz
------------------------------------------------------------
------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document
processing
------------------------------------------------------------
------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34
member
------------------------------------------------------------
------
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz

Re: Validating DocBook V5.0
user name
2007-06-14 07:27:40
You should be able to use the NVDL script that comes with
the latest 
DocBook 5 (5.0CR4 - http://docbook.org/xml
/5.0CR4/)to validate against 
both the Relax NG and against the Schematron Schema.
oNVDL is an open source implementation of NVDL based on Jing
and 
supports both Schematron and Relax NG for validation. It is
available from
http://www.oxygen
xml.com/onvdl.html
If you have any issues with oNVDL let me know.

Regards,
George
------------------------------------------------------------
---------
George Cristian Bina - http://aboutxml.blogspo
t.com/
<oXygen/> XML Editor, Schema Editor and XSLT
Editor/Debugger
http://www.oxygenxml.com



Jirka Kosek wrote:
> Ken Morse wrote:
> 
>> As an alternative, I thought I might use xmllint --
anyone know if it
>> is able to validate both against a RELAX NG schema
and Schematron
>> rules?
> 
> Not in a single step. But it is possible to convert
Schematron schema
> into XSLT stylesheet and then use this stylesheet
together with xsltproc
> for validation.
> 
> See:
> 
> http://xml.ascc.n
et/schematron/1.5/
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Validating DocBook V5.0
user name
2007-06-14 09:31:27
Thanks very much for the pointers, Jirka and George -- I'll
check them out.

Ken

On 6/14/07, George Cristian Bina <georgeoxygenxml.com> wrote:
> You should be able to use the NVDL script that comes
with the latest
> DocBook 5 (5.0CR4 - http://docbook.org/xml
/5.0CR4/)to validate against
> both the Relax NG and against the Schematron Schema.
> oNVDL is an open source implementation of NVDL based on
Jing and
> supports both Schematron and Relax NG for validation.
It is available from
> http://www.oxygen
xml.com/onvdl.html
> If you have any issues with oNVDL let me know.
>
> Regards,
> George
>
------------------------------------------------------------
---------
> George Cristian Bina - http://aboutxml.blogspo
t.com/
> <oXygen/> XML Editor, Schema Editor and XSLT
Editor/Debugger
> http://www.oxygenxml.com

>
>
> Jirka Kosek wrote:
> > Ken Morse wrote:
> >
> >> As an alternative, I thought I might use
xmllint -- anyone know if it
> >> is able to validate both against a RELAX NG
schema and Schematron
> >> rules?
> >
> > Not in a single step. But it is possible to
convert Schematron schema
> > into XSLT stylesheet and then use this stylesheet
together with xsltproc
> > for validation.
> >
> > See:
> >
> > http://xml.ascc.n
et/schematron/1.5/
> >
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )