[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Can not convert #STRING to a NodeList! Error..
Thank you so much for all your replies. Still I couldnt solve the problem. This would give much more information. I am using the root template just to load the corresponding labels xml file depending upon language preference. From root template, I am calling second template "main", inside which all the main processing is done. I have tested the code in debug mode, using xmlspy and found these: these are the steps which are executed. 1. From root template(First template): I load the xml document using document() function and call second template <xsl:call-template name="main"> 2. In first child template(second template) "main", I am able to fetch the labels successfully using <xsl:for-each select="$labelsfile"> <xsl:value-of select="key('label','labelname')"/> </xsl:for-each> 3. From this template, I am again calling child templates using <xsl:apply-templates> <xsl:with-param name="labelsfile" select="$labelsfile"/> </xsl:apply-templates> 4. Next Default template prints the node values for some of the xml tags. 5. Next when a template node is matched (third),the third template is being executed, I have declared the param tag <xsl:param name="labelsfile"/> Problem comes only here.. here, the variable "labelsfile" is shown as a String rather than a Nodelist. and its value is blank. and when the tag <xsl:for-each select="$labelsfile"> is being executed, it shows error. The error shown is correct. But why is the parameter not being passed to this child template. am I missing something.. please correct me where I have gone wrong. regards s.arun prasath "arun prasath" <arunwaits@xxxxxxxxxxx> wrote in message _________________________________________________________________ Discover digital jadoo! Enter this contest. http://server1.msn.co.in/sp03/mediacenter/index.asp Win cool prizes! XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|