xsl/gemini.xsl: add news excerpts, make whitespace more consistent
This commit is contained in:
parent
d272167229
commit
b8e3cf5560
|
@ -6,7 +6,7 @@
|
|||
xmlns:crypto="http://exslt.org/crypto">
|
||||
|
||||
<output method="text" encoding="utf-8"/>
|
||||
<strip-space elements="page item image event div p ul ol li blockquote"/>
|
||||
<strip-space elements="page item addendum image event div p ul ol li blockquote"/>
|
||||
<include href="date.xsl"/>
|
||||
|
||||
<template match="/page">
|
||||
|
@ -53,7 +53,7 @@
|
|||
|
||||
|
||||
<if test="/page/portal">
|
||||
<text>## Navigation </text>
|
||||
<text>## Navigation </text>
|
||||
<for-each select="document('../content/navigation.xml')/navigation/group">
|
||||
<for-each select="file">
|
||||
<text>=> </text>
|
||||
|
@ -110,6 +110,8 @@
|
|||
<value-of select="@author"/>
|
||||
<text> </text>
|
||||
|
||||
<apply-templates select="*[name() = 'p' or name() = 'blockquote' or name() = 'ul' or name() = 'ol']"/>
|
||||
|
||||
<text>=> </text>
|
||||
<value-of select="substring-before(substring-after($newsfile, 'content/'), '.xml')"/>
|
||||
<text>.gmi News lesen </text>
|
||||
|
@ -117,7 +119,7 @@
|
|||
</if>
|
||||
</for-each>
|
||||
|
||||
<text> </text>
|
||||
<text> # Ressourcen </text>
|
||||
<text>=> news-atom.xml ATOM </text>
|
||||
<text>=> news-rss.xml RSS </text>
|
||||
<text>=> news-archiv.gmi Archiv </text>
|
||||
|
@ -265,6 +267,10 @@
|
|||
<text>) </text>
|
||||
</template>
|
||||
|
||||
<template match="event">
|
||||
<text> </text>
|
||||
</template>
|
||||
|
||||
<template match="event/start">
|
||||
<text>* Beginn: </text>
|
||||
<call-template name="get-datestring">
|
||||
|
@ -322,7 +328,6 @@
|
|||
</template>
|
||||
|
||||
<template match="p">
|
||||
<text> </text>
|
||||
<if test="@title">
|
||||
<text>## </text>
|
||||
<value-of select="@title"/>
|
||||
|
@ -348,10 +353,10 @@
|
|||
<param name="text"/>
|
||||
|
||||
<choose>
|
||||
<when test="contains($text, ' ')">
|
||||
<value-of select="substring-before($text, ' ')"/>
|
||||
<when test="contains($text, ' ')">
|
||||
<value-of select="substring-before($text, ' ')"/>
|
||||
<call-template name="normalize-paragraph">
|
||||
<with-param name="text" select="substring-after($text, ' ')"/>
|
||||
<with-param name="text" select="substring-after($text, ' ')"/>
|
||||
</call-template>
|
||||
</when>
|
||||
<otherwise>
|
||||
|
|
Loading…
Reference in New Issue