ERROR: 'Invalid conversion from 'node-set' to 'java.lang.String'.'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ERROR: 'Invalid conversion from 'node-set' to 'java.lang.String'.'

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" />       
                <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()
&gt;= 1 and
                                                position() &lt;= count($arrayNodes/array:root/array:item)]">
                                        <xsl:copy-of select="." />
                        <xsl:element name="item" namespace="urn:internal:dummy:namespace">
                                <xsl:copy-of select="$element" />

Can anyone help me out in this?

Thanks in anticipation