--- a/RelaxNG/Examples/Documents/torture_test.xml lun. juil. 30 23:23:57 2012 +0200
+++ b/RelaxNG/Examples/Documents/torture_test.xml jeu. août 02 17:16:36 2012 +0200
@@ -4,6 +4,7 @@
<document id="torture_test" xml:lang="fr">
<head>
<title>Torture test</title>
+ <shorttitle>Test</shorttitle>
<subtitle>Test des capacités de <name>publidoc</name></subtitle>
<identifier type="ean">9781449328030</identifier>
<identifier type="uri">http://www.prismallia.fr/Xml/torture_test</identifier>
--- a/RelaxNG/publidoc.rnc lun. juil. 30 23:23:57 2012 +0200
+++ b/RelaxNG/publidoc.rnc jeu. août 02 17:16:36 2012 +0200
@@ -26,7 +26,7 @@
top.head = element head { top.head.content }
top.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
& identifier*
& copyright?
& contributors?
@@ -87,7 +87,7 @@
division.head = element head { division.head.content }
division.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
& abstract?
& annotation*
@@ -101,7 +101,7 @@
component.head = element head { component.head.content }
component.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
& contributors?
& abstract?
& annotation*
@@ -143,7 +143,7 @@
section.head = element head { section.head.content }
section.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
& abstract?
& audio*
& annotation*
@@ -162,7 +162,7 @@
block.head = element head { block.head.content }
block.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ p ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -383,9 +383,10 @@
# HEAD LEVEL
# =============================================================================
-# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+# ~~~~~~~~~~~~~~~~~~~~~~~ title, shorttitle, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~
title = element title { title.content }
+shorttitle = element shorttitle { title.content }
subtitle = element subtitle { title.content }
title.content = inlines
--- a/RelaxNG/publiquiz.rnc lun. juil. 30 23:23:57 2012 +0200
+++ b/RelaxNG/publiquiz.rnc jeu. août 02 17:16:36 2012 +0200
@@ -185,6 +185,7 @@
category.head.content =
title,
+ shorttitle?,
subtitle?
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ production ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- a/RelaxNG/publiset.rnc lun. juil. 30 23:23:57 2012 +0200
+++ b/RelaxNG/publiset.rnc jeu. août 02 17:16:36 2012 +0200
@@ -53,7 +53,7 @@
remap.attributes
composition.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
& identifier*
& copyright?
& contributors?
@@ -118,7 +118,7 @@
division.head = element head { division.head.content }
division.head.content =
- (title, subtitle?)?
+ (title, shorttitle?, subtitle?)?
# =============================================================================
@@ -161,6 +161,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ title, subtitle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
title = element title { title.content }
+shorttitle = element shorttitle { title.content }
subtitle = element subtitle { title.content }
title.content = inlines
--- a/Xxe/Css/publidoc.css lun. juil. 30 23:23:57 2012 +0200
+++ b/Xxe/Css/publidoc.css jeu. août 02 17:16:36 2012 +0200
@@ -30,6 +30,7 @@
content: element-label() " :";
}
head > title:before { display: none; }
+head > shorttitle:before { display: none; }
head > subtitle:before { display: none; }
head > identifier[type="uri"]:before { content: insert-before-button() " URI :"; }
head > identifier[type="ean"]:before { content: insert-before-button() " EAN :"; }
@@ -55,14 +56,18 @@
content: " " insert-after-button();
}
-/* title & subtitle ~~~~~~~~~~~~~~~~ */
+/* title, shortitle & subtitle ~~~~~ */
+
+head > title, head > shorttitle {
+ font-weight: bold;
+ font-size: 120%;
+ margin: 0 0 .2em 0;
+}
head > title {
- font-size: 120%;
- font-weight: bold;
color: #004080;
- margin: 0 0 .2em 0;
}
+
head > subtitle {
font-weight: bold;
color: #004080;