Fix a problem of transtable-lookup when there are identical
words in different word-groups. Spotted by: Rudolf Cejka (cejkar at fit dot vutbr dot cz)
This commit is contained in:
parent
b05c6e03b5
commit
bca17545f1
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=25684
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $FreeBSD: www/share/sgml/transtable-common.xsl,v 1.1 2004/01/12 21:27:00 hrs Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/transtable-common.xsl,v 1.2 2004/12/31 05:35:20 hrs Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
@ -19,8 +19,8 @@
|
|||
<xsl:when test="document($transtable.xml)/transtable/group[@id = $word-group]">
|
||||
<xsl:for-each select="document($transtable.xml)/transtable/group[@id = $word-group]">
|
||||
<xsl:choose>
|
||||
<xsl:when test="key('transtable-lookup-key', string($word))">
|
||||
<xsl:for-each select="key('transtable-lookup-key', string($word))">
|
||||
<xsl:when test="key('transtable-lookup-key', string($word))[../@id = $word-group]">
|
||||
<xsl:for-each select="key('transtable-lookup-key', string($word))[../@id = $word-group]">
|
||||
<xsl:value-of select="tran" />
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
|
|
Loading…
Reference in a new issue