473,774 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when transforming.

Cat
Hey all,
I am getting the following error when running a transformation on an
xml document:

Public member 'Current' on type 'XPathQueryIter ator' not found.
Has anyone seen this before? I have looked through the code and
havent seen anythig at least in VB.NET that refs the
'XPathQueryIter ator' . Also the web has virtually nothing on this
error at all. Any and all help would be greatly appreciated.

Thanks,
Cat
Nov 11 '05 #1
3 1578
Cat wrote:
I am getting the following error when running a transformation on an
xml document:

Public member 'Current' on type 'XPathQueryIter ator' not found.
Has anyone seen this before? I have looked through the code and
havent seen anythig at least in VB.NET that refs the
'XPathQueryIter ator' . Also the web has virtually nothing on this
error at all. Any and all help would be greatly appreciated.


Provide more information please - your stylesheet, XML and VB code (but
keep them as small as possible).
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #2
Cat
Oleg here's the VB code in a XSLT that i think is causeing the problem
<msxsl:script language="VB" implements-prefix="user">< ![CDATA[
Function PageInit(Iterat or, _
SortField, _
SortOrder, _
SortDataType, _
Parameters, _
Path, _
PageSize)

Dim arrParameters() As String

arrParameters = Split(Parameter s,"|")

If Len(arrParamete rs(0)) > 0 Then
intPageNum = CInt(arrParamet ers(0))
Else
intPageNum = 1
End If

strSortField = SortField
strSortOrder = SortOrder
strSortDataType = SortDataType

intPageSize = PageSize
strPath = Path

intRowBegin = (intPageNum * intPageSize) - 9
intRowEnd = intRowBegin + 9
intRowCurrent = 1

intRowCount = Iterator.Curren t.Select("One/Two").count

End Function

</msxsl:script>

<xsl:value-of disable-output-escaping="yes"
select="user:Pa geInit(.,$SortF ield,$SortOrder ,$SortDataType, $Parameters,$Pa th,$PageSize)"/>

Is there some version of a VB dll that has a different member of this
Xpathqueryitera tor?
I know this isn't the most elegant way of getting rows, and that a xsl
for each loop would work better, but this is unfortunatly what i have
to work with here at this time.

Thanks,
Cat
Oleg Tkachenko <oleg@NO_SPAM_P LEASEtkachenko. com> wrote in message news:<eP******* *******@TK2MSFT NGP11.phx.gbl>. ..
Cat wrote:
I am getting the following error when running a transformation on an
xml document:

Public member 'Current' on type 'XPathQueryIter ator' not found.
Has anyone seen this before? I have looked through the code and
havent seen anythig at least in VB.NET that refs the
'XPathQueryIter ator' . Also the web has virtually nothing on this
error at all. Any and all help would be greatly appreciated.


Provide more information please - your stylesheet, XML and VB code (but
keep them as small as possible).

Nov 11 '05 #3
Cat wrote:
Oleg here's the VB code in a XSLT that i think is causeing the problem


Unfortunately I still cannot reproduce the problem. I run stylesheet
with your msxsl:script block without a hitch. Provide small reproducible
sample - XML and XSL.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #4

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

Similar topics

2
1809
by: Mirjana Rakuljic | last post by:
Hi, I need help with transforming XML document. I generate xml document from query using Oracle XSU (DBMS_XMLQUERY) and the document I get is like this: <?xml version = '1.0' encoding = 'ISO-8859-1'?> <MultiPAT> <PAT> <numreferencia>000000000000</numreferencia>
5
1783
by: Daniel Crespo | last post by:
Is there a built-in method for transforming (1,None,"Hello!") to 1,None,"Hello!"? Thanks
4
1934
by: Showjumper | last post by:
I am using the NITF DTD for my xml files and i need to use 2 xsl files to do the transform: one for the <body.head> and the second for the <body.content>. I've got this so far for transforming using 1 xsl file: Dim doc As New XmlDocument doc.LoadXml(xmlText) Dim xslDoc As New XslTransform xslDoc.Load(xslpath) Dim sw As New StringWriter xslDoc.Transform(doc, Nothing, sw, Nothing)
3
4878
by: Sergio Otoya | last post by:
Hi all, I need to transform an xml document, using xsl to a HTML output. I can do this successfully using the XslTransform class as below: Dim oTrans As New XslTransform oTrans.Load(sXSLPath) oTrans.Transform(sXMLPath, "c:\trans.htm")
5
4506
by: Jiho Han | last post by:
I do a transform of an xml document into another xml using XslTransform. In my xsl file, I specify using <xsl:output encoding="utf-8"/>. However, when my transform is done, the resulting xml is in utf-16. What gives? Anyone?
0
1893
by: KathyB | last post by:
Hi, This problem is KILLING my project. I'm transforming an xml doc (step by step instruction documents) in asp.net web form. I've tried using the xml web control and the following code: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Response.Write("Hello Rod x 2")
0
1092
by: Gustaf | last post by:
I'd like to see if someone found a natural explanation to this. I have this method for transforming docs: /** * Transforms an XmlDocument object with an XSL file, and returns * another XmlDocument object. If something bad happens, null is * returned instead. */ private XmlDocument Transform (string xml, string xsl) {
1
2064
by: silellak | last post by:
I have found an odd error when using an XSL stylesheet transform. We have a Notes/Domino application with the following line of code in one of the stylesheets: <xsl:value-of select="format-number(number(ActEmpMoneyValue),'###,###0.00')" /> After transforming an XML document object with this stylesheet, the value in the XML node ActEmpMoneyValue is not calculated, but a flat value such as "19.31". After being processed as above on...
1
1703
by: Greg Collins [Microsoft MVP] | last post by:
I have a site that uses a custom 404 error page to perform URL Rewriting. This works excellent for all my needs except for one area. When transforming XML, I have some XSLT code that uses the document() function to load some dynamic XML from a SQL database via an ASP.NET page. I am able to get this to work by calling the rewritten URL via an HTTP call--for example: document('http://site/fakefile.xml"). For a while now I have been trying to...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.