This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Allowed return data types using addobject?
- From: Neil Hunter <HunterN at rsc dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 28 Feb 2002 10:58:09 -0000
- Subject: [xsl] Allowed return data types using addobject?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I am using ASP and MSXML.
I am calling a COM object (written in VB) that is made available to an XSLT
style sheet using XSLTprocessor.addobject. I can successfully call a method
in the object from the style sheet that returns xml as a string ( so <
becomes < etc.) to an xsl:variable but I want to call one that returns a
tree to be converted into a node-set. I have tried all sorts of methods to
accomplish this but none have been entirely successful. What data type
should I use for the return value (within VB) of the COM method to achieve
this and what should I be doing to turn this value into a node-set. Is it
even allowable to return an object?
My current approach is call a method that takes a string and returns an
MSXML2.DOMDocument using:
<xsl:variable name="msid"><xsl:value-of
select="//rsc:docroot/@msid"/></xsl:variable>
<xsl:variable name="links" select="myObj:resolveLinks(string($msid))"/>
<xsl:variable name="doclinks" select="msxsl:node-set($links)"/>
The ASP page that does the work tends to hang and time out.
Any advice is much appreciated.
Thanks,
Neil.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list