Sign In/My Account | View Cart  
advertisement

Article:
 Diagramming the XML Family
Subject: Can not convert #RTREEFRAG to a NodeList!
Date: 2003-10-12 16:32:01
From: terry doNer

When I tried to run the stylesheet myself it gave the captioned error on line 784.


Anybody have a clue as to what the problem is?



Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Can not convert #RTREEFRAG to a NodeList!
    2003-10-13 00:24:28 Daniel Zambonini [Reply]

    I used Sablotron, which luckily lets me get away with a few things that I shouldn't...


    If you're using Xalan (which I assume you are from the error message), you'll need to include the xalan namespace, and wrap a


    xalan:node-set(...)


    function around where the XSLT uses 'result tree fragments' (most of the XSLT parameters and variables in the stylesheet). Similarly, if you're using xt or saxon, the functions are called xt:node-set or saxon:node-set.


    For an example, see:


    http://xml.apache.org/xalan-c/extensionslib.html#nodeset

    • Can not convert #RTREEFRAG to a NodeList!
      2005-03-04 02:17:03 RalphHodgson [Reply]

      Using


      <xsl:variable name="" select=""/>


      instead of


      <xsl:variable name="">
      <xsl:value-of select=""/>
      <xsl:variable>


      fixes this problem for me although it only became an issue for me at JDK1.5.


Sponsored By: