Subject: RE: 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 |
- Dumb questions from a newbie, (continued)
- Mike Ferrando - Tue, 11 Dec 2001 10:48:03 -0500 (EST)
- Michael Kay - Tue, 11 Dec 2001 11:34:55 -0500 (EST)
- Mike Ferrando - Tue, 11 Dec 2001 12:10:17 -0500 (EST)
- Ivan Pedruzzi - Tue, 11 Dec 2001 18:47:44 -0500 (EST)
- Chris Bayes - Tue, 11 Dec 2001 20:01:46 -0500 (EST) <=
- Chris Bayes - Tue, 11 Dec 2001 19:32:19 -0500 (EST)
- Mike Ferrando - Wed, 12 Dec 2001 09:05:46 -0500 (EST)
- Chris Bayes - Wed, 12 Dec 2001 10:07:59 -0500 (EST)
- Ivan Pedruzzi - Wed, 12 Dec 2001 11:33:47 -0500 (EST)
|
|