This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
passing xml-fragments(node lists) to a stylesheet
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] passing xml-fragments(node lists) to a stylesheet
- From: "Philip Rangel" <pr at engine dot de>
- Date: Wed, 15 Aug 2001 13:44:15 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello everybody,
I'm trying to figure out which would be the best way (performance)
to pass xml-fragments to a stylesheet.
We are retriving xml-data from the database through objects
which are called in asp.
In some cases we need to retrive a second xmldata source.
As far as i can see there are many ways to achieve this.
1. throu the document("http://server/data.asp?params...) function
2. calling an object in the stylesheet:
<msxsl:script language="JScript" implements-prefix="user">
function nodelist(xpath) {
var myObj= new ActiveXObject("MyObject");
return myObj.selectNodes(xpath);
}
</msxsl:script>
3. passing a nodelist throu a paramter (supposed to work):
myProc.addParameter(myVariable, "myBaseName");
(I have only made it work for strings/numbers not for node lists. msxml3
+ sp1)
4. retrieving both sources merging them and than transforming.
I heard hat 2. and 3. are not recomended when performance is an issue.
Haven't seen anything about 1.
And the last solution 4. would make the asp development more complex.
which would be the most recomended solution and does anybody
now how passing a nodelist throu a paramter should work?
Philp Rangel
engine software solutions
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list