xsl-list
[Top] [All Lists]

RE: Chewy key problem

2005-02-28 13:25:30
Easy in 2.0

use="string-join(.//desc, '')"

but I can't see a way to do it in 1.0.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Edmund Mitchell [mailto:emitchell(_at_)emn8(_dot_)com] 
Sent: 28 February 2005 20:06
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Chewy key problem

Hi all,

Xml like so:

<a>
      <b>
              <desc>some text
              </desc>
              <bChild>
                      <desc>some other text
                      </desc>
              <bChild>
      </b>
      <b>
              <desc>some text
              </desc>
              <bChild>
                      <desc>some other text
                      </desc>
              <bChild>
              <bChild>
                      <desc>maybe some more text
                      </desc>
              <bChild>
      </b>
</a>

So b elements can have description children (desc), and so 
can their bChild
children.

I'm getting my butt kicked trying to build a key that matches on the
concatenated value of the (b/desc value) + any/all 
(bChild/desc) value(s).

The goal is to Meunchian group all the b elements on the 
concatenated value
of their desc and the desc values of however many bChild 
children there are.

I hope that is clear, and thanks for any help!

E


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





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



<Prev in Thread] Current Thread [Next in Thread>