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

merging sequences

Subject: merging sequences
From: Fabien Tillier <ftillier@xxxxxxxx>
Date: Fri, 13 Jan 2012 14:41:06 +0000
 merging sequences
Hi List.
I have the two following sequences
N112 N100 N107 P2010 N109 P2014 P2015 N108 N203 N206 N307 N311
And
N112 N100 P2014 P2015 N108 N203 N306 N206 N307 N311

These are extracted from a sub tree (thus they have child and attributes). The
sequences themselves are made using the name() function, thus are sequences of
strings.
I would like to align these so that the resulting sequence contains all items,
but keeping the order, thus


N112 N100 N107 P2010 N109 P2014 P2015 N108 N203      N206 N307 N311
N112 N100                 P2014 P2015 N108 N203 N306 N206 N307 N311

The result being
N112 N100 N107 P2010 N109 P2014 P2015 N108 N203 N306 N206 N307 N311

Then, once I have this sequence, I can iterate over it and rebuild my sub tree
so that all child and attributes are kept (this part I have already).

Any help would be very appreciate.

Kind regards,
Fabien

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.