XSL Sort

Hi,

I am programming a DB in Access and looking to display my data with the XSL stylesheet.I am unable to display the contents of the DB, and I strongly suspect this to be a problem with thexsl stylesheet, since my xml island is coming out well without any problem. The first sort function sorts the attributes according to the tag "attrno" (which represents the display order ) to form the table headers.

The second and third sort functions are intended to use multiple sort.
I have enclosed the xsl stylesheet, could sombody pleeeease help?

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table border="1">
<TR bgcolor="beige" onMouseOver="this.bgColor='papayawhip';" onMouseOut="this.bgColor='beige';">
<tr>
<xsl:for-each select="root/header/headerinfo"> <!-- 1st tree-->
<xsl:sort select="attrno"/>
<td><xsl:value-of select="attribute"/></td>
</xsl:for-each>
</tr>
</TR>

<TR>
<xsl:for-each select="root/row/attributes"> <!--2nd tree-->
<xsl:sort select="PCB"/>
<xsl:sort select="attrno"/>
<td><xsl:value-of select="Value"/></td><!-- after sorting acc. to PCB and then acc to attrno, display the contents-->
</xsl:for-each>
</TR>

</table>
</xsl:template>
</xsl:stylesheet>
[1598 byte] By [erin] at [2007-11-18 17:24:59]
# 1 Re: XSL Sort
You might want to provide some more details. like

Originally posted by erin
I am unable to display the contents of the DB

How were you indending to display the data ?, in a webbrowser ? or some sort of application ?, or by magic ?

Originally posted by erin
and I strongly suspect this to be a problem with thexsl stylesheet,

I can't really see any problem with the xslt, but then again I don't have any of your xml so I can't test it.
It could be a problem with xslt processing engine. But of course this is easily tested, using a simple stylesheet.

Originally posted by erin
since my xml island is coming out well without any problem.

Xml island ?, never heard of that. Comming out where ?, using what tools ?, displayed how ?
khp at 2007-11-10 3:28:24 >