source: ccr2ccd-xslt/trunk/templates/address.xsl@ 1328

Last change on this file since 1328 was 759, checked in by Richard Braman, 15 years ago

add files from Ken Miller

File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:astm-org:CCR" xmlns:fo="http://www.w3.org/1999/XSL/Format">
3 <xsl:template name="address">
4 <xsl:param name="actorID"/>
5 <xsl:variable name="actor" select="/a:ContinuityOfCareRecord/a:Actors/a:Actor[a:ActorObjectID=$actorID]"/>
6 <td>
7 <table class="internal" cellpadding="0" cellspacing="0">
8 <tr>
9 <td valign="top">
10 <xsl:for-each select="$actor/a:Address">
11 <xsl:if test="a:Type">
12 <b>
13 <xsl:value-of select="a:Type/a:Text"/>:
14 </b>
15 <br/>
16 </xsl:if>
17 <xsl:if test="a:Line1">
18 <xsl:value-of select="a:Line1"/>
19 <br/>
20 </xsl:if>
21 <xsl:if test="a:Line2">
22 <xsl:value-of select="a:Line2"/>
23 <br/>
24 </xsl:if>
25 <xsl:if test="a:City">
26 <xsl:value-of select="a:City"/>,<xsl:text xml:space="preserve"> </xsl:text>
27 </xsl:if>
28 <xsl:value-of select="a:State"/>
29 <xsl:text xml:space="preserve"> </xsl:text>
30 <xsl:value-of select="a:PostalCode"/>
31 <br/>
32 </xsl:for-each>
33 </td>
34 <td valign="top">
35 <xsl:for-each select="a:Telephone">
36 <xsl:if test="a:Type/a:Text">
37 <xsl:value-of select="a:Type/a:Text"/> Phone:<xsl:text xml:space="preserve"> </xsl:text>
38 </xsl:if>
39 <xsl:value-of select="a:Value"/>
40 </xsl:for-each>
41 <xsl:for-each select="a:EMail">
42 Email:<xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Value"/>
43 </xsl:for-each>
44 </td>
45 </tr>
46 </table>
47 </td>
48 </xsl:template>
49</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.