I'm relatively new to XSL and am stumped why this loop is not working. Any help would be appreciated:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>
<xsl:template match="/">
<html>
<head>
<title>History in the Making</title>
<script src="sorttable.
js"></script>
<link rel="stylesheet" type="text/css" href="style.css"></link>
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF">
<table class="sortable" id="unique_id" cellpadding="0" cellspacing="0" border="0">
<tbody>
<xsl:for-each select="pinpoints/pinpoint">
<tr>
<td>
<xsl:if test="@filterType=''">
None
</xsl:if>
<xsl:if test="@filterType!=''">
<xsl:value-of select="@filterType"/>
</xsl:if>
</td>
<td><xsl:value-of select="startdate"/></td>
<td><xsl:value-of select="@name"/></td>
<td><xsl:value-of select="description/background"/></td>
<td><xsl:value-of select="description/impact"/></td>
<td>
<img>
<xsl:attribute name="src">
<xsl:value-of select="iimages/iimage"/>
</xsl:attribute>
</img>
</td>
<td>
<xsl:if test="urls/url=''">
None
</xsl:if>
<xsl:if test="urls/url!=''">
<a>
<xsl:attribute name="href">
<xsl:value-of select="urls/url"/>
</xsl:attribute>
URL
</a>
</xsl:if>
</td>
<td>
<xsl:if test="audioclips/audioclip=''">
None
</xsl:if>
<xsl:if test="audioclips/audioclip!=''">
<a>
<xsl:attribute name="href">
<xsl:value-of select="audioclips/audioclip"/>
</xsl:attribute>
Audio Clip
</a>
</xsl:if>
</td>
<td>
<xsl:if test="videoclips/videoclip=''">
None
</xsl:if>
<xsl:if test="videoclips/videoclip!=''">
<a>
<xsl:attribute name="href">
<xsl:value-of select="videoclips/videoclip"/>
</xsl:attribute>
Video Clip
</a>
</xsl:if>
</td>
<td>
<xsl:if test="links/link=''">
<br />
</xsl:if>
<xsl:if test="links/link!=''">
<a>
<xsl:attribute name="href">
<xsl:value-of select="links/link"/>
</xsl:attribute>
Link
</a>
</xsl:if>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
The problem that I'm having is with links. The XML source:
<pinpoint name="1800: Smallpox vaccination in the U.S." icon=""
filterType="PHM" isKeyEvent="Y">
<startdate>01/01/1800</startdate>
<enddate></enddate>
<description>
<background>
<p>The smallpox vaccination was introduced in the United
States in 1800 by Benjamin Waterhouse. However, legislative
attempts to make vaccinations compulsory in America did not
succeed until 1855 and enforcement did not begin until
1872.</p>
</background>
<impact>
<p>The smallpox vaccine, along with the establishment of
vaccination laws and improvements in sanitation, water
quality and hygiene, eventually led to the eradication of
the deadly smallpox disease and decreased mortality rates
due to disease.</p>
</impact>
</description>
<indepthfilters>
<filter></filter>
</indepthfilters>
<urls>
<url></url>
</urls>
<bgimages>
<bgimage>Dr. Benjamin Waterhouse.jpg</bgimage>
</bgimages>
<iimages>
<iimage></iimage>
</iimages>
<audioclips>
<audioclip></audioclip>
</audioclips>
<videoclips>
<videoclip></videoclip>
</videoclips>
<links>
<link>1792: Marine Hospital Service</link>
<link>1840: Public School Movement</link>
</links>
</pinpoint>
has more than one <link>, I need both links to show in the table.
Appreciate any help you can give.
