Why is it an external operation with xxe ? I'd like the "save as" menu entry let me choose the dtd. Why not ? Thank you anyway. Regards. Michel:-)
Hussein Shafie a ?crit: >Michel Kergoat wrote: > > >>I've installed XXE 2.1 std and began to write some docbook documents >>which are using DTD 4.1.2. >>Now I've installed XXE 2.2 std and would like to use DTD 4.2 because it >>is more usefull. >>How to convert my 4.1.2 documents to 4.2 ? >> >> > >Use a text editor (or a sed script) in order to replace > >--- ><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" >"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> >--- > >by > >--- ><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" >"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> >--- > >in all your V4.1.2 documents. This is possible because DTD V4.2 is >compatible with DTD V4.1.2. > > > > > > >>Which DTD is XXE using when I made file / new ? >> >> > >V4.2 > > > > > > >>Does it depend on the catalogs files ? >> >> > >No, both DTD are referenced in catalog.xml. > >For the Book and Article templates, it depends on the document type >declaration used in document template. For example, this is the Book >template included in the DocBook configuration: > >--- ><?xml version="1.0" encoding="UTF-8" ?> ><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> ><book> > <title></title> > <chapter> > <title></title> > <sect1> > <title></title> > <para></para> > </sect1> > </chapter> ></book> >--- > >Document type declaration-less templates such as Chapter, Section or >Appendix use the following configuration element of docbook.xxe to find >their DTDs: > >--- > <dtd publicId="-//OASIS//DTD DocBook XML V4.2//EN" > systemId="dtd/V4.2/docbookx.dtd" /> >--- > >You can read docbook.xxe, it is well commented regarding this point. >-- >XMLmind XML Editor Support List >xmleditor-support at xmlmind.com >http://www.xmlmind.com/mailman/listinfo/xmleditor-support > > >

