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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL optimization

Status
Not open for further replies.

NickMalloy

Programmer
Apr 15, 2005
68
US
I have an XML document I create through a dataset in asp.net when I add a stylesheet too my data it is really slow to display. I am dealing with around 7000 records. Can someone help me with improving this stylesheet.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="vendors/test1">
<p><xsl:value-of select="vendorName"/><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text><xsl:text>&#160;</xsl:text>

<xsl:element name="a">
<xsl:attribute name="id"><xsl:value-of select="address"/></xsl:attribute>
<xsl:attribute name="href"><![CDATA[javascript:__doPostBack(']]><xsl:value-of select="address"/><![CDATA[','')]]></xsl:attribute>
<xsl:value-of select="address"/>
</xsl:element>
</p>
</xsl:template>

</xsl:stylesheet>
 

regardless of what is in the xml data island, 7000 records is a lot of information for a browser to display.

<p>
<xsl:value-of select="vendorName"/>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;
<a href="javascript:__doPostBack('{address}')"/>
<xsl:value-of select="address"/>
</a>
</p>

hth

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top