all groups > dotnet xml > october 2003 >
You're in the

dotnet xml

group:

Error when transforming.


Error when transforming. catmilea NO[at]SPAM yahoo.com
10/3/2003 6:02:03 PM
dotnet xml:
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,
Re: Error when transforming. catmilea NO[at]SPAM yahoo.com
10/4/2003 10:01:02 AM
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,$SortDataType,$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
[quoted text, click to view]
Re: Error when transforming. Oleg Tkachenko
10/4/2003 10:43:57 AM
[quoted text, click to view]

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
Re: Error when transforming. Oleg Tkachenko
10/4/2003 7:35:02 PM
[quoted text, click to view]

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
AddThis Social Bookmark Button