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

RE: Process the nodes from copy-of element

Subject: RE: Process the nodes from copy-of element
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Tue, 6 Dec 2005 12:46:36 +0000 (GMT)
RE:  Process the nodes from copy-of element
Hello Ragulf,

Thanks for the suggestion...

I have used the following way in my XSL. 
<xsl:variable name="strTopLeftIcon">
<!-- The expression that generates the value of the
variable here -->
</xsl:variable>

Now, it is working..

Thanks
Regards,
Raj



--- Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxxxx> wrote:

> 
> >Is there any way to process the nodes from the
> ><xsl:copy-of select=""/>
> 
> Not in the usual way. But anyway, this is not your
> problem, see below.
> 
> ><Box name="iconsarea">
> ><xsl:copy-of select="$strTopLeftIcon"/>
> ></Box>
> 
> <Snip/>
> 
> >I want to process <image> using that
> $strTopLeftIcon..
> >Is it possible?
> 
> This should be very possible, provided that
> $strTopLeftIcon is a nodeset.
> 
> <Snip/>
> >I am using XSLT version 1.0.. it gives the
> following
> >error..
> >
> >(Location of error unknown)XSLT Error
> >(org.apache.xpath.XPathException): Can not
> >  convert #RTREEFRAG to a NodeList!
> 
> The error message states that this is not a nodeset
> (I presume that we are 
> talking about $strTopLeftIcon here ). Since you have
> not shown us how 
> $strTopLeftIcon is created, it is a little hard to
> tell what may be wrong.
> 
> My guess is that you have created the variable like
> this:
> 
> <xsl:variable name="strTopLeftIcon">
>   <!-- The expression that generates the value of
> the variable here -->
> </xsl:variable>
> 
> This variable (in XSLT 1.0) creates a Result Tree
> Fragment, which is not a 
> nodeset.
> 
> You need to use this construct:
> <xsl:variable name="strTopLeftIcon"
> select="YourExpressionHere"/>
> 
> This will create a nodeset.
> 
> If it is not possible to have such a construct, you
> will have to use an 
> extension function, that can take a tree fragment
> and convert it into a 
> nodeset. The exact syntax is processor dependent,
> but most processors have 
> this extension.
> 
> >Any solution or suggestion..
> 
> See above :-)
> 
> Regards,
> Ragulf Pickaxe :-)
> 
>
_________________________________________________________________
> Fe alle de nye og sjove ikoner med MSN Messenger
> http://messenger.msn.dk/
> 
> 



		
__________________________________________________________ 
Enjoy this Diwali with Y! India Click here http://in.promos.yahoo.com/fabmall/index.html

Current Thread

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.