xsl-list
[Top] [All Lists]

[xsl] eliminating multiple repeated tags in my XML

2008-03-07 14:41:20
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

 


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