Commits

dirkbaechle committed f7e00ed

- added configuration for Xmlmind's XML editor

Comments (0)

Files changed (41)

doc/editor_configs/xmlmind/addon/config/scons/common.incl

+<?xml version='1.0' encoding='ISO-8859-1'?>
+<configuration
+  xmlns="http://www.xmlmind.com/xmleditor/schema/configuration"
+  xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration">
+
+  <translation location="docbook_en.properties" />
+
+  <inclusionScheme name="XInclude">
+    <class>com.xmlmind.xml.xinclude.XIncludeScheme</class>
+  </inclusionScheme>
+
+  <cfg:preserveSpace xmlns="" 
+    elements="address funcsynopsisinfo classsynopsisinfo 
+              literallayout programlisting screen synopsis" />
+
+  <cfg:documentResources xmlns="">
+    <cfg:resource path="//@fileref" />
+  </cfg:documentResources>
+
+  <!-- Fixes the cols attribute of tgroup and entrytbl if needed to -->
+  <validateHook>
+    <class>com.xmlmind.xmleditext.docbook.table.ValidateHookImpl</class>
+  </validateHook>
+
+  <cfg:spellCheckOptions xmlns=""
+    useAutomaticSpellChecker="true"
+    languageAttribute="lang"
+    skippedElements="address programlisting screen synopsis code sgmltag 
+                     classsynopsisinfo modifier package classname  
+                     interfacename exceptionname varname methodname
+                     funcsynopsisinfo modifier type function
+                     initializer parameter funcparams
+                     lhs rhs nonterminal" />
+
+  <!-- Menu ============================================================== -->
+
+  <command name="docb.tableEdit">
+    <class>com.xmlmind.xmleditext.docbook.DBTableEdit</class>
+  </command>
+
+  <command name="docb.promote">
+    <class>com.xmlmind.xmleditext.docbook.Promote</class>
+  </command>
+  <command name="docb.demote">
+    <class>com.xmlmind.xmleditext.docbook.Demote</class>
+  </command>
+
+  <command name="docb.toggleInformal">
+    <macro undoable="true"
+           label="Convert informal&lt;element&gt; to/from &lt;element&gt;">
+      <choice>
+        <sequence>
+          <command name="selectNode" 
+            parameter="ancestorOrSelf[implicitElement]
+                       informaltable informalfigure informalexample" />
+
+          <!-- DocBook 4.3 supports HTML tables and we will *not* attempt to 
+               transform an HTML informaltable to a HTML table 
+               with a caption. -->
+
+          <test context="$selected" 
+                expression="local-name() != 'informaltable' or ./tgroup" />
+
+          <command name="selectNode" parameter="children" />
+          <command name="copy" />
+          <command name="selectNode" parameter="parent" />
+          <get context="$selected" 
+               expression="substring-after(local-name(), 'informal')" />
+	  <command name="replace" parameter="%_" />
+          <set variable="selectedNodes" context="$selected"
+               expression="./*[position() &gt; 1]" />
+	  <command name="paste" parameter="to" />
+        </sequence>
+
+        <sequence>
+          <command name="selectNode" 
+            parameter="ancestorOrSelf[implicitElement] table figure example" />
+          <!-- Assumes that first child is a title and not a blockinfo. -->
+          <set variable="selectedNodes" context="$selected"
+               expression="./*[position() &gt; 1]" />
+          <command name="copy" />
+          <command name="selectNode" parameter="parent" />
+          <get context="$selected" 
+               expression="concat('informal', local-name())" />
+	  <command name="replace" parameter="%_" />
+          <command name="selectNode" parameter="children" />
+	  <command name="paste" parameter="to" />
+        </sequence>
+      </choice>
+    </macro>
+  </command>
+
+  <menu label="_DocBook">
+    <menu label="C_olumn">
+      <item label="_Insert Before"
+            icon="scons_icons/insertColumnBefore.png"
+            command="docb.tableEdit" parameter="insertColumnBefore"/>
+      <item label="I_nsert After"
+            icon="scons_icons/insertColumnAfter.png"
+            command="docb.tableEdit" parameter="insertColumnAfter"/>
+      <separator />
+      <item label="_Cut"
+            icon="scons_icons/cut.png"
+            command="docb.tableEdit" parameter="cutColumn"/>
+      <item label="C_opy"
+            icon="scons_icons/copy.png"
+            command="docb.tableEdit" parameter="copyColumn"/>
+      <item label="_Paste Before"
+            icon="scons_icons/pasteBefore.png"
+            command="docb.tableEdit" parameter="pasteColumnBefore"/>
+      <item label="P_aste After"
+            icon="scons_icons/pasteAfter.png"
+            command="docb.tableEdit" parameter="pasteColumnAfter"/>
+      <item label="_Delete"
+            icon="scons_icons/deleteColumn.png"
+            command="docb.tableEdit" parameter="deleteColumn"/>
+    </menu>
+    <menu label="_Row">
+      <item label="_Insert Before"
+            icon="scons_icons/insertRowBefore.png"
+            command="docb.tableEdit" parameter="insertRowBefore"/>
+      <item label="I_nsert After"
+            icon="scons_icons/insertRowAfter.png"
+            command="docb.tableEdit" parameter="insertRowAfter"/>
+      <separator />
+      <item label="_Cut"
+            icon="scons_icons/cut.png"
+            command="docb.tableEdit" parameter="cutRow"/>
+      <item label="C_opy"
+            icon="scons_icons/copy.png"
+            command="docb.tableEdit" parameter="copyRow"/>
+      <item label="_Paste Before"
+            icon="scons_icons/pasteBefore.png"
+            command="docb.tableEdit" parameter="pasteRowBefore"/>
+      <item label="P_aste After"
+            icon="scons_icons/pasteAfter.png"
+            command="docb.tableEdit" parameter="pasteRowAfter"/>
+      <item label="_Delete"
+            icon="scons_icons/deleteRow.png"
+            command="docb.tableEdit" parameter="deleteRow"/>
+    </menu>
+    <menu label="C_ell">
+      <item label="_Increment Column Span"
+            icon="scons_icons/incrementColumnSpan.png"
+            command="docb.tableEdit" parameter="incrColumnSpan"/>
+      <item label="_Decrement Column Span"
+            icon="scons_icons/decrementColumnSpan.png"
+            command="docb.tableEdit" parameter="decrColumnSpan"/>
+      <separator />
+      <item label="I_ncrement Row Span"
+            icon="scons_icons/incrementRowSpan.png"
+            command="docb.tableEdit" parameter="incrRowSpan"/>
+      <item label="D_ecrement Row Span"
+            icon="scons_icons/decrementRowSpan.png"
+            command="docb.tableEdit" parameter="decrRowSpan"/>
+    </menu>
+    <separator />
+    <item label="Convert in_formal&lt;element&gt; to/from &lt;element&gt;" 
+          command="docb.toggleInformal"/>
+    <separator />
+    <item label="_Go to Opposite Link End"
+          command="selectById" parameter="swapIdAndReference"/>
+    <item label="Go to _Next Link"
+          command="selectById" parameter="nextReference"/>
+    <item label="Go to _Previous Link"
+          command="selectById" parameter="previousReference"/>
+    <separator />
+    <item label="Move _Up"
+          icon="scons_icons/up.png"
+          command="moveElement" parameter="up" />
+    <item label="Move Do_wn"
+          icon="scons_icons/down.png"
+          command="moveElement" parameter="down" />
+  </menu>
+
+  <!-- Toolbar ============================================================ -->
+
+  <command name="docb.convertWithAttribute">
+    <macro repeatable="true" undoable="true" label="Convert">
+      <sequence>
+        <choice>
+	  <command name="selectNode" 
+                   parameter="self[implicitElement] %0" />
+	  <command name="convert" 
+                   parameter="[implicitElement] %0" />
+        </choice>
+        <command name="putAttribute" parameter="%1 %2" />
+      </sequence>
+    </macro>
+  </command>
+
+  <!-- Easier to implement with "add" instead of "insertNode" but slower. -->
+
+  <command name="docb.addListItem">
+    <macro>
+      <sequence>
+	<command name="selectNode" 
+           parameter="ancestor[implicitElement] itemizedlist orderedlist 
+                      variablelist calloutlist procedure substeps
+                      simplelist segmentedlist" />
+        <command name="selectNode" parameter="child" />
+        <command name="insertNode" parameter="sameElement%0" />
+      </sequence>
+    </macro>
+  </command>
+
+  <!-- This macro is required for DocBook where a para can contains
+       lists, tables, etc.
+       Note that this is not the case of para in Simplified DocBook. -->
+
+  <command name="docb.addAfter">
+    <macro>
+      <choice>
+        <sequence>
+	  <command name="selectNode" 
+                   parameter="ancestorOrSelf[implicitElement] para" />
+          <command name="insert" parameter="after[implicitElement] %0" />
+        </sequence>
+        <command name="add" parameter="after[implicitElement] %0" />
+      </choice>
+    </macro>
+  </command>
+
+  <!-- Bindings =========================================================== -->
+
+  <binding>
+    <keyPressed code="F2" />
+    <keyPressed code="UP" />
+    <command name="moveElement" parameter="up" />
+  </binding>
+
+  <binding>
+    <keyPressed code="F2" />
+    <keyPressed code="DOWN" />
+    <command name="moveElement" parameter="down" />
+  </binding>
+
+  <!-- Inside a para or simpara (and only inside a para or simpara), 
+       XXE attempts to behave like a word-processor. -->
+
+  <binding>
+    <keyPressed code="ENTER" />
+    <command name="docb.splitOrInsertNewLine" />
+  </binding>
+
+  <binding>
+    <keyPressed code="DELETE" />
+    <command name="docb.joinOrDeleteChar" />
+  </binding>
+
+  <binding>
+    <keyPressed code="BACK_SPACE" />
+    <command name="docb.joinOrDeleteChar" parameter="backwards" />
+  </binding>
+
+  <command name="docb.splitOrInsertNewLine">
+    <macro>
+      <choice>
+        <command name="insertControlChar" parameter="\n" />
+
+	<sequence>
+          <command name="selectNode" 
+	           parameter="ancestorOrSelf[implicitElement] simpara para" />
+	  <command name="split" />
+	</sequence>
+      </choice>
+    </macro>
+  </command>
+
+  <command name="docb.joinOrDeleteChar">
+    <macro>
+      <choice>
+	<sequence>
+          <test 
+            expression="($dot/ancestor::para or $dot/ancestor::simpara) and 
+                        not($selected) and not($mark)" />
+          <command name="deleteSelectionOrJoinOrDeleteChar" parameter="%0" />
+	</sequence>
+
+        <command name="deleteSelectionOrDeleteChar" parameter="%0" />
+      </choice>
+    </macro>
+  </command>
+
+  <!-- Easy way to add paragraphs and list items -->
+
+  <binding>
+    <keyPressed code="ENTER" modifiers="mod" />
+    <command name="docb.addSame" parameter="After" />
+  </binding>
+
+  <binding>
+    <keyPressed code="ENTER" modifiers="mod shift" />
+    <command name="docb.addSame" parameter="Before" />
+  </binding>
+
+  <command name="docb.addSame">
+    <macro>
+      <choice>
+	<sequence>
+          <command name="selectNode" 
+	           parameter="ancestorOrSelf[implicitElement] simpara para" />
+
+          <choice>
+            <sequence>
+              <match context="$selected" 
+                     pattern="listitem/*[position() = 1]|
+	                      callout/*[position() = 1]|
+	                      step/*[position() = 1]" />
+              <command name="docb.addListItem" parameter="%0" />
+            </sequence>
+
+	    <command name="insertNode" parameter="sameElement%0" />
+          </choice>
+	</sequence>
+
+        <command name="docb.addListItem" parameter="%0" />
+      </choice>
+    </macro>
+  </command>
+
+  <!-- Note that Shift-Enter is not bound. -->
+
+  <!-- An easy way to paste paragraphs copied from another application. -->
+
+  <command name="docb.pasteAfterAsParagraphs">
+    <macro>
+      <sequence>
+	<command name="makeParagraphs" parameter="%0" />
+	<command name="paste" parameter="after[implicitElement] %_" />
+      </sequence>
+    </macro>
+  </command>
+
+  <binding>
+    <keyPressed code="ESCAPE" />
+    <charTyped char="w" />
+    <command name="docb.pasteAfterAsParagraphs" parameter="para" />
+  </binding>
+
+  <!-- An easy way to specify the URL in ulink -->
+
+  <binding>
+    <appEvent name="drop" />
+    <command name="docb.fileDrop" parameter="'%{value}'" />
+  </binding>
+
+  <command name="docb.fileDrop">
+    <macro>
+      <choice>
+        <sequence>
+          <match context="$clickedElement" pattern="ulink" />
+          <set variable="selectedElement" expression="$clickedElement" />
+
+          <set variable="dropped" context="$selectedElement" 
+               expression="relativize-uri(uri-or-file-name('%0'))" />
+          <get expression="$dropped" />
+          <command name="putAttribute" parameter="url '%_'" />
+
+          <get expression="$dropped" />
+          <command name="status" parameter="url='%_'" />
+        </sequence>
+
+        <command name="XXE.open" parameter="%0" />
+      </choice>
+    </macro>
+  </command>
+
+  <!-- Element templates ================================================== -->
+
+  <!-- Unlike graphic, mediaobject/imageobject is also supported by 
+       simplified docbook. -->
+
+  <elementTemplate name="image" selectable="override">
+    <figure xmlns="">
+      <title></title>
+      <mediaobject cfg:template="image" />
+    </figure>
+  </elementTemplate>
+
+  <elementTemplate name="screenshot">
+    <figure xmlns="">
+      <title></title>
+      <screenshot cfg:template="simple" />
+    </figure>
+  </elementTemplate>
+
+  <elementTemplate name="simple" selectable="override">
+    <screenshot xmlns="">
+      <screeninfo></screeninfo>
+      <mediaobject cfg:template="image" />
+    </screenshot>
+  </elementTemplate>
+
+  <!-- Replacement for automatically generated mediaobject
+       (which contains a textobject) -->
+
+  <elementTemplate name="image" selectable="override">
+    <mediaobject xmlns="">
+      <imageobject><imagedata cfg:template="simple" /></imageobject>
+    </mediaobject>
+  </elementTemplate>
+
+  <elementTemplate name="image" selectable="override">
+    <inlinemediaobject xmlns="">
+      <imageobject><imagedata cfg:template="simple" /></imageobject>
+    </inlinemediaobject>
+  </elementTemplate>
+
+  <!-- fileref is not a mandatory attribute of imagedata -->
+
+  <elementTemplate name="simple" selectable="override">
+    <imagedata xmlns="" fileref="???" />
+  </elementTemplate>
+
+  <!-- Replacement for automatically generated caption of a mediaobject
+       (which is empty) -->
+
+  <elementTemplate name="simple" selectable="override">
+    <caption xmlns="">
+      <para></para>
+    </caption>
+  </elementTemplate>
+
+  <!-- Replacement for automatically generated table 
+       (which contains a graphic) -->
+
+  <elementTemplate name="simple" selectable="override">
+    <table xmlns="">
+      <title></title>
+      <tgroup cols="2">
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </table>
+  </elementTemplate>
+
+<!--
+  <elementTemplate name="withPara" selectable="override">
+    <entry xmlns=""><para></para></entry>
+  </elementTemplate>
+
+  <elementTemplate name="withPara" selectable="override">
+    <entrytbl xmlns="" cols="2">
+      <tbody>
+	<row>
+	  <entry><para></para></entry><entry><para></para></entry>
+	</row>
+	<row>
+	  <entry><para></para></entry><entry><para></para></entry>
+	</row>
+      </tbody>
+    </entrytbl>
+  </elementTemplate>
+-->
+
+  <elementTemplate name="head_row">
+    <table xmlns="">
+      <title></title>
+      <tgroup cols="2">
+        <thead>
+          <row>
+            <entry align="center"></entry><entry align="center"></entry>
+          </row>
+        </thead>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </table>
+  </elementTemplate>
+
+  <elementTemplate name="head_column">
+    <table xmlns="">
+      <title></title>
+      <tgroup cols="2">
+        <colspec align="center"/>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </table>
+  </elementTemplate>
+
+  <elementTemplate name="head_row_column">
+    <table xmlns="">
+      <title></title>
+      <tgroup cols="2">
+        <colspec align="center" />
+        <thead>
+          <row>
+            <entry align="center"></entry><entry align="center"></entry>
+          </row>
+        </thead>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </table>
+  </elementTemplate>
+
+  <!-- Replacement for automatically generated informaltable 
+       (which contains a graphic) -->
+
+  <elementTemplate name="simple" selectable="override">
+    <informaltable xmlns="">
+      <tgroup cols="2">
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </informaltable>
+  </elementTemplate>
+
+  <elementTemplate name="head_row">
+    <informaltable xmlns="">
+      <tgroup cols="2">
+        <thead>
+          <row>
+            <entry align="center"></entry><entry align="center"></entry>
+          </row>
+        </thead>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </informaltable>
+  </elementTemplate>
+
+  <elementTemplate name="head_column">
+    <informaltable xmlns="">
+      <tgroup cols="2">
+        <colspec align="center"/>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </informaltable>
+  </elementTemplate>
+
+  <elementTemplate name="head_row_column">
+    <informaltable xmlns="">
+      <tgroup cols="2">
+        <colspec align="center" />
+        <thead>
+          <row>
+            <entry align="center"></entry><entry align="center"></entry>
+          </row>
+        </thead>
+        <tbody>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+          <row>
+            <entry></entry><entry></entry>
+          </row>
+        </tbody>
+      </tgroup>
+    </informaltable>
+  </elementTemplate>
+
+  <elementTemplate name="1x2">
+    <entrytbl xmlns="" cols="2">
+      <tbody>
+	<row>
+	  <entry></entry><entry></entry>
+	</row>
+      </tbody>
+    </entrytbl>
+  </elementTemplate>
+
+  <elementTemplate name="2x1">
+    <entrytbl xmlns="" cols="1">
+      <tbody>
+	<row>
+	  <entry></entry>
+	</row>
+	<row>
+	  <entry></entry>
+	</row>
+      </tbody>
+    </entrytbl>
+  </elementTemplate>
+
+  <elementTemplate name="2x2">
+    <entrytbl xmlns="" cols="2">
+      <tbody>
+	<row>
+	  <entry></entry><entry></entry>
+	</row>
+	<row>
+	  <entry></entry><entry></entry>
+	</row>
+      </tbody>
+    </entrytbl>
+  </elementTemplate>
+
+  <!-- indexterm -->
+
+  <elementTemplate name="singular" selectable="override">
+    <indexterm xmlns=""><primary></primary></indexterm>
+  </elementTemplate>
+
+  <elementTemplate name="startofrange">
+    <indexterm xmlns="" id="???"
+               class="startofrange"><primary></primary></indexterm>
+  </elementTemplate>
+
+  <elementTemplate name="endofrange">
+    <indexterm xmlns="" class="endofrange" startref="???" />
+  </elementTemplate>
+
+  <!-- DocBook 4.3, Simplified DocBook 1.1, etc, support
+       both HTML and CALS tables. -->
+  <include location="htmlTable.incl" />
+</configuration>

doc/editor_configs/xmlmind/addon/config/scons/css/cals_table.imp

+/*
+ * Copyright (c) 2005-2009 Pixware. 
+ *
+ * This file is part of the XMLmind XML Editor project.
+ * For conditions of distribution and use, see the accompanying legal.txt file.
+ *
+ * Styles for CALS tables (up to DocBook 4.2).
+ */
+
+@import "table.imp";
+
+/*
+ * "black" is the color used to draw a border around the table and its cells
+ * based on values of attributes such as frame, rowsep and colsep.
+ *
+ * "rgb(238,238,224)" (a very light gray) is the color used to draw 
+ * a border around each cell whether the cell actually has borders or not.
+ * Remove this parameter if this ``cell footprint'' disturbs you.
+ *
+ * For more information about table support for DocBook, see 
+ * XMLmind XML Editor - Configuration and Deployment.
+ */
+@extension "com.xmlmind.xmleditext.docbook.table.TableSupport black rgb(238,238,224)";
+

