[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problems with usage of XPath functions as argument
Hi Ratul, > And if I give the setProperty statement then it gives the following error : > Reference to undeclared namespace prefix: 'xsl'. You need to use the setProperty() method again: /* Tell MSXML to use XPath with this DOM */ oXMLDoc.setProperty("SelectionLanguage", "XPath"); /* Set the namespace-prefix associations through things that look like namespace decarations */ oXMLDoc.setProperty("SelectionNamespaces", "xmlns:xsl='http://www.w3.org/1999/XSL/Transform'"); /* Run the query */ var oNodeList = oXMLDoc.selectNodes("//xsl:text[contains(., 'abc')]"); Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|