i'm getting the followign error
ERROR: 'Invalid conversion from 'node-set' to 'java.lang.String'.'
while using the template
<xsl:template name="addElement">
<xsl:param name="array" /> <!-- will not be present in the invocation when adding first element -->
<xsl:param name="element" />
<xsl:variable name="arrayNodes" select="xalan:nodeset($array)" />
<xsl:element name="root" namespace="urn:internal:dummy:namespace">
<xsl:if test="count($arrayNodes/array:root/*) != 0">
<xsl:for-each select="$arrayNodes/array:root/array:item[position()
>= 1 and
position() <= count($arrayNodes/array:root/array:item)]">
<xsl:copy-of select="." />
</xsl:for-each>
</xsl:if>
<xsl:element name="item" namespace="urn:internal:dummy:namespace">
<xsl:copy-of select="$element" />
</xsl:element>
</xsl:element>
</xsl:template>
Can anyone help me out in this?
Thanks in anticipation
Varun