mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 19:02:18 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user