xsl/gemini.xsl: add support for <blockquote/>, <event/>
This commit is contained in:
parent
61afd7cc3d
commit
3575324a93
|
@ -6,7 +6,7 @@
|
|||
xmlns:crypto="http://exslt.org/crypto">
|
||||
|
||||
<output method="text" encoding="utf-8"/>
|
||||
<strip-space elements="page item div p ul ol li blockquote"/>
|
||||
<strip-space elements="page item image event div p ul ol li blockquote"/>
|
||||
<include href="date.xsl"/>
|
||||
|
||||
<template match="/page">
|
||||
|
@ -251,6 +251,30 @@
|
|||
<text>) </text>
|
||||
</template>
|
||||
|
||||
<template match="event/start">
|
||||
<text>* Beginn: </text>
|
||||
<call-template name="get-datestring">
|
||||
<with-param name="date" select="."/>
|
||||
</call-template>
|
||||
<text> </text>
|
||||
</template>
|
||||
|
||||
<template match="event/end">
|
||||
<text>* Ende: </text>
|
||||
<call-template name="get-datestring">
|
||||
<with-param name="date" select="."/>
|
||||
</call-template>
|
||||
<text> </text>
|
||||
</template>
|
||||
|
||||
<template match="event/location">
|
||||
<text>* Ort: </text>
|
||||
<call-template name="normalize-paragraph">
|
||||
<with-param name="text" select="normalize-space(.)"/>
|
||||
</call-template>
|
||||
<text> </text>
|
||||
</template>
|
||||
|
||||
<template match="image"/>
|
||||
|
||||
<template match="ol">
|
||||
|
@ -287,6 +311,12 @@
|
|||
<text> </text>
|
||||
</template>
|
||||
|
||||
<template match="blockquote">
|
||||
<text>``` </text>
|
||||
<apply-templates/>
|
||||
<text>``` </text>
|
||||
</template>
|
||||
|
||||
<template name="normalize-paragraph">
|
||||
<param name="text"/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue