473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

XSLT Extension Object Problem

In my old VB6 application I have an xslt extension object that builds a
small cross reference document and returns it as a NodeList in my XSLT. I
can then use it with xpath expressions as $nodeset/xpath and I would get my
values or use xsl:copy-of and I would get the whole document in my results
tree. In my .Net version I don't get anything with my $nodeset/xpath
expression and if I use the xsl:copy-of I get a value of
System.Xml.XPath.XPathNodeList. I know this is the real object of the
node set but what am I doing wrong for it not to be a node-set when it
returns to my XSLT? Anyone have any ideas? I even tried wrapping the
result with msxsl:node-set() and I received all kinds of error from my XSLT
processor then.

Thanks,

Matt
Nov 12 '05 #1
2 1986
Matt Frame wrote:
In my old VB6 application I have an xslt extension object that builds a
small cross reference document and returns it as a NodeList in my XSLT. I
can then use it with xpath expressions as $nodeset/xpath and I would get my
values or use xsl:copy-of and I would get the whole document in my results
tree. In my .Net version I don't get anything with my $nodeset/xpath
expression and if I use the xsl:copy-of I get a value of
System.Xml.XPath.XPathNodeList.


What do you return from the extension object? It must be
XPathNodeIterator to be passed as nodeset or XPathNavigator as result
tree fragment.

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Nov 12 '05 #2
Oleg,

Once again you are FANTASTIC!

Thanks for the help.

Matt
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Matt Frame wrote:
In my old VB6 application I have an xslt extension object that builds a
small cross reference document and returns it as a NodeList in my XSLT. I can then use it with xpath expressions as $nodeset/xpath and I would get my values or use xsl:copy-of and I would get the whole document in my results tree. In my .Net version I don't get anything with my $nodeset/xpath
expression and if I use the xsl:copy-of I get a value of
System.Xml.XPath.XPathNodeList.


What do you return from the extension object? It must be
XPathNodeIterator to be passed as nodeset or XPathNavigator as result
tree fragment.

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Edwin G. Castro | last post by:
Hi, I'm new to XSLT and I'm having a hard time figuring out whether XSLT will do what I need it to do. I have a XML file with a whole bunch of <message> elements. These <message> elements...
7
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
0
by: Jay Allard | last post by:
Hello I posted this in the vb.net group on the 2/25/2004, but didn't get any response. Here's attempt 2. Does anyone know of a more appropriate place to post this? One new piece of...
4
by: Gauthier | last post by:
Hi, I've a simple issue with the use of extension objects. I'm trying to call a text formating method from an object that I add to my arguments collection, this method take an input string and...
5
by: Douglas Steen | last post by:
Here's what I have (in snippets) ** XML ** <parent> <child> <grandchild/> </child> </parent> ** XSLT ** <xsl:template match="/parent">
2
by: Martin | last post by:
Hi, I want to write an XSLT extension object that returns a node set. I intend to use the extension object in a select attribute of a for-each xsl element. eg. <xsl:for-each...
2
by: Simon_Keep | last post by:
Hi, I have an Xslt extension object that returns a node-set to the xslt stylesheet which then uses an xsl:copy-to statement to write it to the output. The problem I am having is that the...
3
by: thomas.porschberg | last post by:
Hi, I want to read records from a database and export it in an arbitrary format. My idea was to feed a class with a String array fetched from the database and let this class fire SAX events as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.