xsl-list
[Top] [All Lists]

RE: [xsl] concatenate multiple attribute values and assign it to another attribute

2007-03-29 14:50:24
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/



--~------------------------------------------------------------------
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>
--~--