doc/editor_configs/xmlmind/addon/config/scons/css/collapsible.imp

+/*
+ * Copyright (c) 2003-2007 Pixware. 
+ *
+ * This file is part of the XMLmind XML Editor project.
+ * For conditions of distribution and use, see the accompanying legal.txt file.
+ *
+ * Styles for making sections and blocks with titles collapsible. 
+ */
+
+set,
+book,
+part,
+reference,
+chapter,
+preface,
+article,
+sect1,
+sect2,
+sect3,
+sect4,
+section,
+appendix,
+figure,
+example,
+table {
+    collapsible: yes;
+    not-collapsible-head: 1; /* title or metainfo */
+}
+
+figure {
+    collapsed-content: url(icons/figure.png);
+    collapsed-content-align: center;
+}
+
+example {
+    collapsed-content: url(icons/para.png);
+    collapsed-content-align: center;
+}
+
+table {
+    collapsed-content: url(icons/table.png);
+    collapsed-content-align: center;
+}
+
+set > title:first-child:before,
+book > title:first-child:before,
+reference > title:first-child:before,
+preface > title:first-child:before,
+article > title:first-child:before,
+figure > title:before,
+example > title:before,
+table > title:before {
+    content: collapser() " ";
+}
+
+part > title:first-child:before { 
+    content: collapser() " Part " simple-counter(n-, upper-roman) ": "; 
+}
+
+chapter > title:first-child:before { 
+    content: collapser() " Chapter " simple-counter(n-, decimal) ": "; 
+}
+
+sect1 > title:first-child:before { 
+    content: collapser() " " simple-counter(n-) " "; 
+}
+
+sect2 > title:first-child:before { 
+    content: collapser() " " simple-counter(nn-) " "; 
+}
+
+sect3 > title:first-child:before { 
+    content: collapser() " " simple-counter(nnn-) " "; 
+}
+
+sect4 > title:first-child:before { 
+    content: collapser() " " simple-counter(nnnn-) " "; 
+}
+
+section > title:first-child:before { 
+    content: collapser() " " simple-counter(n-) " "; 
+}
+
+section section > title:first-child:before { 
+    content: collapser() " " simple-counter(nn-) " "; 
+}
+
+section section section > title:first-child:before { 
+    content: collapser() " " simple-counter(nnn-) " "; 
+}
+
+section section section section > title:first-child:before { 
+    content: collapser() " " simple-counter(nnnn-) " "; 
+}
+
+section section section * section > title:first-child:before { 
+    content: ""; 
+}
+      
+appendix > title:first-child:before { 
+    content: collapser() " Appendix " simple-counter(n-, upper-alpha) ": "; 
+}
+
+appendixinfo:first-child,
+articleinfo:first-child,
+bookinfo:first-child,
+chapterinfo:first-child,
+partinfo:first-child,
+prefaceinfo:first-child,
+referenceinfo:first-child,
+sect1info:first-child,
+sect2info:first-child,
+sect3info:first-child,
+sect4info:first-child,
+sectioninfo:first-child,
+setinfo:first-child {
+    margin-left: 20px;
+}
+
+appendixinfo:first-child:before,
+articleinfo:first-child:before,
+bookinfo:first-child:before,
+chapterinfo:first-child:before,
+partinfo:first-child:before,
+prefaceinfo:first-child:before,
+referenceinfo:first-child:before,
+sect1info:first-child:before,
+sect2info:first-child:before,
+sect3info:first-child:before,
+sect4info:first-child:before,
+sectioninfo:first-child:before,
+setinfo:first-child:before {
+    content: collapser();
+    display: marker;
+}

