Revision 1715
Added by Jing Tao about 21 years ago
eml-party-2.0.0.xsl | ||
---|---|---|
153 | 153 |
<xsl:template match="phone" mode="party"> |
154 | 154 |
<xsl:param name="partyfirstColStyle"/> |
155 | 155 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
156 |
Phone:</td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
157 |
<xsl:value-of select="."/> |
|
158 |
<xsl:if test="normalize-space(./@phonetype)!=''"> |
|
159 |
<xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text> |
|
160 |
</xsl:if></td></tr> |
|
156 |
Phone: |
|
157 |
</td> |
|
158 |
<td width="{$secondColWidth}"> |
|
159 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%"> |
|
160 |
<tr><td width="100%" class="{$secondColStyle}"> |
|
161 |
<xsl:value-of select="."/> |
|
162 |
<xsl:if test="normalize-space(./@phonetype)!=''"> |
|
163 |
<xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text> |
|
164 |
</xsl:if> |
|
165 |
</td> |
|
166 |
</tr> |
|
167 |
</table> |
|
168 |
</td> |
|
169 |
</tr> |
|
161 | 170 |
</xsl:template> |
162 | 171 |
|
163 | 172 |
|
164 | 173 |
<xsl:template match="electronicMailAddress" mode="party"> |
165 | 174 |
<xsl:param name="partyfirstColStyle"/> |
166 | 175 |
<xsl:if test="normalize-space(.)!=''"> |
167 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
|
168 |
Email Address:</td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
169 |
<a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/> |
|
170 |
<xsl:value-of select="."/></a></td></tr> |
|
176 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
|
177 |
Email Address: |
|
178 |
</td> |
|
179 |
<td width="{$secondColWidth}"> |
|
180 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%"> |
|
181 |
<tr><td width="100%" class="{$secondColStyle}"> |
|
182 |
<a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/> |
|
183 |
<xsl:value-of select="."/></a> |
|
184 |
</td> |
|
185 |
</tr> |
|
186 |
</table> |
|
187 |
</td> |
|
188 |
</tr> |
|
171 | 189 |
</xsl:if> |
172 | 190 |
</xsl:template> |
173 | 191 |
|
... | ... | |
176 | 194 |
<xsl:param name="partyfirstColStyle"/> |
177 | 195 |
<xsl:if test="normalize-space(.)!=''"> |
178 | 196 |
<tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" > |
179 |
Web Address:</td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
180 |
<a><xsl:attribute name="href">http://<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/> |
|
181 |
<xsl:value-of select="."/></a></td></tr> |
|
182 |
</xsl:if> |
|
197 |
Web Address: |
|
198 |
</td> |
|
199 |
<td width="{$secondColWidth}"> |
|
200 |
<table xsl:use-attribute-sets="cellspacing" class="tableparty" width="100%"> |
|
201 |
<tr><td width="100%" class="{$secondColStyle}"> |
|
202 |
<a><xsl:attribute name="href">http://<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/> |
|
203 |
<xsl:value-of select="."/></a> |
|
204 |
</td> |
|
205 |
</tr> |
|
206 |
</table> |
|
207 |
</td> |
|
208 |
</tr> |
|
209 |
</xsl:if> |
|
183 | 210 |
</xsl:template> |
184 | 211 |
|
185 | 212 |
|
Also available in: Unified diff
Made some minal changes.