I assume you mean in HTML!?
First you needs this:
<!-- ADDRESS -->
<xsl:template match="address">
<address>
<xsl:apply-templates />
</address>
</xsl:template>
Note that the address tags are not accidental, HTML also has address
tags.
http://www.w3schools.com/tags/tag_address.asp
Then one of the following to display the lines of the address.
This will display inline (like a phonebook):
<xsl:template match="addressline">
<xsl:apply-templates />
<xsl:text>, </xsl:text>
</xsl:template>
This will display in a block (like an envelope):
<xsl:template match="addressline">
<xsl:apply-templates />
<xsl:text><br/></xsl:text>
</xsl:template>
Hope this helps,
John
--
'. ,'. John Harrison
' ` ' ' University of Liverpool
c h e s h i r e | 3 e: [log in to unmask]
v w: www.cheshire3.org
`-..;.' t: 0151 7950550
.., (c)
On Wed, 2011-08-24 at 13:28 -0400, Nathan Tallman wrote:
> Does anyone have any XSL code snippets that they'd be willing to share
> that styles addresses in an <address> tag to display nicely?
>
>
> Many thanks!
> Nathan Tallman
> American Jewish Archives
|