[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Process the nodes from copy-of element


Subject: [xsl] Process the nodes from copy-of element
From: Arulraj <p_arulraj@xxxxxxxxx>
Date: Tue, 6 Dec 2005 12:23:36 +0000 (GMT)

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


Current Thread
Keywords