[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ClassCastException
On 13/12/03 11:01 AM, "David Carlisle" <davidc@xxxxxxxxx> wrote: > >> thanks David this works but my problem still exists > you still have lots of examples of the problem I mentioned before. > > <xsl:for-each select="$rootnode//component"> > That line can only work if $rootnode variable holds a node set but you > define it like > <xsl:with-param name="rootnode"> > <xsl:value-of select="/DATA/component"/> > </xsl:with-param> > > so its not a node set (you have to use the select attribute of > with-param) > its a result tree fragment consisting of a root note, and a text node > with the string value of whatever is in your component element. Is there somewhere I can find an example of the difference between a node set and a result tree fragment? Is a node set just a "path", or set of nodes with only one "destination" node vs. a result tree that gives multiple node sets? /johnny :) -- Pay no attention to that man behind the curtain. -- The Wizard of Oz 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
|