doc/editor_configs/xmlmind/addon/config/scons/css/docbook1.imp

+/*
+ * Copyright (c) 2003-2010 Pixware. 
+ *
+ * This file is part of the XMLmind XML Editor project.
+ * For conditions of distribution and use, see the accompanying legal.txt file.
+ *
+ * Styles for elements other than those found in Simplified DocBook.
+ */
+
+/* =====================================
+   Book structure
+===================================== */
+
+set {
+    display: block;
+}
+         
+set > title { 
+    font-size: 2.5em; 
+    margin: 0.25ex 0;
+    border-width: 4px;
+    border-style: solid;
+    border-color: transparent transparent #004080 transparent;
+}
+
+book {
+    display: block;
+}
+
+book > title { 
+    font-size: 2.5em; 
+    margin: 0.25ex 0;
+    border-width: 3px;
+    border-style: solid;
+    border-color: transparent transparent #004080 transparent;
+}
+
+dedication,
+colophon {
+    display: block;
+    /* content of dedication has a margin */
+}
+
+part,
+reference {
+    display: block;
+}
+        
+part > title,
+reference > title { 
+    font-size: 2em; 
+    margin: 0.5ex 0;
+    border-width: 2px;
+    border-style: solid;
+    border-color: transparent transparent #004080 transparent;
+}
+
+part > title:before { 
+    content: "Part " simple-counter(n-, upper-roman) ": "; 
+}
+
+partintro {
+    display: block;
+    /* content of partintro has a margin */
+}       
+
+chapter,
+preface {
+    display: block;
+}       
+
+chapter > title,
+preface > title { 
+    font-size: 2em; 
+    margin: 0.5ex 0;
+    border-width: 1px;
+    border-style: solid;
+    border-color: transparent transparent #004080 transparent;
+}
+
+chapter > title:before { 
+    content: "Chapter " simple-counter(n-, decimal) ": "; 
+}
+
+/* -------------------------------------
+   TOC
+------------------------------------- */
+
+toc {
+    display: block;
+    /* content of toc has a margin */
+}
+        
+tocchap,
+tocpart {
+    display: block;
+    margin: 1.33ex 0;
+}
+
+tocfront,
+tocback,
+tocentry {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+
+toclevel1,
+toclevel2,
+toclevel3,
+toclevel4,
+toclevel5 {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+
+toclevel2,
+toclevel3,
+toclevel4,
+toclevel5 {
+    margin-left: 4ex;
+}
+
+/* -------------------------------------
+   LOT
+------------------------------------- */
+
+lot {
+    display: block;
+    /* content of lot has a margin */
+}
+         
+lotentry {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+         
+/* -------------------------------------
+   Glossary
+------------------------------------- */
+
+glossary,
+glossdiv {
+    display: block;
+    /* content of glossary has a margin */
+}
+     
+glosslist {
+    display: block;
+    margin-left: 2ex; 
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+
+glossentry {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+
+glossterm {
+    display: inline;
+    font-style: italic;
+}
+
+glossentry > acronym,
+glossentry > abbrev,
+glossentry > indexterm,
+glossentry > revhistory {
+    display: block;
+    margin-left: 4ex; 
+    margin-top: 0;
+    margin-bottom: 1.33ex;
+}
+
+glossdef,
+glosssee {
+    display: block;
+    margin-left: 4ex; 
+    margin-bottom: 1.33ex;
+}
+
+glossdef > *:first-child {
+    margin-top: 0;
+    margin-bottom: 0;
+}
+
+glossseealso {
+    display: block;
+    margin: 1.33ex 0;
+}
+
+glosssee:before,
+glossseealso:before {
+    display: inline;
+    font-size: small;
+    color: #004080;
+}
+
+glosssee:before {
+    content: "See ";
+}
+
+glossseealso:before {
+    content: "See also ";
+}
+
+/* -------------------------------------
+   Index
+------------------------------------- */
+
+index,
+setindex,
+indexdiv {
+    display: block;
+    /* content of index has a margin */
+}
+    
+indexentry {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+
+primaryie,
+secondaryie,
+tertiaryie,
+seeie,
+seealsoie {
+    display: block;
+    /* no vertical margins to make it more compact */
+}
+
+secondaryie {
+    margin-left: 2ex;
+}
+
+tertiaryie {
+    margin-left: 4ex;
+}
+
+seeie,
+seealsoie {
+    margin-left: 6ex;
+}
+
+seeie:before,
+seealsoie:before {
+    display: inline;
+    font-size: small;
+    color: #004080;
+}
+
+seeie:before {
+    content: "See ";
+}
+
+seealsoie:before {
+    content: "See also ";
+}
+
+/* =====================================
+   Paragraphs
+===================================== */
+
+ackno {
+    display: block;
+    margin: 1.33ex 0; 
+}
+
+address {
+    display: block;
+    white-space: pre;
+    margin: 1.33ex 0; 
+}
+
+street,
+pob,
+postcode,
+city,
+state,
+country,
+phone,
+fax,
+otheraddr {
+    display: inline;
+}
+
+formalpara {
+    display: block;
+    /* content of formalpara has a margin */
+}
+
+/* =====================================
+   Lists
+===================================== */
+
+procedure {
+    display: block;
+    margin-left: 2ex; /* all lists are slightly indented */
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+
+stepalternatives,
+substeps {
+    display: block;
+}
+
+stepalternatives > *:first-child,
+substeps > *:first-child {
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+step {
+    display: block;
+    margin-left: 6ex;
+}
+
+step > *:first-child {
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+step:before {
+    display: marker;
+    content: simple-counter(n, decimal) "."; 
+    font-weight: bold; 
+    color: #004080;
+}
+
+step step:before {
+    content: simple-counter(n, lower-alpha) "."; 
+}
+step step step:before {
+    content: simple-counter(n, decimal) "."; 
+}
+step step step step:before {
+    content: simple-counter(n, lower-alpha) "."; 
+}
+step step step step step:before {
+    content: simple-counter(n, decimal) "."; 
+}
+
+segmentedlist {
+    display: block;
+    margin-left: 2ex; 
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+
+segmentedlist > title {
+    margin-top: 0;
+}
+
+segtitle {
+    display: inline;
+    font-weight: bold; 
+    color: #004080;
+}
+
+seglistitem {
+    display: block;
+    margin: 1.33ex 0;
+}
+
+seg {
+    display: inline;
+}
+
+segtitle:before,
+seg:before {
+    content: " ";
+}
+
+segtitle:first-child:before,
+title + segtitle:before,
+seg:first-child:before {
+    content: "";
+}
+
+simplelist { /* also works for type=vert */
+    display: block;
+    margin-left: 2ex; 
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+
+member {
+    display: block;
+}
+
+simplelist[type=inline] > member,
+simplelist[type=horiz] > member {
+    display: inline;
+}
+
+simplelist[type=inline] > member:before {
+    content: ", ";
+    color: gray;
+}
+
+simplelist[type=horiz] > member:before {
+    content: " ";
+}
+
+simplelist[type=inline] > member:first-child:before,
+simplelist[type=horiz] > member:first-child:before {
+    content: "";
+}
+
+/* =====================================
+   Figures
+===================================== */
+
+graphic {
+    display: block;
+    margin: 1.33ex auto;
+}
+
+inlinegraphic {
+    display: inline;
+}
+
+/* 
+ * Replaced content of graphic and inlinegraphic 
+ * is defined in image.imp.
+ */
+
+equation,
+informalequation {
+    display: block;
+    margin: 1.33ex auto; 
+}
+
+equation > title {
+    font-style: italic;
+    font-weight: normal;
+    text-align: center;
+    margin: 0; /* content of equation generally already has a margin */
+}
+
+mathphrase,
+alt {
+    display: block;
+    text-align: center;
+    margin: 1.33ex 0;
+}
+
+mathphrase {
+    font-style: italic;
+}
+
+alt {
+    font-size: small;
+    background-color: #EEEEFF;
+}
+
+inlineequation {
+    display: inline;
+}
+
+inlineequation > mathphrase,
+inlineequation > alt,
+inlineequation > graphic { /* inlineequation > graphic is a DTD bug */
+    display: inline;
+}
+
+screenshot {    
+    display: block;
+    /* content of screenshot has a margin */
+}
+
+screeninfo {
+    display: block;
+    margin: 1.33ex 0; 
+    font-size: small;
+    background-color: #EEEEFF;
+    text-align: center;
+}
+
+/* -------------------------------------
+   Callouts
+------------------------------------- */
+
+mediaobjectco {
+    display: block;
+    /* content of mediaobjectco has a margin */
+}
+
+graphicco,
+imageobjectco, 
+programlistingco, 
+screenco {
+    display: block;
+    /* content of graphicco has a margin */
+}
+
+areaspec,
+areaset,
+area {
+    display: tree;
+}
+
+co {
+    display: inline;
+    content: icon(left-half-disc) simple-counter(n) icon(right-half-disc); 
+    color: #004080; 
+}
+         
+coref {
+    display: inline;
+    content: icon(left-half-disc) attr(linkend) icon(right-half-disc); 
+    color: #004080; 
+}
+         
+calloutlist {
+    display: block;
+    margin-left: 2ex;
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+   
+callout {
+    display: block;
+    margin-left: 6ex;
+    margin-top: 1.33ex; 
+    margin-bottom: 1.33ex; 
+}
+       
+callout > *:first-child {
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+calloutlist > callout:before {
+    display: marker; 
+    content: icon(left-half-disc) simple-counter(n) icon(right-half-disc); 
+    color: #004080; 
+}
+
+/* =====================================
+   Divisions
+===================================== */
+
+highlights {
+    display: block;
+    margin-bottom: 1.33ex;
+    background-color: #F8E0F8; 
+    border: thin solid #F880F8;
+    padding: 2px;
+}
+
+highlights:before {
+    display: block;
+    content: element-label();
+    font-weight: bold;
+    color: #E840E8;
+    margin-top: 1.33ex;
+}
+
+/* =====================================
+   Special sections
+===================================== */
+
+/* -------------------------------------
+   Task
+------------------------------------- */
+
+task {
+    display: block;
+    /* content of task has a margin */
+}
+
+tasksummary,
+taskprerequisites,
+taskrelated,
+task > procedure {
+    display: block;
+    margin-left: 2ex; 
+    /* content of taskxxx has a margin */
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+/* -------------------------------------
+   Question-and-answer set
+------------------------------------- */
+
+qandaset,
+qandadiv {
+    display: block;
+    /* content of qandaset has a margin */
+}
+
+qandaentry {
+    display: block;
+    margin: 1.33ex 0; 
+}
+
+question,
+answer {
+    display: block;
+    margin-left: 4ex;
+    /* content of question has a margin */
+}
+
+question > *:first-child,
+answer > *:first-child {
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+question:before,
+answer:before {
+    display: marker;
+    color: #004080;
+    font-weight: bold;
+}
+
+question:before {
+    content: "Q:";
+}
+
+answer:before {
+    content: "A:";
+}
+
+label {
+    display: block;
+    margin: 1.33ex 0; 
+    color: #004080;
+    font-weight: bold;
+}
+
+/* -------------------------------------
+   Set of messages
+------------------------------------- */
+
+msgset {
+    display: block;
+    /* content of msgset has a margin */
+}
+
+msgentry,
+simplemsgentry {
+    display: block;
+    margin: 1.33ex 0;
+    border: thin solid gray;
+    padding: 2px;
+}
+
+msg,
+msgmain,
+msgsub,
+msgrel,
+msgtext,
+msgexplan,
+msginfo {
+    display: block;
+    margin-left: 10ex;
+    /* content of msg has a margin */
+}
+
+msg > *:first-child,
+msgmain > *:first-child,
+msgsub > *:first-child,
+msgrel > *:first-child,
+msgtext > *:first-child,
+msgexplan > *:first-child,
+msginfo > *:first-child {
+    margin-top: 0; 
+    margin-bottom: 0; 
+}
+
+msg:before,
+msgmain:before,
+msgsub:before,
+msgrel:before,
+simplemsgentry > msgtext:before,
+msgexplan:before,
+msginfo:before {
+    display: marker; 
+    content: element-label();
+    font-size: small;
+    color: #004080;
+}
+
+msglevel,
+msgorig,
+msgaud {
+    display: inline;
+}
+
+msglevel:before,
+msgorig:before,
+msgaud:before {
+    content: icon(left-half-disc) element-local-name() " ";
+    font-size: small;
+    color: gray;
+}
+
+msglevel:after,
+msgorig:after,
+msgaud:after {
+    content: icon(right-half-disc);
+    color: gray;
+}
+
+/* -------------------------------------
+   Bibliography
+   (complements docbook2.imp)
+------------------------------------- */
+
+bibliocoverage,
+bibliorelation,
+bibliosource {
+   display: inline;
+}
+
+biblioid,
+isbn,
+issn,
+pubsnumber {
+   display: inline;
+}
+
+citebiblioid {
+   display: inline;
+}
+
+biblioref {
+    content: attr(linkend) icon(right-link);
+    vertical-align: text-top; /* for the icon */
+    color: navy;
+}
+        
+/* -------------------------------------
+   Meta-information
+   (complements docbook2.imp)
+------------------------------------- */
+
+artpagenums,
+pagenums,
+seriesvolnums,
+invpartnumber {
+   display: inline;
+}
+
+itermset {
+    /* Could be block but inline is safer when used in strange places
+       and when used in meta-info, display is forced to be block. */
+   display: inline;
+}
+
+collab {
+    display: block; /* can contain affiliation */
+    margin: 1.33ex 0;
+}
+
+collabname {
+    display: inline;
+}
+
+confgroup {
+    display: block; /* can contain address */
+    margin: 1.33ex 0;
+}
+
+confdates,
+conftitle,
+confnum,
+confsponsor {
+    display: inline;
+}
+
+confdates:after,
+conftitle:after,
+confnum:after,
+confsponsor:after {
+    content: " ";
+}
+
+contractnum,
+contractsponsor {
+    display: inline;
+}
+
+publisher {
+    display: block; /* can contain address */
+    margin: 1.33ex 0;
+}
+
+printhistory {    
+    display: block;
+    /* content of printhistory has a margin */
+}
+
+/* =====================================
+   Other elements
+===================================== */
+
+bridgehead {
+    display: block;
+    font-weight: bold; 
+    color: #004080;
+    margin: 1.33ex 0;
+}
+
+bridgehead[renderas=sect1] {
+    font-size: 1.5em; 
+    margin: .83ex 0; 
+}
+
+bridgehead[renderas=sect2] {
+    font-size: 1.3em; 
+    margin: 1ex 0; 
+}
+
+/* ---------------------------------------------------------------------------
+   Inlined elements other than those belonging to modules
+
+   Note that default display is inline, so there is no need to specify it.
+--------------------------------------------------------------------------- */
+
+/* -------------------------------------
+   Technical
+------------------------------------- */
+
+keycombo {
+    display: inline;
+}
+
+keycombo > *:before {
+    content: icon(plus);
+    color: gray;
+}
+
+keycombo[action] > *:before {
+    content: " ";
+}
+
+keycombo[action=simul] > *:before {
+    content: icon(plus);
+}
+
+keycombo > *:first-child:before {
+    content: "";
+}
+
+keycap,
+keysym,
+mousebutton {
+    font-weight: bold;
+}
+
+keycode {
+    font-family: monospace;
+}
+
+menuchoice {
+    display: inline;
+}
+
+menuchoice > *:before {
+    content: icon(pop-right);
+    color: gray;
+}
+
+menuchoice > *:first-child:before,
+menuchoice > shortcut + *:before {
+    content: "";
+}
+
+shortcut {
+    display: inline;
+}
+
+/* shortcut:before should be enough but this selector makes this rule more
+   specific than the above one */
+
+menuchoice > shortcut:first-child:before { 
+    content: "(";
+    color: gray;
+}
+
+shortcut:after {
+    content: ") ";
+    color: gray;
+}
+
+shortcut > *:before {
+    content: " ";
+}
+
+shortcut > *:first-child:before {
+    content: "";
+}
+
+guimenu,
+guisubmenu,
+guimenuitem,
+guibutton,
+guilabel,
+guiicon,
+accel,
+interface {
+    font-weight: bold;
+}
+
+accel {
+    text-decoration: underline;
+}
+
+action {
+    display: inline;
+}
+
+application,
+hardware,
+database,
+productnumber {
+    display: inline;
+}
+
+medialabel {
+    font-weight: bold;
+}
+
+package,
+uri,
+code,
+constant,
+envar,
+markup,
+prompt,
+property,
+sgmltag,
+token,
+type,
+function,
+parameter,
+varname,
+returnvalue,
+errorcode,
+errorname,
+errortext,
+errortype,
+exceptionname,
+classname,
+methodname,
+interfacename,
+structfield,
+structname,
+symbol {
+    font-family: monospace;
+}
+
+optional {
+    display: inline;
+}
+synopsis > optional:before {
+    content: "[";
+    color: gray;
+}
+synopsis > optional:after {
+    content: "]";
+    color: gray;
+}
+
+sgmltag:before,
+sgmltag:after {
+    color: gray;
+}
+
+sgmltag[class=attvalue]:before {
+    content: '"';
+}
+sgmltag[class=attvalue]:after {
+    content: '"';
+}
+
+sgmltag[class=starttag]:before,
+sgmltag[class=emptytag]:before {
+    content: "<";
+}
+sgmltag[class=endtag]:before {
+    content: "</";
+}
+sgmltag[class=endtag]:after,
+sgmltag[class=starttag]:after {
+    content: ">";
+}
+sgmltag[class=emptytag]:after {
+    content: "/>";
+}
+
+sgmltag[class=pi]:before,
+sgmltag[class=xmlpi]:before {
+    content: "<?";
+}
+sgmltag[class=pi]:after,
+sgmltag[class=xmlpi]:after {
+    content: "?>";
+}
+
+sgmltag[class=sgmlcomment]:before {
+    content: "<!--";
+}
+sgmltag[class=sgmlcomment]:after {