[oXygen-user] DocBook 5 rng-based documents

Sorin Ristache
Mon Aug 13 04:49:13 CDT 2007


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?




More information about the oXygen-user mailing list