| MHenke on Jan 18, 2006 at 5:32:42 AM (# 1) var currSort1DirNodeVal = xmlDocument.evaluate(("//xsl:param[@name=\"sort1Dir\"]/@select", xmlDocument, null, 9, null).singleNodeValue;
Check out document.evaluate() for details.
LETS HELPS EACH OTHER TO EARN $$$$$$$ on Jan 18, 2006 at 5:02:04 PM (# 2)
This user account has been disabled. Click here to read the message. en on Jan 19, 2006 at 2:30:00 AM (# 3)Hi,
thanks,
I keep getting error
missing ) after argument list var currSort1DirNodeVal = doc.evaluate(("//xsl:param[@name=\"sort1By\"]/@select", doc, null, 9,null).singleNodeValue;
Do you know what is wrong?
Efrat
Code:
--------------------
xsl.load("eventlogger.xsl");
xsltProcessor = new XSLTProcessor(); xsltProcessor.importStylesheet(xsl); var doc = xsltProcessor.transformToDocument(xsl);
var currSort1DirNodeVal = doc.evaluate(("//xsl:param[@name=\"sort1By\"]/@select", doc, null, 9,null).singleNodeValue; en on Jan 19, 2006 at 2:33:50 AM (# 4)Hi,
Well, I fixed it but now I receive this error:
uncaught exception: [Exception... "An attempt was made to create or change an object in a way which is incorrect with regard to namespaces" code: "14" nsresult: "0x8053000e (NS_ERROR_DOM_NAMESPACE_ERR)"
Any suggestion?
thanks in advance.
MHenke on Jan 19, 2006 at 3:05:19 AM (# 5) This message has been edited.Hum, the evaluate() function takes a "NamespaceResolver" as optional argument and you're using the xsl: namespace in your XPath. Maybe you've to set up an appropriate NSResolver, lookup the docu i've posted in #1. BachusII on Jan 19, 2006 at 6:39:16 AM (# 6)Bingo. Luckily FX provides one. Tucked away in a little known corner. document.createNSResolver( document.documentElement ) returns such a function for document.evaluate to use.
MHenke on Jan 19, 2006 at 8:10:56 AM (# 7)Fine. Thanks for verifying my SWAG... 8)
|