Hello,
i am trying to do a for loop for only the first ten records returned by an asp generated xml file from a sql server backend. when i do not put the <xsl:if> in the template below it works fine... it just gives me more than i want to show at one time. with the <xsl:if> it gives me the following error:
"Error Type:
Microsoft XML Extensions to SQL Server (0x80004005)
SQLXML: error loading XSL stylesheet"
any suggestions would be greatly appreciated
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl:template match="/">
<html>
<body>
<table>
<xsl:for-each select="alldata/firstset/tablename">
<xsl:if test="position()<10">
<tr>
<td>
<xsl:value-of select="@fieldname"/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
please help
i am trying to do a for loop for only the first ten records returned by an asp generated xml file from a sql server backend. when i do not put the <xsl:if> in the template below it works fine... it just gives me more than i want to show at one time. with the <xsl:if> it gives me the following error:
"Error Type:
Microsoft XML Extensions to SQL Server (0x80004005)
SQLXML: error loading XSL stylesheet"
any suggestions would be greatly appreciated
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl:template match="/">
<html>
<body>
<table>
<xsl:for-each select="alldata/firstset/tablename">
<xsl:if test="position()<10">
<tr>
<td>
<xsl:value-of select="@fieldname"/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
please help