OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   xsl file problem

[ Lists Home | Date Index | Thread Index ]

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:template match="code">

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

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

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

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


<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>
    <xsl:apply-templates select="following-sibling::*[1]" mode="next" />


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*. 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS