[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: concatenate multiple attribute values and assign i

Subject: RE: concatenate multiple attribute values and assign it to another attribute
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 29 Mar 2007 22:50:02 +0100
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.