を使用してXSLT 1.0
。
<xsl:for-each select="*">
<xsl:variable name="xxxx" select="@name" />
<xsl:if test="../../../../fieldMap/field[@name=$xxxx]">...
<xsl:if test="position() != last()">////this is not work correctly as last() number is actual last value of for loop and position() is based on if condition.
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:if>
</xsl:for-each>
,
ここで最後の「」を削除する方法を教えてください。