을 사용하여 XSLT 1.0
을 사용하십시오.XSLT에서 마지막 쉼표를 제거하십시오
<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>
여기에 마지막으로 ',
'을 어떻게 제거 할 수 있습니까?
샘플 입력 및 출력 데이터를 제공 할 수 있습니까? 나는 "위치 (if)는 if 조건에 기반하고있다"라고 생각하지 않는다. 아니면 그게 무슨 뜻인지 이해하지 못할 수도 있습니다. – LarsH