
Hi Bob, I normally don't use the processing instruction in oxygen as our docbook xml comes from elsewhere. Instead I was under the impression that Oxygen read the version attribute on the book element, a small test revealed that, that's not the case :( With the processing instructions it all validates as it's supposed to. Thanks /Erik Ps. I do really like version 5.1 as it removes many of the illogical limitations on element placement i.e. anchors. Great job and thanks to all involved. -----Ursprungligt meddelande----- Från: Bob Stayton [mailto:bobs@sagehill.net] Skickat: den 29 april 2016 22:15 Till: Erik Zander <Erik.Zander@studentlitteratur.se>; oXygen-user@oxygenxml.com Ämne: Re: [oXygen-user] Oxygen ver 18 validating docbook 5.1 how? I've been looking at Oxygen 18's DocBook 5.1 support a bit. When I do File > New and select a DocBook 5.1 template, I actually get a 5.0 document. The version="5.0" and <?xml-model ?> processing instructions that Oxygen adds at the top point to 5.0. I guess this bit hasn't been updated yet. However, if I just change the number in the xml-model processing instructions from 5.0 to 5.1 and reload the document, it validates as 5.1. <?xml-model href="http://docbook.org/xml/5.1/rng/docbook.rng" schematypens="http://relaxng.org/ns/structure/1.0"?> <?xml-model href="http://docbook.org/xml/5.1/rng/docbook.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?> The XML catalog that Oxygen includes for 5.1 uses "5.1", not "5.1CR3". Bob Stayton Sagehill Enterprises bobs@sagehill.net On 4/28/2016 2:23 AM, Erik Zander wrote:
Hi,
I have a docbook file that conforms to the docbook 5.1CR3 schema but not 5.0.
My version attribute in the root element is set to 5.1CR3 but when I press validate it validates the document with the 5.0 schema.
Am I missing something in the requirements?
Regards
Erik Zander
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user