I am experiencing a strange error when I run an XPATH expression in IE 6.0. In Firefox the code works fine but IE is throwing an error. I would appreciate if anyone could point me in the right direction about how to fix this.

I think the problem has to do with the XPTAH translate () function in IE. I have to use the translate function to remove the hyphen "-" from the date values - <Issue date="2008-01-01"> - so that I can compare it with the dates passed in (20080101 - 20080301)

<Issue date="2008-01-01">
<Issue date="2008-05-01">
<Insertion ordered="1499" materialFrom="Materials to follow" issueDate="2008-02-06 1:45:32 PM" changed="0" freq="0" ad="0" manrate="0" pos="0" rcd="0"/>

I would appreciate if someone could shed some light. Is there a work around this problem? Has anyone experienced this problem before?

This is the XPTAH Expression:

"Media/Vehicle/RateCards/RateCard[@id = '2547' and @name = '2008']/Ads/Ad/Issues/Issue[translate(@date,'-','')>=20080101 and translate(@date,'-','')<=20080301]/Insertion[@ordered]"


This is the full error. I think the problem has to do with the XPTAH translate() function.

name: "TypeError"
message: "Object doesn't support this property or method"
number: -2146827850
description: "Object doesn't support this property or method"

Unknown method.

Media/Vehicle/RateCards/RateCard[@id = '2547' and @name = '2008']/Ads/Ad/Issues/Issue[-->translate(@<--date,'-','')>=20080101 and translate(@date,'-','')<=20080301]/Insertion[@ordered]