
438 Patterns: SOA Foundation Service Connectivity Scenario
7. Replace the XSL that reads:
<xsl:apply-templates select=”shippingAddress”/>
with:
<xsl:apply-templates select=”shippingAddress[1]”/>
And replace the XSL that reads:
<xsl:template match=”shippingAddress”>
with:
<xsl:template match=”shippingAddress[1]”>
Save and close the XSL file.
Example 9-4 shows the relevant listing for XSLAddress1.
Example 9-4 XSL for XSLAddress1
</xsl:template>
<!-- Composed element template -->
<xsl:template match="customer">
<inputSendShippingInfo>
<accountNo>
<xsl:value-of select="accountNo/text()"/>
</accountNo>
<xsl:apply-templates select="shippingAddress[1]"/>
</inputSendShippingInfo> ...