[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ClassCastException

Subject: Re: ClassCastException
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 12 Dec 2003 22:01:21 GMT
jcs classcastexception
> 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.

Perhaps you need to just give a top level description of what you are
trying to do, and someone may suggest some code.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • ClassCastException
    • alana - Thu, 11 Dec 2003 06:09:33 -0500 (EST)
      • <Possible follow-ups>
      • alana - Fri, 12 Dec 2003 00:41:15 -0500 (EST)
        • David Carlisle - Fri, 12 Dec 2003 17:01:35 -0500 (EST) <=
          • JCS - Fri, 12 Dec 2003 17:34:34 -0500 (EST)
          • David Carlisle - Fri, 12 Dec 2003 18:32:23 -0500 (EST)
          • J.Pietschmann - Fri, 12 Dec 2003 19:23:46 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.