[gnome-doc-utils/mallard: 34/87] Basic bullet list support
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-doc-utils/mallard: 34/87] Basic bullet list support
- Date: Sun, 19 Apr 2009 12:17:12 -0400 (EDT)
commit bd8bebb4b2528a366d77a38fd866240f9d40dee3
Author: Shaun McCance <shaunm gnome org>
Date: Tue Nov 11 18:04:54 2008 -0600
Basic bullet list support
---
xslt/mallard/html/mal2html-list.xsl | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/xslt/mallard/html/mal2html-list.xsl b/xslt/mallard/html/mal2html-list.xsl
index 23207da..18b5e98 100644
--- a/xslt/mallard/html/mal2html-list.xsl
+++ b/xslt/mallard/html/mal2html-list.xsl
@@ -36,6 +36,12 @@ REMARK: Describe this template
-->
<xsl:template name="mal2html.list.css">
<xsl:text>
+ul.list-bullet {
+ margin: 0; padding: 0;
+}
+ul.list-bullet li {
+ margin-left: 1.44em;
+}
ul.list-tree {
margin: 0; padding: 0;
list-style-type: none;
@@ -58,6 +64,21 @@ ul.list-tree ul.list-tree li {
<!-- == Bullet Lists == -->
+<xsl:template mode="mal2html.block.mode" match="mal:list[ type='bullet']">
+ <div class="list list-bullet">
+ <ul class="list list-bullet">
+ <xsl:apply-templates mode="mal2html.list.bullet.mode"/>
+ </ul>
+ </div>
+</xsl:template>
+
+<xsl:template mode="mal2html.list.bullet.mode" match="mal:item">
+ <li>
+ <xsl:apply-templates mode="mal2html.block.mode"/>
+ </li>
+</xsl:template>
+
+
<!-- == Numbered Lists == -->
<!-- == Definition Lists == -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]