Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: dynamic evaluate() function

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 1/6/2005 7:04:00 PM

Bryan Ax wrote:

> I found a sample suggested as a solution for doing dynamic xPath
> expressions in MSXML 3 - however, I'm having some trouble getting
> this to work in an XSLT with .NET version 1.1
> 
> The function is:
> 
> function evaluate(context, expression)
> 
> { return context.nextNode().selectNodes(expression); }
> 
> 
> I'm calling this via the following:
> 
> 
> <xsl:for-each select="dyn:evaluate($Loan, @xPath)">

> However, the dynamic version throws this error:
> 
> at System.Xml.XPath.XPathSelectionIterator..ctor(XPathNavigator nav,
> XPathExpression expr)

Using script in XSLT is usable not portable between different XSLT 
processors, with MSXML you have an object model exposed to script that 
is quite different from the object model .NET exposes to script so that 
script function is not going to work in .NET, you will need to 
reimplement it.
See the post
<http://groups-beta.google.com/group/microsoft.public.xsl/msg/ed8e64ae58d6ea80>
for some hints on the object model .NET exposes to script in XSLT.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent