This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: A simple solution (Was: Re: One for tomorrow :-) )
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE: A simple solution (Was: Re: One for tomorrow :-) )
- From: "Daniel Newman" <daniel dot newman at bis-web dot net>
- Date: Wed, 4 Jul 2001 15:46:53 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
This is my XSL (minus font tags :-):
<xsl:template name="GetTableData">
<tr valign="top">
<xsl:call-template name="GenerateRowColor">
<xsl:with-param name="Index" select="position()" />
</xsl:call-template>
<td width="4%">
<xsl:value-of select="position()" />
</td>
<td colspan="2" valign="top">
<a href="/xml_interface/HolderInfo.asp?id={cs:HIN}" class="HolderSearch">
<xsl:for-each select="cs:NameAddress1">
<xsl:value-of select="."/>
<xsl:for-each
select="following-sibling::*[substring(.,string-length(.))=',']">
<xsl:value-of select="' '" />
<xsl:value-of select="substring(.,1,string-length(.)-1)"/>
</xsl:for-each>
</xsl:for-each>
</a><br/>
<xsl:value-of
select="following-sibling::*[not(substring(.,string-length(.))=',')][4]" />
</td>
<td width="16%" nowrap="true">
<xsl:value-of select="cs:HIN" />
</td>
</tr>
</xsl:template>
And this is it's generated HTML:
<tr valign="top" bgcolor="#FFCC66"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">1</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072995945"
class="HolderSearch">SMITH & WILLIAMSON NOMINEES <A/C
A164></a><br> C0072990390 M60 1AA MRS A SMITH 12 POINT STREET SPITTAL
ESTATE SANDLODGE MANCHESTER </td>
<td width="16%" nowrap="true">C0072995945</td>
</tr>
<tr valign="top" bgcolor="#FFEBBF"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">2</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=G0200328400"
class="HolderSearch">SMITH & WILLIAMSON NOMINEES LIMITED
<CH></a><br> C0072990528 M60 1AA MR ALBERT CARLTON SMITH 12 POINT
STREET SPITTAL ESTATE SANDLODGE MANCHESTER </td>
<td width="16%" nowrap="true">G0200328400</td>
</tr>
<tr valign="top" bgcolor="#FFCC66"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">3</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072996089"
class="HolderSearch">SMITH & WILLIAMSON NOMINEES <A/C M22></a><br>
C0072990625 M60 1AA MR ALEXANDER WILLIAM SMITH 12 POINT STREET SPITTAL
ESTATE SANDLODGE MANCHESTER </td>
<td width="16%" nowrap="true">C0072996089</td>
</tr>
<tr valign="top" bgcolor="#FFEBBF"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">4</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072996135"
class="HolderSearch">SMITH & WILLIAMSON NOMINEES <A/C
P270></a><br> C0076921946 AUS MRS ANGELA WARDLEY SMITH C/O COMPUTERSHARE
LIMITED 18-62 TRENERRY CRESCENT ABBOTSFORD VICTORIA 3067 AUSTRALIA </td>
<td width="16%" nowrap="true">C0072996135</td>
</tr>
<tr valign="top" bgcolor="#FFCC66"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">5</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072990390" class="HolderSearch">MRS
A SMITH</a><br> C0072990838 M60 1AA MR ANTHONY LLOYD BOND-SMITH + M/S
PETRONELLA ELIZABETH BOND-SMITH, 12 POINT STREET SPITTAL ESTATE SANDLODGE
MANCHESTER </td>
<td width="16%" nowrap="true">C0072990390</td>
</tr>
<tr valign="top" bgcolor="#FFEBBF"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">6</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072990528" class="HolderSearch">MR
ALBERT CARLTON SMITH</a><br> C0072990927 M60 1AA MR BARRY ALAN SMITH 12
POINT STREET SPITTAL ESTATE SANDLODGE MANCHESTER </td>
<td width="16%" nowrap="true">C0072990528</td>
</tr>
<tr valign="top" bgcolor="#FFCC66"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">7</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072990625" class="HolderSearch">MR
ALEXANDER WILLIAM SMITH</a><br></td>
<td width="16%" nowrap="true">C0072990625</td>
</tr>
<tr valign="top" bgcolor="#FFEBBF"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">8</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0076921946" class="HolderSearch">MRS
ANGELA WARDLEY SMITH</a><br></td>
<td width="16%" nowrap="true">C0076921946</td>
</tr>
<tr valign="top" bgcolor="#FFCC66"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">9</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072990838" class="HolderSearch">MR
ANTHONY LLOYD BOND-SMITH + BOND-SMITH</a><br></td>
<td width="16%" nowrap="true">C0072990838</td>
</tr>
<tr valign="top" bgcolor="#FFEBBF"
xmlns:cs="http://www.computershare.com/scripcomms/v1.0">
<td width="4%">10</td>
<td colspan="2" valign="top"><a
href="/xml_interface/HolderInfo.asp?id=C0072990927" class="HolderSearch">MR
BARRY ALAN SMITH</a><br></td>
<td width="16%" nowrap="true">C0072990927</td>
</tr>
It's well messy, and doesn't make any sense.
Cheers,
Daniel.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list