|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Process the nodes from copy-of element
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.. 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/
|
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
|

Cart








