473,385 Members | 1,486 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,385 software developers and data experts.

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 'XPathQueryIterator' 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
'XPathQueryIterator' . 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 1559
Cat wrote:
I am getting the following error when running a transformation on an
xml document:

Public member 'Current' on type 'XPathQueryIterator' 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
'XPathQueryIterator' . 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(Iterator, _
SortField, _
SortOrder, _
SortDataType, _
Parameters, _
Path, _
PageSize)

Dim arrParameters() As String

arrParameters = Split(Parameters,"|")

If Len(arrParameters(0)) > 0 Then
intPageNum = CInt(arrParameters(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.Current.Select("One/Two").count

End Function

</msxsl:script>

<xsl:value-of disable-output-escaping="yes"
select="user:PageInit(.,$SortField,$SortOrder,$Sor tDataType,$Parameters,$Path,$PageSize)"/>

Is there some version of a VB dll that has a different member of this
Xpathqueryiterator?
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_PLEASEtkachenko.com> wrote in message news:<eP**************@TK2MSFTNGP11.phx.gbl>...
Cat wrote:
I am getting the following error when running a transformation on an
xml document:

Public member 'Current' on type 'XPathQueryIterator' 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
'XPathQueryIterator' . 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
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 =...
5
by: Daniel Crespo | last post by:
Is there a built-in method for transforming (1,None,"Hello!") to 1,None,"Hello!"? Thanks
4
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...
3
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 ...
5
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...
0
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: ...
0
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...
1
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.