[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl file problem

  • To: xml-dev@l...
  • Subject: xsl file problem
  • From: "nick tsirakis" <tsirman@h...>
  • Date: Thu, 29 Apr 2004 12:41:28 +0000
  • Bcc:

xsl file
well i have a problem with something,
i have an xml file and i have created an xsl file to parse my data for my 
php page.
the xsl code is here:
--------------------------
<?xml version="1.0"?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
<xsl:template match="code">
</xsl:template>


<xsl:template match="categorylist">
<table width="365" border="0">
    <xsl:apply-templates select="category"/>
</table>
</xsl:template>

<xsl:template match="category" />
<xsl:template match="category" mode="next" />

<xsl:template match="category[position() mod 2 = 1]">
    <tr>
	<xsl:call-template name="nodename" />
    </tr>
</xsl:template>

<xsl:template match="category[position() mod 2 != 1]" mode="next">
    <xsl:call-template name="nodename" />

</xsl:template>

<xsl:template name="nodename">
    <td width="50%">
        <font face = "Verdana" size = "1" color = "#000066">
	<a HREF="index.php?nodeid={nodeid}&amp;nodename={nodename}">
	<xsl:value-of select="nodename" /></a></font>
	<font face = "Verdana" size = "1" color = "#666666"> (<xsl:value-of 
select="sitecount" />)</font>
    </td>
    <xsl:apply-templates select="following-sibling::*[1]" mode="next" />

</xsl:template>

</xsl:stylesheet>
-------------------------
i want in this code to have a sorting of "nodename" but i tried to put the

<xsl:sort select="nodename"/>

inside this code nut it does not work......

thanks for any help

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.