consider the xml file below
------------------contacts.xml------------------------
<?xml-stylesheet type="text/xsl" href="contacts.xsl"?>
<contacts>
<contact>
<first>John</first>
<last>Wayne</last>
<url>
</contact>
<contact>
<first>Tawani</first>
<last>Anyangwe</last>
<url>
</contact>
<contact>
<first>Francis</first>
<last>Drake</last>
<url>
</contact>
</contacts>
------------------contacts.xsl------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
<xsl:template match="/">
<ul><xsl:apply-templates/></ul>
</xsl:template>
<xsl:template match="contact">
<xsl:variable name="mycontact">
<xsl:value-of select="concat(first,' ',last)"/>
</xsl:variable>
<li><a href="{url}" style="font-family:verdana;font-size:8pt;">
<xsl:value-of select="$mycontact"/>
</a></li>
</xsl:template>
</xsl:stylesheet>
________________________________________________________
If you have any questions, contact me or go to
and click on XMLRepublic