Subject: RE: [xsl] concatenate multiple attribute values and assign it to another attribute From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 29 Mar 2007 22:50:02 +0100 |
> This is what I have done based on michaels response. The > following is a portion of the xslt file I have. > > <xsl:template match="//testnode"> > <testnode> > <xsl:attribute name="att1"> > <xsl:for-each select="//testnode"> The match="//testnode" template is processed once for every testnode in the document. It then does <xsl:for-each select="//testnode"> which processes every testnode in the document. So if you have four testnode elements you will go round the loop 16 times. Sorry, I assumed you had the basic XSLT knowledge to integrate my code into a working stylesheet. You want to perform this code while processing the parent of the four testnode elements. (I would show you how, but the XML source document you showed us was incomplete). Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] concatenate multiple attr, Abel Braaksma | Thread | [xsl] Unique node and delimiter con, Senthilkumaravelan K |
Re: [xsl] concatenate multiple attr, Abel Braaksma | Date | RE: [xsl] concatenate multiple attr, Shaikh, Parvez |
Month |