summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2011-08-21 10:33:27 +0100
committerdakkar <dakkar@thenautilus.net>2011-08-21 10:33:27 +0100
commitb1c20c836b6a99edcfae04c65277f25d4c90de48 (patch)
treef3ce08efdf7b49d9fd11b890e0d4c7c35746df40
parentanime day aug 20 (diff)
downloadthenautilus-b1c20c836b6a99edcfae04c65277f25d4c90de48.tar.gz
thenautilus-b1c20c836b6a99edcfae04c65277f25d4c90de48.tar.bz2
thenautilus-b1c20c836b6a99edcfae04c65277f25d4c90de48.zip
fix complex list html-ization
-rw-r--r--templates/du2html.xsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/du2html.xsl b/templates/du2html.xsl
index fe11d0a..38c2e8c 100644
--- a/templates/du2html.xsl
+++ b/templates/du2html.xsl
@@ -145,6 +145,14 @@
<x:value-of select="$const-tr[@t=$n and @l=$language]"/>
</x:template>
+ <x:template match="list_item/paragraph">
+ <p><x:apply-templates/></p>
+ </x:template>
+
+ <x:template match="list_item[count(paragraph)=1]/paragraph">
+ <x:apply-templates/>
+ </x:template>
+
<!-- i feed al momento mandano in segfault libxslt
<x:template match="field[field_name='feed']">
<x:variable name="url" select="normalize-space(string(field_body))"/>