Hello,

 

I am getting the following error:

 

TypeError: cannot find function importStylesheet in  object when I call the following code from my Webtest:

 

if (typeof XSLTProcessor != "undefined") {

    var oProcessor = new XSLTProcessor();

    oProcessor.importStylesheet(oXslt);

    var oResultDom = oProcessor.transformToDocument(oXml);

    var sResult = oResultDom.xml;

    if (sResult.indexOf("<transformiix:result") > -1) {

        sResult = sResult.substring(sResult.indexOf(">") + 1, sResult.lastIndexOf("<"));

    }

    return sResult;

} else if (fxXml.useActiveX) {

    return oXml.transformNode(oXslt);

} else {

throw new Error("No XSLT engine found.");

}

 

I am using Firefox and it seems that the importStylesheet function should be available in htmlunit.

I am also using the latest snapshot of canoo webtest in a maven project - i.e. 3.1-SNAPSHOT.jar

 

Can anyone help?

 

Thankyou

 

Kind regards
Sophie

 
Sophie De Malet Roquefort
IT Department
0131 555 1100
 
T: 0131 555 1100
F: 0131 555 6300
W:
www.datadiscoveries.com
 
Data Discoveries Logo
 
Please let me know if this e-mail address is not the best one to use.
 
This e-mail is intended for the named addressee only. Its contents are private and confidential and should not be read, copied or disclosed to or by any other person. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone (0131 555 1100), delete the contents of this transmission and destroy any copies made. Copyright Data Discoveries Limited. All rights reserved. No part of this communication may be reproduced without the prior written permission of Data Discoveries Limited.
 
Opinions, conclusions and other information in this message that do not relate to the official business of Data Discoveries Limited shall be understood as neither given nor endorsed by it. Internet e-mails are not necessarily secure. Data Discoveries Limited does not accept responsibility for changes made to this message after it was sent or viruses transmitted through this e-mail or any attachment. You should carry out your own virus checking procedure before opening any attachment to this e-mail. The e-mail and IT systems of Data Discoveries Limited are subject to random monitoring and recording by or on behalf of Data Discoveries Limited.
Thank you.
 
Data Discoveries Limited: Registered in Scotland with Registered Number SC157375.
Registered Office: 16/1 Timber Bush Edinburgh EH6 6QH. VAT Registration Number: GB 663 8176 09.
Member of the Direct Marketing Association.

 
_______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to