Open GoogleCodeExporter opened 9 years ago
it is maybe not too hard to implement, here is a good link
(http://www.edankert.com/validate.html)
) talking about the different parser implementations (we are using 2 of them in
the plugin)
Original comment by MimilO...@gmail.com
on 25 Mar 2011 at 7:26
That talks about xsd and dtd...does it include RelaxNG? (I've only glanced at
it). We'd want to validate against the DocBook RelaxNG schema and ideally have
the option of validating against embedded schematron rules too. I believe nvdl
(e.g. http://jnvdl.sourceforge.net/ ) does that.
Another detail to consider is that some users will use a DocBook variant, so
there has to be a way to specify a customized version of the DocBook schema in
the same way it does now with the xslts.
Thanks,
David
Original comment by crame...@gmail.com
on 25 Mar 2011 at 11:07
Looking at jing-trang, there are open issues both to support nvdl and mavenize
the project, though the mavenize one is ranked low priority :-(
https://code.google.com/p/jing-trang/issues/list
David
Original comment by crame...@gmail.com
on 25 Mar 2011 at 11:16
How do you imagine this feature?
- a specific maven goal? (with its specific settings)
-- this can be runned without the processing phase
-- this duplicates the file source set (maybe some users want to have different
file set?)
- an additionnal parameter (validate -> true/false) into the generate-* goals?
-- if we need to add parameters for the validation, the settings section may
become ugly
- stop the goal at the first invalid file or list all invalid files with all
errors?
What will be validated?
- the generated book/article (the file with the XInclude already resolved and
dumped)
-- the simplest way to do it (imho), but the errors can be difficult to read by
the user (how to report the original line number, etc)
- each source file?
-- the best way to do it from the user point of view (imho)
By the way, i looked through the code to the XInclude part ; since xom seems to
be a compile depedency, why do not always use xom? why fallback to the Xerces
impl?
Regards
Original comment by vincent....@gmail.com
on 5 Nov 2013 at 7:36
Original issue reported on code.google.com by
crame...@gmail.com
on 24 Mar 2011 at 9:29