Fix bug in stylesheet for converting Mercury terms to a XUL tree where

Estimated hours taken: 0.5
Branches: main

Fix bug in stylesheet for converting Mercury terms to a XUL tree where
term paths with field names weren't displayed correctly when in a list.

scripts/xul_tree.xsl
	Pass fieldtermpath argument when applying template to elements in a
	list.
This commit is contained in:
Ian MacLarty
2004-12-31 06:11:27 +00:00
parent 3c264f50ec
commit ae0e875333

View File

@@ -135,6 +135,18 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:value-of select="concat($termpath, '/', position())"/>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="fieldtermpath">
<xsl:if test="ancestor::*">
<xsl:choose>
<xsl:when test="@field">
<xsl:value-of select="concat($fieldtermpath, '/', @field)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($fieldtermpath, '/', position())"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:with-param>
</xsl:apply-templates>
</xsl:if>
</xsl:when>