I'm very glad to help you and it's fine of course that you've found the solution. But it's strange that your IE6 reports the error... My IE6 works fine with the "sum" function. Here is the full code:
target.xsl is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<table border="1">
<xsl:for-each select="Target/Target_T">
<TR>
<TD>
<xsl:value-of select="sum(Test_T/@Duration)"/>
</TD>
</TR>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
and target.xml is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="target.xsl"?>
<Target>
<Target_T Test_Run_ID="47" Target_ID="76" Target_Name_VC="auto-target12">
<Test_T PF="1" Duration="324"/>
<Test_T PF="1" Duration="371"/>
<Test_T PF="1" Duration="166"/>
<Test_T PF="1" Duration="169"/>
<Test_T PF="2" Duration="0"/>
<Test_T PF="1" Duration="1658"/>
</Target_T>
</Target>
XML doc and XSL stylesheet are in the same directory.
If you'll receive the same error message, it will mean that something with MSXML is wrong(MSXML4 fully conforms to XSLT1.0 specification unlike MSXML3; may be MSXML3 is working in your IE6 and causes the error?).
Regards,
Armen