Subject: RE: [xsl] merging the contents of consecutive From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 18 Oct 2005 21:34:05 +0100 |
This is just: <xsl:template match="overview"> <info> <xsl:copy-of select="info/*"/> </info> </xsl:template> Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Annmarie Rubin (anrubin) [mailto:anrubin@xxxxxxxxx] > Sent: 18 October 2005 20:23 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Cc: Annmarie Rubin (anrubin) > Subject: [xsl] merging the contents of consecutive > > Thanks for the tip, Michael. > > I want to generate a single element to replace two consecutive info > elements that are children of an overview element and have > the same name > (and concatenate their contents.) There will be no more than one pair > of these info elements in each overview element. I don't want to > generate a single element containing all duplicate elements. > > For example, this code finds the info element that is a child of an > overview element and whose next following sibling is also an info > element. > > <xsl:template > match="overview/info[following-sibling::*[1][self::info]]" > > > > At this point, I'm stuck. How do I concatenate both elements? > > thanks, > > Ann Marie
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] merging the contents of c, bryan rasmussen | Thread | [xsl] merging the contents of conse, Annmarie Rubin \(anr |
Re: [xsl] Using absolute path when , David Carlisle | Date | [xsl] merging duplicate consecutive, Annmarie Rubin \(anr |
Month |