xsl/gemini.xsl: handle <link> with implicit @href
This commit is contained in:
parent
5f8400b5aa
commit
ad5054c39d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue