Début de la configuration Xxe
authorPatrick PIERRE <patrick.pierre@prismallia.fr>
mar., 20 déc. 2011 19:20:03 +0100
changeset 59 49750b96058f
parent 58 c099d1e7e57e
child 60 14211f9b064a
Début de la configuration Xxe
Xml/Documents/torture_test.xml
Xxe/publidoc.css
Xxe/publidoc.xxe
Xxe/publidoc.xxe_addon
Xxe/publidoc_document.xml
Xxe/publidoc_topic.xml
--- a/Xml/Documents/torture_test.xml	ven. déc. 02 16:37:54 2011 +0100
+++ b/Xml/Documents/torture_test.xml	mar. déc. 20 19:20:03 2011 +0100
@@ -147,6 +147,12 @@
               <p>Ce serait de là que naquit l'expression « casser sa pipe ».
             </p>
           </section>
+          <section>
+            <head>
+              <title>Moyen mnémotechnique</title>
+            </head>
+            <p>Mercredi, viens-tu manger avec Jean sur une nappe propre ?</p>
+          </section>
         </topic>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <topic>
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/Xxe/publidoc.css	mar. déc. 20 19:20:03 2011 +0100
@@ -0,0 +1,56 @@
+/* $Id$ */
+
+publidoc:before {
+  display: block;
+  background-color: #993333;
+  padding: 3ex 1ex 3ex 1ex;
+  color: silver;
+  font-family: sans-serif;
+  font-size: 100%;
+  font-weight: bold;
+  content: " id = " text-field(attribute, id, columns, 10, color, white, font-size, 120%)
+           "  " icon(diamond) "  type = " label(attribute, type, color, white, font-size, 120%)
+           set-attribute-button(attribute, type, icon, icon(pop-sw))
+           "  " icon(diamond) "  media = " label(attribute, media, color, white, font-size, 120%)
+           set-attribute-button(attribute, media, icon, icon(pop-sw))
+           "  " icon(diamond) "  lang = " label(attribute, "xml:lang", color, white, font-size, 120%)
+           set-attribute-button(attribute, "xml:lang", icon, icon(pop-sw));
+}
+
+publidoc {
+  color: black;
+  background-color: white;
+  font-family: sans-serif;
+  font-size: 120%;
+}
+
+/* ======= Head level ======= */
+
+/* head { */
+/*   display: block; */
+/* } */
+
+/* ====== Section level ===== */
+
+section:before {
+  display: block;
+  margin: 2ex 10px 0 1ex;
+  background-color: silver;
+  color: gray;
+  font-family: sans-serif;
+  font-weight: bold;
+  content: row(cell(content(" " insert-before-button() collapser()), width, 90%),
+               cell(content(insert-after-button() " "), width, 10%, text-align, right));
+}
+
+section {
+  display: block;
+  collapsible: yes;
+  collapsed: no;
+}
+
+/* ======= Block level ====== */
+
+p {
+  display: block;
+}
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/Xxe/publidoc.xxe	mar. déc. 20 19:20:03 2011 +0100
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<configuration name="Publidoc"
+               xmlns="http://www.xmlmind.com/xmleditor/schema/configuration"
+               xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration">
+  
+  <detect>
+    <rootElementLocalName>publidoc</rootElementLocalName>x
+  </detect>
+
+  <relaxng compactSyntax="true" encoding="UTF-8"
+           location="../RelaxNG/publidoc.rnc"/>
+
+  <css location="publidoc.css" name="Style sheet"/>
+
+  <template location="publidoc_topic.xml" name="Topic"/>
+  <template location="publidoc_document.xml" name="Document"/>
+</configuration>
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/Xxe/publidoc.xxe_addon	mar. déc. 20 19:20:03 2011 +0100
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id$ -->
+<a:addon xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:html="http://www.w3.org/1999/xhtml"
+         xmlns:a="http://www.xmlmind.com/xmleditor/schema/addon">
+  <a:category>
+    <a:configuration />
+  </a:category>
+
+  <a:name>Publidoc configuration</a:name>
+
+  <a:version>1.0</a:version>
+
+  <a:author><a href="http://www.prismallia.fr">Prismallia</a></a:author>
+
+  <a:xxeVersion>5.0.0+</a:xxeVersion>
+
+</a:addon>
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/Xxe/publidoc_document.xml	mar. déc. 20 19:20:03 2011 +0100
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<publidoc version="1.0">
+  <document xml:id="xxx" >
+    <head>
+      <title></title>
+    </head>
+    <topic>
+      <head>
+        <title></title>
+      </head>
+      <section>
+        <p></p>
+      </section>
+    </topic>
+  </document>
+</publidoc>
\ No newline at end of file
--- /dev/null	jeu. janv. 01 00:00:00 1970 +0000
+++ b/Xxe/publidoc_topic.xml	mar. déc. 20 19:20:03 2011 +0100
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<publidoc version="1.0">
+  <topic xml:id="xxx">
+    <head>
+      <title></title>
+    </head>
+    <section>
+      <p></p>
+    </section>
+  </topic>
+</publidoc>