![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My transform in cludes a variable that holds a node set from the node-set() extension function. It the transformation works fine when using MSXML2 or msxsl.exe but not in VB.Net. My code looks something like this: Dim XP as New XPathDocument(XMLFileName) Dim XSLT as New XslTransform XSLT.Load(XSLTFileName) Dim Out as New MemoryStream XSLT.Transform(XP.CreateNavigaotr, Nothing, Out, Nothing) <-- Fails on this line Out.Position = 0 Dim XML as New XmlDocument XML.LoadXml(New StreamReader(Out).ReadToEnd) The exception says: System.Xml.Xsl.XsltException: Function 'msxsl:node-set()' has failed. --- System.Xml.Xsl.XsltException: Cannot convert the operand to 'Result tree fragment'. I've spent days trying to figure it out with no luck. Any suggestions? |
#3
| |||
| |||
|
|
My transform in cludes a variable that holds a node set from the node-set() extension function. It the transformation works fine when using MSXML2 or msxsl.exe but not in VB.Net. My code looks something like this: Dim XP as New XPathDocument(XMLFileName) Dim XSLT as New XslTransform XSLT.Load(XSLTFileName) Dim Out as New MemoryStream XSLT.Transform(XP.CreateNavigaotr, Nothing, Out, Nothing) <-- Fails on this line Out.Position = 0 Dim XML as New XmlDocument XML.LoadXml(New StreamReader(Out).ReadToEnd) The exception says: System.Xml.Xsl.XsltException: Function 'msxsl:node-set()' has failed. --- System.Xml.Xsl.XsltException: Cannot convert the operand to 'Result tree fragment'. I've spent days trying to figure it out with no luck. Any suggestions? |
#4
| |||
| |||
|
|
And where is your XSLT code? |
| "John Sever" <johnsever (AT) cascon (DOT) com> wrote in message news:ukChw6JGEHA.3880 (AT) TK2MSFTNGP10 (DOT) phx.gbl... My transform in cludes a variable that holds a node set from the node-set() extension function. It the transformation works fine when using MSXML2 or msxsl.exe but not in VB.Net. My code looks something like this: Dim XP as New XPathDocument(XMLFileName) Dim XSLT as New XslTransform XSLT.Load(XSLTFileName) Dim Out as New MemoryStream XSLT.Transform(XP.CreateNavigaotr, Nothing, Out, Nothing) <-- Fails on this line Out.Position = 0 Dim XML as New XmlDocument XML.LoadXml(New StreamReader(Out).ReadToEnd) The exception says: System.Xml.Xsl.XsltException: Function 'msxsl:node-set()' has failed. --- System.Xml.Xsl.XsltException: Cannot convert the operand to 'Result tree fragment'. I've spent days trying to figure it out with no luck. Any suggestions? |
#5
| |||
| |||
|
| John Sever wrote: My transform in cludes a variable that holds a node set from the node-set() extension function. It the transformation works fine when using MSXML2 or msxsl.exe but not in VB.Net. My code looks something like this: Dim XP as New XPathDocument(XMLFileName) Dim XSLT as New XslTransform XSLT.Load(XSLTFileName) Dim Out as New MemoryStream XSLT.Transform(XP.CreateNavigaotr, Nothing, Out, Nothing) <-- Fails on this line Out.Position = 0 Dim XML as New XmlDocument XML.LoadXml(New StreamReader(Out).ReadToEnd) The exception says: System.Xml.Xsl.XsltException: Function 'msxsl:node-set()' has failed. --- System.Xml.Xsl.XsltException: Cannot convert the operand to 'Result tree fragment'. I've spent days trying to figure it out with no luck. Any suggestions? I don't think that .NET supports the node-set function. -- Martin Honnen http://JavaScript.FAQTs.com/ |
#6
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |