xslt processor add object
- From: "Praveen" <praveen@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Mar 2008 12:19:22 +0530
var ClientXSL=new ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
ClientXSL.async=false;
ClientXSL.load("Test.xsl");
var xslTemplate=new ActiveXObject("Msxml2.XSLTemplate.4.0");
xslTemplate.style***=ClientXSL;
var ClientXML=new ActiveXObject("MSXML2.DOMDocument.4.0");
ClientXML.loadXML("<R><I I='1'/></R>");
var CurrProcessor=xslTemplate.createProcessor;
CurrProcessor.input=ClientXML;
//
//loading another xml
var AnotherXML=new ActiveXObject("MSXML2.DOMDocument.4.0");
AnotherXML.load("Another.xml");
//filering xml and getting node collection
var FilterNodes=AnotherXML.selectNodes("I[@V>10]")
//setting node collection as an object to xslt processor
CurrProcessor.addObject(FilterNodes, "urn:MyNodes" );
//doing transform
CurrProcessor.transform()
my question is how to loop through these nodes, 'FilterNodes' , in xsl.
<xsl:style*** version="1.0" xmlns:Nodes="urn:MyNodes">
<xsl:for-each select="Nodes:"> ???????
thanks
praveen
.
- Follow-Ups:
- Re: xslt processor add object
- From: Martin Honnen
- Re: xslt processor add object
- Prev by Date: Re: The getAttribute() method
- Next by Date: Re: xslt processor add object
- Previous by thread: The getAttribute() method
- Next by thread: Re: xslt processor add object
- Index(es):