Hello,

Can anybody explain to me what's wrong with my configuration
"docbook42.xxe" ?

I want XXE works with DTD DocBook 4.2 (sorry, I can't wait the
next version ;-)) and a customize style. Like the description in
the Power User Guide, I create a directory in my XXE user
preferences directory (i.e. C:\Documents and Settings\<user>\xx2)
wich contain the configuration file (docbook42.xxe), the
templates and a CSS.
Naturally, I re-use a lots of files of the configuration
"docbook.xxe" deploy with XXE.

Everything is OK only the style. I can't use my "docbook42.css".
XXE always offers me "DocBook" and the "DocBook (collapsible
sections)". If I want to see my "DocBook42" in the Style menu, I
must reference it in the original "docbook.xxe". Why ? :-(

Here's my "docbook42.xxe" :
<?xml version="1.0" encoding="UTF-8"?>
<configuration name="DocBook v.4.2"
xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/confi
guration ../configuration/xsd/configuration.xsd"
xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

  <load location="file:///c:/program
files/XMLmind_XML_Editor/config/docbook/docbook.jar"/>

  <help location="file:///c:/program
files/XMLmind_XML_Editor/config/docbook/docbook_help.jar"/>

  <include location="file:///c:/program
files/XMLmind_XML_Editor/config/docbook/common.incl"/>

  <include location="file:///c:/program
files/XMLmind_XML_Editor/config/docbook/toolBar.incl"/>

  <detect>
    <and>
      <or>
        <rootElementLocalName>book</rootElementLocalName>
        <rootElementLocalName>article</rootElementLocalName>
        <rootElementLocalName>chapter</rootElementLocalName>
        <rootElementLocalName>section</rootElementLocalName>
        <rootElementLocalName>sect1</rootElementLocalName>
        <rootElementLocalName>sect2</rootElementLocalName>
        <rootElementLocalName>sect3</rootElementLocalName>
        <dtdPublicId substring="true">DTD DocBook XML
V4.2</dtdPublicId>
      </or>
      <rootElementNamespace xsi:nil="true"/>
      <not>
        <dtdPublicId substring="true">Simplified</dtdPublicId>
      </not>
    </and>
  </detect>

  <dtd publicId="-//OASIS//DTD DocBook XML V4.2//EN"
systemId="file:///C:/docbook/xml/docbookx.dtd"/>

  <css location="css/docbook42.css" name="DocBook v.4.2"/>

  <template location="modeles/book.xml" name="Book"/>
  <template location="modeles/article.xml" name="Article"/>
  <template location="modeles/chapter.xml" name="Chapitre"/>
  <template location="modeles/section.xml" name="Section"/>
  <!-- entrytbl not included in sdocbook -->
  <elementTemplate name="1x2">
    <entrytbl cols="2" xmlns="">
      <tbody>
        <row>
          <entry/>
          <entry/>
        </row>
      </tbody>
    </entrytbl>
  </elementTemplate>
  <elementTemplate name="2x1">
    <entrytbl cols="1" xmlns="">
      <tbody>
        <row>
          <entry/>
        </row>
        <row>
          <entry/>
        </row>
      </tbody>
    </entrytbl>
  </elementTemplate>
  <elementTemplate name="2x2">
    <entrytbl cols="2" xmlns="">
      <tbody>
        <row>
          <entry/>
          <entry/>
        </row>
        <row>
          <entry/>
          <entry/>
        </row>
      </tbody>
    </entrytbl>
  </elementTemplate>
</configuration>

Here's my docbook42.css :

@import "file:///C:/Program
Files/XMLmind_XML_Editor/config/sdocbook/css/sdocbook.incl";
@import "file:///C:/Program
Files/XMLmind_XML_Editor/config/docbook/css/docbook.incl";
@import "file:///C:/Program
Files/XMLmind_XML_Editor/config/sdocbook/css/collapsible.incl";
@import "file:///C:/Program
Files/XMLmind_XML_Editor/config/docbook/css/collapsible.incl";
@import "file:///C:/Program
Files/XMLmind_XML_Editor/config/sdocbook/css/print.incl";

emphasis[role=highlight] {
font-style: normal;
background-color: #ffff66;
}

--
Malo Pichot



Reply via email to