<financialTransaction>
<notionalChangeSupplementalData>
<agreementDate>2013-04-28</agreementDate>
<effectiveDate>2013-04-30</effectiveDate>
<payment>
<paymentAmount>
<currency currencyScheme="http://www.fpml.org/ext/iso4217">USD</currency>
<amount>100000</amount>
</paymentAmount>
<paymentDate>
<adjustedDate>2004-04-30</adjustedDate>
</paymentDate>
</payment>
<change>
<leg>Far</leg>
<changeInNotionalAmount>
<currency>USD</currency>
<amount>14800000</amount>
</changeInNotionalAmount>
</change>
<change>
<leg>Near</leg>
<changeInNotionalAmount>
<currency>GBP</currency>
<amount>10000000</amount>
</changeInNotionalAmount>
</change>
<outstanding>
<leg>Far</leg>
<outstandingNotionalAmount>
<currency>USD</currency>
<amount>0</amount>
</outstandingNotionalAmount>
</outstanding>
<outstanding>
<leg>Near</leg>
<outstandingNotionalAmount>
<currency>GBP</currency>
<amount>0</amount>
</outstandingNotionalAmount>
</outstanding>
</notionalChangeSupplementalData>
</financialTransaction>
方法一: 在 XSL 里添加,
<change>
<xsl:for-each select="//notionalChangeSupplementalData/change">
<xsl:if test="leg='Near'">
<xsl:apply-templates select="changeInNotionalAmount"/>
</xsl:if>
</xsl:for-each>
</change>
方法二: 在XSL 里添加,
<outstanding>
<xsl:for-each select="//notionalChangeSupplementalData/outstanding">
<xsl:if test="leg='Near'">
<xsl:apply-templates select="leg/following-sibling::*"/>
</xsl:if>
</xsl:for-each>
</outstanding>
方法二 优于方法一, 它指的是leg 同级别的节点都可以包含时来;而方法一,取特定的节点。