DocBook 5.0b1 xsd with oXygen-6.2 and Xincludes

How does one utilize DocBook 5.0b1 xsd with oXygen-6.2 and Xincludes ? Ray

Ray Miller wrote:
How does one utilize DocBook 5.0b1 xsd with oXygen-6.2 and Xincludes ?
Why you are not using RELAX NG schema with oXygen? It is much more better then XSD and DTD versions. -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: XML schémata (včetně RELAX NG) 7.-9.11. *** DocBook 5.-7.12. *** XSL-FO 19.-20.12. *** ------------------------------------------------------------------

Dear Ray, For DocBook 5 it is recommended to use the Relax NG schema instead of the DTD or XML Schema. Reading Norman Walsh post on the rng-users list [1] I see that there were problems converting from Relax NG to XSD with TRANG so they obtained the XSD schema converting the Relax NG to DTD and then converting from DTD to XML Schema - that means that the XSD will not contain more than the DTD. The XInclude support works with Relax NG without any problems. You can set up a default schema association in Options->Preferences -- Editor -- Default Schema Association between the DocBook namespace and the Relax NG XInclude enabled schema, see below my settings: Namespace: http://docbook.org/ns/docbook Root local name: <ANY> File name: <ANY> Schema Type: RNG Schema Schema URI: file:/F:/test/docbook-5.0b1/rng/docbookxi.rng Make sure you move this up in the list of associations otherwise you may get the document associated with the version 4 DTD as there is already a rule for that association. After that if you have the XInclude support enabled you should be able to have documents like: test.xml ======== <?xml version="1.0" encoding="UTF-8"?> <book xmlns="http://docbook.org/ns/docbook" version="5.0"> <title>test</title> <article> <title>test</title> <para>test</para> <include xmlns="http://www.w3.org/2001/XInclude" href="section1.xml"> <fallback> <para xmlns="http://docbook.org/ns/docbook">Missing section 1</para> </fallback> </include> </article> </book> section1.xml ============ <?xml version="1.0" encoding="UTF-8"?> <section xmlns="http://docbook.org/ns/docbook" version="5.0"> <title>Section1</title> <para> Section 1 content. </para> </section> The validation will be performed against the Relax NG schema after expanding the XInclude elements. [1] http://groups.yahoo.com/group/rng-users/message/347 Hope that helps, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Ray Miller wrote:
How does one utilize DocBook 5.0b1 xsd with oXygen-6.2 and Xincludes ?
Ray
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Maybe for a separate thread, but I thought I read (just located) in Norm's v4-v5 migration doc that docbook and and chunk html are the only currently supported xsl's for v5. Therefore, no support for XEP (pdf) or XFC (rtf). Is this correct ? Ray

Ray Miller wrote:
Maybe for a separate thread, but I thought I read (just located) in Norm's v4-v5 migration doc that docbook and and chunk html are the only currently supported xsl's for v5.
What lead you to this *wrong* conclusion? May be you were confused by section "XSLT 2.0 based reimplementation" which talks about completely different implementation of standard DocBook XSL stylesheets then is currently in use.
Therefore, no support for XEP (pdf) or XFC (rtf).
Is this correct ?
No. "DocBook XSL Stylesheets The DocBook stylesheets are written in a quite general way so that they have always been able to process content written in different versions of DocBook (for example 3.1 and 4.2). Recent versions of the stylesheets are also able to process DocBook V5.0 albeit with some limitations. You can process DocBook V5.0 documents with the DocBook XSL stylesheets in exactly the same way as DocBook V4.x document. There is no need for a new special software, you can stick to you preferred XSLT processor, be it Saxon, xsltproc, Xalan or whatever else." <sidenote> When I wrote Transition Guide I thought that it will provide answers to questions you are asking. Seems that I wrote it badly, or people are not reading it. :-( </sidenote> -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: XML schémata (včetně RELAX NG) 7.-9.11. *** DocBook 5.-7.12. *** XSL-FO 19.-20.12. *** ------------------------------------------------------------------
participants (3)
-
George Cristian Bina
-
Jirka Kosek
-
Ray Miller