[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: concatenate multiple attribute values and assign i
> 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/
|
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
|