comparison ascii.xsl @ 34:93fd0d532754

fix bug in refs wrt e.g. [1]!.SGX, adapt html and ascii to new-format refs, move a2n and n2a into separate files for re-use
author Henry S. Thompson <ht@markup.co.uk>
date Wed, 12 Apr 2017 21:35:04 +0100
parents e767bef35bb9
children 5b2333e59d91
comparison
equal deleted inserted replaced
33:27bffc66ce10 34:93fd0d532754
15 <xsl:apply-templates/> 15 <xsl:apply-templates/>
16 <xsl:text>&#10;</xsl:text> 16 <xsl:text>&#10;</xsl:text>
17 </xsl:template> 17 </xsl:template>
18 18
19 <xsl:template match="e:c"> 19 <xsl:template match="e:c">
20 <xsl:value-of select="if (text()) 20 <xsl:value-of select="if (e:t)
21 then 21 then
22 let $v := if (e:t/@c) then e:t/@c else e:t return
22 if (@f) 23 if (@f)
23 then translate(.,'cdens','CDENS') 24 then translate($v,'cdens','CDENS')
24 else . 25 else $v
25 else ' '"/> 26 else ' '"/>
26 </xsl:template> 27 </xsl:template>
27 </xsl:stylesheet> 28 </xsl:stylesheet>