
Hi oXygen 8.2 supports both DocBook 4.4 and 5.0. According to Norm Welsh DockBook5 Definitive Guide [quote/unquote]: "The normative schema for DocBook V5.0 is the RELAX NG Grammar with its Schematron annotations. The only reason to use a DTD with DocBook V5.0 is if your editing environment (or other tool) requires one, for example, for syntax directed editing." The sample provided with oXygen 8.2 has this declaration: <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0//EN" "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd"> Anyone knows what should be the proper DOCTYPE declaration if the document is to be based on the RNG. And is there any specific impact on transformation functions in that case? Thanks for help. ka

Hello, Sorry, the DocBook sample document that comes with oXygen is based on DocBook 4, not DocBook 5: <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd"> It is the document sample.xml which you can find in the folder "docbook" of the default oXygen project, that is sample.xpr. What is the location of the sample from which you quoted? The proper declaration of the DocBook 5 schema is inserted automatically by oXygen in any new document based on one of the DocBook 5 templates available in the "New from Templates" dialog (the "New from Templates" toolbar button): <?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0b5/rng/docbook.rng" type="xml"?> The same DocBook stylesheets are able to transform correctly both DocBook 4 and DocBook 5 documents. Just use the stylesheets available in [oXygen-install-folder]/frameworks/docbook/xsl/ as you can see in the DocBook default scenarios, for example the "DocBook PDF" scenario which refers the fo/docbook.xsl stylesheet with: ${frameworks}/docbook/xsl/fo/docbook.xsl You can find details about oXygen variables like "frameworks" in the User Manual: http://www.oxygenxml.com/doc/ug-standalone/scenario-editor-variables.html Regards, Sorin Khaled Aly wrote:
The sample provided with oXygen 8.2 has this declaration:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0//EN" "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd">
Anyone knows what should be the proper DOCTYPE declaration if the document is to be based on the RNG.
And is there any specific impact on transformation functions in that case?

Hi Khaled, See also the following from the DocBook 5 howto: http://www.docbook.org/docs/howto/#editors-oxygen It describes how to set up oXygen to recognize DocBook schema automatically based on the document namespace. Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Sorin Ristache wrote:
Hello,
Sorry, the DocBook sample document that comes with oXygen is based on DocBook 4, not DocBook 5:
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
It is the document sample.xml which you can find in the folder "docbook" of the default oXygen project, that is sample.xpr. What is the location of the sample from which you quoted?
The proper declaration of the DocBook 5 schema is inserted automatically by oXygen in any new document based on one of the DocBook 5 templates available in the "New from Templates" dialog (the "New from Templates" toolbar button):
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0b5/rng/docbook.rng" type="xml"?>
The same DocBook stylesheets are able to transform correctly both DocBook 4 and DocBook 5 documents. Just use the stylesheets available in [oXygen-install-folder]/frameworks/docbook/xsl/ as you can see in the DocBook default scenarios, for example the "DocBook PDF" scenario which refers the fo/docbook.xsl stylesheet with:
${frameworks}/docbook/xsl/fo/docbook.xsl
You can find details about oXygen variables like "frameworks" in the User Manual:
http://www.oxygenxml.com/doc/ug-standalone/scenario-editor-variables.html
Regards, Sorin
Khaled Aly wrote:
The sample provided with oXygen 8.2 has this declaration:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0//EN" "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd">
Anyone knows what should be the proper DOCTYPE declaration if the document is to be based on the RNG.
And is there any specific impact on transformation functions in that case?
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

George, Sorin That works fine. Thanks for the info and the links. At the first while, it's clear there are element structure differences in version 5. Cheers. Khaled ----- Original Message ----- From: "George Cristian Bina" <george@oxygenxml.com> To: <oxygen-user@oxygenxml.com> Sent: Monday, August 13, 2007 2:19 PM Subject: Re: [oXygen-user] DocBook 5 rng-based documents
Hi Khaled,
See also the following from the DocBook 5 howto: http://www.docbook.org/docs/howto/#editors-oxygen It describes how to set up oXygen to recognize DocBook schema automatically based on the document namespace.
Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Sorin Ristache wrote:
Hello,
Sorry, the DocBook sample document that comes with oXygen is based on DocBook 4, not DocBook 5:
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
It is the document sample.xml which you can find in the folder "docbook" of the default oXygen project, that is sample.xpr. What is the location of the sample from which you quoted?
The proper declaration of the DocBook 5 schema is inserted automatically by oXygen in any new document based on one of the DocBook 5 templates available in the "New from Templates" dialog (the "New from Templates" toolbar button):
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0b5/rng/docbook.rng" type="xml"?>
The same DocBook stylesheets are able to transform correctly both DocBook 4 and DocBook 5 documents. Just use the stylesheets available in [oXygen-install-folder]/frameworks/docbook/xsl/ as you can see in the DocBook default scenarios, for example the "DocBook PDF" scenario which refers the fo/docbook.xsl stylesheet with:
${frameworks}/docbook/xsl/fo/docbook.xsl
You can find details about oXygen variables like "frameworks" in the User Manual:
http://www.oxygenxml.com/doc/ug-standalone/scenario-editor-variables.html
Regards, Sorin
Khaled Aly wrote:
The sample provided with oXygen 8.2 has this declaration:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0//EN" "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd">
Anyone knows what should be the proper DOCTYPE declaration if the document is to be based on the RNG. And is there any specific impact on transformation functions in that case?
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
George Cristian Bina
-
Khaled Aly
-
Sorin Ristache