Please see code below
<?xml version="1.0" encoding="iso-8859-1"?><!-
- DWXMLSource="summerpromo.x
ml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DT
D XHTML 1.0 Transitional//EN" doctype-system="
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="
http://www.w3.org/1999/xhtml"
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="summerpromo.css" rel="stylesheet" type="text/css" />
</head>
<div id="promo">
<a href="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="blank">
<img src="/images/shared/promot
ions/summe
r-promo-20
07/summerp
romo-no-fl
ash.jpg" width="481" height="393" border="0" vspace="0" hspace="0" alt="Click here to get the latest Flash player" />
</a>
<div id="summer-free-nights">
<h2>summer free night offers</h2>
<xsl:for-each select="rss/channel/single
Offer">
<dl>
<dt><xsl:value-of select="title" disable-output-escaping="y
es"/></dt>
<dt class="hotel"> <a href="{@hotel}#{@hotelcode
}"><xsl:va
lue-of select="offer/@hotel"/>
60;<xsl:va
lue-of select="offer/@star"/></a>
</dt>
<dd>
<span class="nights"><xsl:value-
of select="offer/@nights"/></
span>
<span class="price"><xsl:value-o
f select="offer/@price"/></s
pan><br/>
<span class="valid"><xsl:value-o
f select="offer/@valid"/></s
pan>
</dd>
</dl>
</xsl:for-each>
<xsl:for-each select="rss/channel/item">
<dl>
<dt><xsl:value-of select="title" disable-output-escaping="y
es"/></dt>
<dt class="hotel"><xsl:value-o
f select="offer/@hotel"/>
60;<xsl:va
lue-of select="offer/@star"/></dt
>
<dd>
<span class="nights"><xsl:value-
of select="offer/@nights"/></
span>
<span class="price"><xsl:value-o
f select="offer/@price"/></s
pan><br/>
<span class="valid"><xsl:value-o
f select="offer/@valid"/></s
pan>
</dd>
</dl>
</xsl:for-each>
</div>
</div>
</html>
</xsl:template>
</xsl:stylesheet>
I've created a link but I want all hotel names to read the same url but add their own city code amd hotel code (which is an anchor link) so the link will work.
standard url should be like
http://agents.hotelconnect.co.uk/specialoffers.asp?citycode=AMS#783xml:
<singleOffer>
<title><![CDATA[Kuala Lumpur]]></title>
<citycode><![CDATA[KUL]]><
/citycode>
<offer hotel="Quality Hotel City Centre" hotelcode="2961" star="3*" valid="1/7-31/8" comments="" price="26" nights="3 nts for 2" />
</singleOffer>