G
Guest
I have a set of code that is called on every page load that loads an xslt
file. The xslt file has an embedded <script> tag. Loading the page mutliple
times causes aspnet_wp.exe to use all available memory and then reset. As
this happens several times over the course of an 8 hour stress run, I'm
looking for a solution.
The xslt file has the following:
<xsl:if test="$strPageCaller=''">
<SCRIPT LANGUAGE="JavaScript">BPB()</SCRIPT>
</xsl:if>
<xsl:if test="$strPageCaller!=''">
<SCRIPT LANGUAGE="JavaScript">if (history.length > ((bNS)?1:0))
document.write("<A class='p1s23'
href='Javascript:history.go({$strPageCaller});'><B>Return to
Previous</B></A>");</SCRIPT>
</xsl:if>
The calling code is this:
XmlDocument l_objXMLDoc = new XmlDocument();
System.IO.StringWriter l_objWriter = null;
XslTransform xslt = null;
l_objXMLDoc.LoadXml(m_strXML);
// Create an XPathNavigator to use for the transform.
XPathNavigator nav = l_objXMLDoc.CreateNavigator();
// Transform the file.
l_objWriter = new System.IO.StringWriter();
xslt = new XslTransform();
xslt.Load(Server.MapPath(
ConfigurationSettings.AppSettings["XSLT_PATH"] // get path for xslt file
storage
+
"/xsltfile.xslt") // append physical filename to path
);
xslt.Transform(nav, l_objargList, l_objWriter, null );
l_strOutput = l_objWriter.ToString();
The system configuration is win2k advanced server with latest service pack
and dot net 1.1.
Any ideas?
John
file. The xslt file has an embedded <script> tag. Loading the page mutliple
times causes aspnet_wp.exe to use all available memory and then reset. As
this happens several times over the course of an 8 hour stress run, I'm
looking for a solution.
The xslt file has the following:
<xsl:if test="$strPageCaller=''">
<SCRIPT LANGUAGE="JavaScript">BPB()</SCRIPT>
</xsl:if>
<xsl:if test="$strPageCaller!=''">
<SCRIPT LANGUAGE="JavaScript">if (history.length > ((bNS)?1:0))
document.write("<A class='p1s23'
href='Javascript:history.go({$strPageCaller});'><B>Return to
Previous</B></A>");</SCRIPT>
</xsl:if>
The calling code is this:
XmlDocument l_objXMLDoc = new XmlDocument();
System.IO.StringWriter l_objWriter = null;
XslTransform xslt = null;
l_objXMLDoc.LoadXml(m_strXML);
// Create an XPathNavigator to use for the transform.
XPathNavigator nav = l_objXMLDoc.CreateNavigator();
// Transform the file.
l_objWriter = new System.IO.StringWriter();
xslt = new XslTransform();
xslt.Load(Server.MapPath(
ConfigurationSettings.AppSettings["XSLT_PATH"] // get path for xslt file
storage
+
"/xsltfile.xslt") // append physical filename to path
);
xslt.Transform(nav, l_objargList, l_objWriter, null );
l_strOutput = l_objWriter.ToString();
The system configuration is win2k advanced server with latest service pack
and dot net 1.1.
Any ideas?
John