List Info

Thread: Re: DocBook and Schematron




Re: DocBook and Schematron
user name
2007-11-07 05:49:09
Hi Giuseppe,


> What's the implication of Schematron in DocBook?

Well, as far as I can tell, DocBook 5 contains Schematron to
test different
"assertions" that are not easy or possible to
implement in RNG. For example,
one Schematron rule (is this the correct term?) is there to
check for a version
attribute in a root element. As there can be many, it is
cumbersome to 
implemented this restriction into RELAX NG. Therefor it is
delegated to
Schematron. I has some similarities to XPath and XSLT. You
can search for
elements in the docbook.rn{c,g} file that are bound to the
namespace 
"http://www.a
scc.net/xml/schematron" or look into the file
docbook.sch.


> If my customized DocBook schema is based on RNG, should
I also
> care about schematron?

Depends.  I guess,
in most cases you don't have to care. Generally,
DocBook elements are easy to remove and easy to add. On the
other
side, if you need special checks that are not easy mapped
into a 
RELAX NG rule/pattern, then you could consider Schematron.

 
> Furthermore, what's the purpose of file
"docbook.nvdl"?

That's the "Namespace-based Validation Dispatching
Language", see [1].
With the help of this file and a respective validator that
supports NVDL,
you can validate XML documents that are composed of
different
Schemas *without* customizing the original one.

A good explanation can be found here [2].

Tom

---- References
[1] http://www.nvdl.org/
[2] http://j
nvdl.sourceforge.net/about-nvdl.html

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


Re: DocBook and Schematron
user name
2007-11-07 07:20:58
Thomas Schraitle wrote:


>> Furthermore, what's the purpose of file
"docbook.nvdl"?
> 
> That's the "Namespace-based Validation Dispatching
Language", see [1].
> With the help of this file and a respective validator
that supports NVDL,
> you can validate XML documents that are composed of
different
> Schemas *without* customizing the original one.
> 
> A good explanation can be found here [2].
> 
> Tom
> 
> ---- References
> [1] http://www.nvdl.org/
> [2] http://j
nvdl.sourceforge.net/about-nvdl.html

I think you may consider using Schematron if your extensions
were being 
'broken' by users and wanted to check them?

I've done a small write-up on nvdl too.

http://www.dpawson.co.
uk/nvdl/

regards

-- 
Dave Pawson
XSLT, XSL-FO and Docbook FAQ
http://www.dpawson.co.uk



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


[1-2]

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