xsl-list
[Top] [All Lists]

Process the nodes from copy-of element

2005-12-06 05:23:36
Hi,

Is there any way to process the nodes from the
<xsl:copy-of select=""/>

In the XSLT, at one template..i am using xsl:copy-of
to bring the some collection of node.

<Box name="iconsarea">
<xsl:copy-of select="$strTopLeftIcon"/>
</Box>

In the Output XML file as follows,
<Box name="iconsarea">
  <image name="02_group_inaktiv" type="toplefticon"
id="a_groupinaktiv" title="group_inaktiv"/>
  <image name="02_sachbearbeiter_aktiv"
type="toplefticon" id="a_Sachbearbeiter"
title="Sachbearbeiter"/>
</Box>

That strTopLeftIcon bring two <imgage> element.

I want to process <image> using that $strTopLeftIcon..
Is it possible?

<xsl:for-each select="$strTopLeftIcon">
<xsl:text>Mapping["</xsl:text><xsl:value-of
select="@id"/><xsl:text>"]  = new Array( );
</xsl:text>     
</xsl:for-each>

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!

Any solution or suggestion..

Thanks in advance
Regards,
Raj




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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--