Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL sorting problems

Status
Not open for further replies.

hotreca

Technical User
Nov 19, 2002
25
DE
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=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>
<xsl:stylesheet version=&quot;1.0&quot;
xmlns:xsl=&quot; match=&quot;/&quot;>
<html>

<div id=&quot;anchor_left&quot; style=&quot;position:absolute; left:5px; top:0px; width:30px; height:300px; z-index:1&quot; lang=&quot;en&quot; title=&quot;anchor_left&quot; align=&quot;center&quot;><img src=&quot;images/Anchor_vert1.png&quot; width=&quot;30&quot; height=&quot;150&quot;/></div>
<div id=&quot;anchor_right&quot; style=&quot;position:absolute; left:679px; top:0px; width:30px; height:300px; z-index:2&quot;><img src=&quot;images/Anchor_vert1.png&quot; width=&quot;30&quot; height=&quot;150&quot;/></div>

<div id=&quot;heading_home&quot; style=&quot;position:absolute; left:50px; top:30px; width:569px; height:55px&quot;><img src=&quot;images/cruises_bermuda_heading.png&quot; width=&quot;569&quot; height=&quot;55&quot;/></div>
<img src=&quot;images/spacing.png&quot;/>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylenew.css&quot;/>
<body bgcolor=&quot;#86AFBC&quot; text=&quot;#000080&quot; leftmargin=&quot;25&quot;>

<font face=&quot;Arial&quot;></font>
<xsl:apply-templates/>

</body>

</html>
</xsl:template>


<xsl:template match=&quot;cruises&quot;>


<xsl:if test=&quot;group='bermuda'&quot;>


<p>
<font face=&quot;Arial&quot;>
<table>
<tr>
<b><td width=&quot;213px&quot; align=&quot;left&quot; left=&quot;20px&quot;><xsl:apply-templates select=&quot;company&quot;/>
</td>
<td width=&quot;213px&quot; align=&quot;center&quot;><xsl:apply-templates select=&quot;free_info&quot;/></td>
<td width=&quot;213px&quot; align=&quot;right&quot;><xsl:apply-templates select=&quot;ship&quot;/></td>
</b></tr>
</table>

<table>
<tr>
<td width=&quot;213px&quot; align=&quot;left&quot;><xsl:apply-templates select=&quot;length&quot;/> nights</td>
<td width=&quot;213px&quot; align=&quot;right&quot;><xsl:apply-templates select=&quot;from_x0020_to&quot;/></td>
<td width=&quot;213px&quot; align=&quot;right&quot;><xsl:apply-templates select=&quot;dates&quot;/></td>
</tr>
</table>

<table>
<tr>
<td width=&quot;639px&quot; height=&quot;40px&quot;><xsl:apply-templates select=&quot;routing&quot;/></td>
</tr>
</table>

<table>
<tr>
<td width=&quot;318px&quot; align=&quot;left&quot;><b><i>inside cabin: </i></b><xsl:apply-templates select=&quot;inside__x0020_price&quot;/></td>
<td width=&quot;318px&quot; align=&quot;right&quot;><b><i>outside cabin: </i></b><xsl:apply-templates select=&quot;outside_price&quot;/></td>
</tr>
<tr>
<td width=&quot;318px&quot; align=&quot;left&quot;><b><i>balcony cabin: </i></b><xsl:apply-templates select=&quot;balcony_price&quot;/></td>
<td width=&quot;318px&quot; align=&quot;right&quot;><b><i>suite: </i></b><xsl:apply-templates select=&quot;suite_price&quot;/></td>
</tr>
</table>

<table>
<tr>
<td width=&quot;639px&quot; align=&quot;center&quot;><xsl:apply-templates select=&quot;comment1&quot;/></td>
</tr>
</table>

<table>
<tr>
<td width=&quot;639px&quot; align=&quot;center&quot;><xsl:apply-templates select=&quot;comment2&quot;/></td>
</tr>
</table>

</font>
<hr width=&quot;639px&quot; align=&quot;left&quot; color=&quot;white&quot; size=&quot;0,1&quot; />
</p>
</xsl:if>
</xsl:template>

<xsl:template match=&quot;free_info&quot;>
<font size=&quot;+1&quot; color=&quot;#FFFF00&quot; >
<span style=&quot;width=213px&quot; >
<xsl:value-of select=&quot;.&quot;/></span>
</font>
</xsl:template>

<xsl:template match=&quot;company&quot;>
<b>

<font size=&quot;+1&quot; color=&quot;#000080&quot;>
<span style=&quot;width=213px&quot; >
<xsl:value-of select=&quot;.&quot;/></span>
</font>

</b>
</xsl:template>

<xsl:template match=&quot;ship&quot;>
<b>
<font size=&quot;+1&quot; color=&quot;#000080&quot;>
<span style=&quot;width=213px&quot; >
<xsl:value-of select=&quot;.&quot;/></span>
</font>
</b>
</xsl:template>



</xsl:stylesheet>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top