Hi
I'm trying to sort the following xsl by 1. priority 2.free_info 3. ship the usual sort does not seem to work can anyone help please?
here the .XSL
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl=" match="/">
<html>
<div id="anchor_left" style="position:absolute; left:5px; top:0px; width:30px; height:300px; z-index:1" lang="en" title="anchor_left" align="center"><img src="images/Anchor_vert1.png" width="30" height="150"/></div>
<div id="anchor_right" style="position:absolute; left:679px; top:0px; width:30px; height:300px; z-index:2"><img src="images/Anchor_vert1.png" width="30" height="150"/></div>
<div id="heading_home" style="position:absolute; left:50px; top:30px; width:569px; height:55px"><img src="images/cruises_bermuda_heading.png" width="569" height="55"/></div>
<img src="images/spacing.png"/>
<link rel="stylesheet" type="text/css" href="stylenew.css"/>
<body bgcolor="#86AFBC" text="#000080" leftmargin="25">
<font face="Arial"></font>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="cruises">
<xsl:if test="group='bermuda'">
<p>
<font face="Arial">
<table>
<tr>
<b><td width="213px" align="left" left="20px"><xsl:apply-templates select="company"/>
</td>
<td width="213px" align="center"><xsl:apply-templates select="free_info"/></td>
<td width="213px" align="right"><xsl:apply-templates select="ship"/></td>
</b></tr>
</table>
<table>
<tr>
<td width="213px" align="left"><xsl:apply-templates select="length"/> nights</td>
<td width="213px" align="right"><xsl:apply-templates select="from_x0020_to"/></td>
<td width="213px" align="right"><xsl:apply-templates select="dates"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" height="40px"><xsl:apply-templates select="routing"/></td>
</tr>
</table>
<table>
<tr>
<td width="318px" align="left"><b><i>inside cabin: </i></b><xsl:apply-templates select="inside__x0020_price"/></td>
<td width="318px" align="right"><b><i>outside cabin: </i></b><xsl:apply-templates select="outside_price"/></td>
</tr>
<tr>
<td width="318px" align="left"><b><i>balcony cabin: </i></b><xsl:apply-templates select="balcony_price"/></td>
<td width="318px" align="right"><b><i>suite: </i></b><xsl:apply-templates select="suite_price"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" align="center"><xsl:apply-templates select="comment1"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" align="center"><xsl:apply-templates select="comment2"/></td>
</tr>
</table>
</font>
<hr width="639px" align="left" color="white" size="0,1" />
</p>
</xsl:if>
</xsl:template>
<xsl:template match="free_info">
<font size="+1" color="#FFFF00" >
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</xsl:template>
<xsl:template match="company">
<b>
<font size="+1" color="#000080">
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</b>
</xsl:template>
<xsl:template match="ship">
<b>
<font size="+1" color="#000080">
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</b>
</xsl:template>
</xsl:stylesheet>
I'm trying to sort the following xsl by 1. priority 2.free_info 3. ship the usual sort does not seem to work can anyone help please?
here the .XSL
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl=" match="/">
<html>
<div id="anchor_left" style="position:absolute; left:5px; top:0px; width:30px; height:300px; z-index:1" lang="en" title="anchor_left" align="center"><img src="images/Anchor_vert1.png" width="30" height="150"/></div>
<div id="anchor_right" style="position:absolute; left:679px; top:0px; width:30px; height:300px; z-index:2"><img src="images/Anchor_vert1.png" width="30" height="150"/></div>
<div id="heading_home" style="position:absolute; left:50px; top:30px; width:569px; height:55px"><img src="images/cruises_bermuda_heading.png" width="569" height="55"/></div>
<img src="images/spacing.png"/>
<link rel="stylesheet" type="text/css" href="stylenew.css"/>
<body bgcolor="#86AFBC" text="#000080" leftmargin="25">
<font face="Arial"></font>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="cruises">
<xsl:if test="group='bermuda'">
<p>
<font face="Arial">
<table>
<tr>
<b><td width="213px" align="left" left="20px"><xsl:apply-templates select="company"/>
</td>
<td width="213px" align="center"><xsl:apply-templates select="free_info"/></td>
<td width="213px" align="right"><xsl:apply-templates select="ship"/></td>
</b></tr>
</table>
<table>
<tr>
<td width="213px" align="left"><xsl:apply-templates select="length"/> nights</td>
<td width="213px" align="right"><xsl:apply-templates select="from_x0020_to"/></td>
<td width="213px" align="right"><xsl:apply-templates select="dates"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" height="40px"><xsl:apply-templates select="routing"/></td>
</tr>
</table>
<table>
<tr>
<td width="318px" align="left"><b><i>inside cabin: </i></b><xsl:apply-templates select="inside__x0020_price"/></td>
<td width="318px" align="right"><b><i>outside cabin: </i></b><xsl:apply-templates select="outside_price"/></td>
</tr>
<tr>
<td width="318px" align="left"><b><i>balcony cabin: </i></b><xsl:apply-templates select="balcony_price"/></td>
<td width="318px" align="right"><b><i>suite: </i></b><xsl:apply-templates select="suite_price"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" align="center"><xsl:apply-templates select="comment1"/></td>
</tr>
</table>
<table>
<tr>
<td width="639px" align="center"><xsl:apply-templates select="comment2"/></td>
</tr>
</table>
</font>
<hr width="639px" align="left" color="white" size="0,1" />
</p>
</xsl:if>
</xsl:template>
<xsl:template match="free_info">
<font size="+1" color="#FFFF00" >
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</xsl:template>
<xsl:template match="company">
<b>
<font size="+1" color="#000080">
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</b>
</xsl:template>
<xsl:template match="ship">
<b>
<font size="+1" color="#000080">
<span style="width=213px" >
<xsl:value-of select="."/></span>
</font>
</b>
</xsl:template>
</xsl:stylesheet>