[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Merging structure and content by own id with XSLT

Subject: Re: Merging structure and content by own id with XSLT 2.0
From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx>
Date: Tue, 23 Mar 2010 19:50:39 +0200
Re:  Merging structure and content by own id with XSLT
Micheal, you're the man! Thanks!

That's exactly the type of answer I was hoping for. It lays the
foundation to a good solution. it's all I needed, thanks.

Cheers,
Jacobus

On Tue, Mar 23, 2010 at 7:09 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>
> I would start with a for-each-group that selects all the "data elements"
> from both files, using group-by="data_id". If there's only one item in the
> current-group() you can copy it unchanged. If there are two, they will be in
> population order so you know which is the old and which is the new. Then you
> just have to do some legwork to compare them. Attributes are easy because
> when you add two attributes with the same name to an element, the last one
> takes precedence. I haven't tried to work out what your rules on merging
> element content are.
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.