[xsl] eliminating multiple repeated tags in my XML

Subject: [xsl] eliminating multiple repeated tags in my XML
From: "Cindy Maisannes" <Cindy.Maisannes@xxxxxxxxxxxxxxxx>
Date: Fri, 7 Mar 2008 16:40:52 -0500
Hello,

I am trying to figure out how to write my XSLT to get it to eliminate
redundant tagging of multiple <related-article> elements that I currently have
in my XML file.  The XML looks like this:

<related-article> [content 1] </related-article>
<related-article> [content 2] </related-article>
<related-article> [content 3] </related-article>

and I would like to end up with XML that looks like this:

<related-article> [content 1] [content 2] [content 3] </related-article>

The content of the <related-article>s is further XML tagging and text content.
This seems like it should be so easy but my brain's not getting it.  Right now
I'm using Saxon 9B and XSLT 2.0.  Any thoughts would be appreciated.

Thanks!
Cindy

 

Current Thread