xsl/gemini.xsl: handle <link> with implicit @href
c3d2-web deployed Details
c3d2-gemini deployed Details

This commit is contained in:
Astro 2022-03-08 18:27:47 +01:00
parent 5f8400b5aa
commit ad5054c39d
1 changed files with 12 additions and 2 deletions

View File

@ -298,7 +298,12 @@
<template match="li[string(.) = string(link)]">
<text>=> </text>
<call-template name="make-href">
<with-param name="href" select="link/@href"/>
<with-param name="href">
<choose>
<when test="link/@href"><value-of select="link/@href"/></when>
<otherwise><value-of select="."/></otherwise>
</choose>
</with-param>
</call-template>
<text> </text>
<call-template name="normalize-paragraph">
@ -357,7 +362,12 @@
<for-each select=".//link">
<text>=> </text>
<call-template name="make-href">
<with-param name="href" select="@href"/>
<with-param name="href">
<choose>
<when test="@href"><value-of select="@href"/></when>
<otherwise><value-of select="."/></otherwise>
</choose>
</with-param>
</call-template>
<text> </text>
<choose>