Hi All,
I have written XSlT below:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl">
<xsl:template match="/">
<xsl:variable name="parent">
<parentid>
<xsl:call-template name="parent">
<xsl:with-param name="parentid" select="//ID"/>
</xsl:call-template>
</parentid>
</xsl:variable>
<xsl:value-of select="$parent"/></xsl:template>
<xsl:template name="parent">
<xsl:param name="parentid"/>
<xsl:choose>
<xsl:when test="count(exsl:node-set($parentid)//objectid/node()|@*) > 1">
<xsl:value-of select="exsl:node-set($parentid)//objectid[count(exsl:node-set($parentid)//objectid/node()|@*) - 1]/text()"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="exsl:node-set($parentid)//objectid[1]/text()"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
When I am running this in
vb.net application, I m getting the error below:
Exception: {0}System.Runtime.InteropServices.COMException (0x80004005): Namespace 'http://exslt.org/common' does not contain any functions.
Could someone please tell me where I am doing wrong.
Regards
Nelly