Subject: RE: [xsl] Dumb questions from a newbie From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Wed, 12 Dec 2001 01:04:25 -0000 |
Ivan, You can get around the d-o-e if you return a node-set i.e. { var tdom = new ActiveXObject("MSXML2.FreeThreadedDOMDocument"); var od = tdom.createNode(1, 'myDAO', ''); ... while (!rs.EOF){ var row = tdom.createNode(1, 'row', ''); row = od.appendChild(row); for (var fPos = 0; fPos < rs.fields.count; fPos++){ row.setAttribute(rs.fields(fPos).name, rs.fields(fPos).value); } rs.MoveNext; } return od.selectNodes("*"); } It also means that you can use the result of a query as a full xslt node-set in a variable/apply-templates/for-each et al. Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Dumb questions from a new, Ivan Pedruzzi | Thread | RE: [xsl] Dumb questions from a new, Chris Bayes |
Re: [xsl] XPath: all elements with , Tobias Reif | Date | RE: [xsl] Accessing the Next or Pre, Chris Bayes |
Month |