You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Ankur Chadha <an...@mphasis.com> on 2002/06/28 15:25:31 UTC

Xalan-NodeSet function taking an input parameter (XML-String)

Hi,
	
	I want to pass an argument to the NodeSet function of Xalan. It accpets a tree fragment in  any format (may be string or a node or a simple java Object) .Thats what I am doing.But at run time it gives me a class caste Exception. following is the code-snippet

	<!-- input param  is an XMLString -->
	<xsl:param name="SystemInfo">
	</xsl:param>
 
<!-- the way I call this -->
	<!-- for xalan :- change the context to SystemInfo -->
           <xsl:for-each select="xalan:nodeset($SystemInfo)">
<!--     match the templates under the SystemInfo Tag -->
	    <xsl:apply-templates /> 
            </xsl:for-each> 

The exception thrown is XSLTC specific(XALAN-J) .  

Tell me the way out for this thing.Will be witing fpor your response .

rgds . .
Ankur Chadha.