I am trying to select a vacation (use="HV") home address when there are two addresses present. I am only able to get the first address and can not select the address based off the "use". Thank you for any help!
XSLT Version 2.0
<xsl:if test="/n1:ClinicalDocument/n1:documentationOf/n1:serviceEvent/n1:performer/n1:assignedEntity[n1:addr/@use='HV']">
<td width='50%' align='left' valign="top">
<xsl:call-template name="getAddress">
<xsl:with-param name="addr" select="./n1:assignedEntity/n1:addr"/>
</xsl:call-template>
<xsl:call-template name="getTelecom">
<xsl:with-param name="telecom" select="./n1:assignedEntity/n1:telecom"/>
</xsl:call-template>
</td>
</xsl:if>
XML Code
<addr use="HP">
<streetAddressLine>9876 Flagler Drive</streetAddressLine>
<city>Gaithersburg</city>
<state>MD</state>
<postalCode>20878</postalCode>
</addr>
<addr use="HV">
<streetAddressLine>61 Tropica Lane</streetAddressLine>
<city>Key West</city>
<state>FL</state>
<postalCode>33040</postalCode>
</addr>
<telecom use="HP" value="tel:+1-301-555-9771" />
<telecom use="WP" value="tel:+1-301-555-9800" />
<telecom value="mailto:
[email protected]" />