[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT merging XML documents
Tom, > I thought you already had, i.e. Elements in two documents refer to the same > item (i.e. equivalent) if they > > a) have the same element name > b) have the same number and values of attributes > c) the parents are equivalent (by the same rules) > > NB c) doesn't need to use ancestors because the parents can only be > equivalent if their parents are etc. etc. thinking about it I came to the conclusion that it's not that simple. How would you like to see the following documents merged? <a> <b>First</b> <b>Second</b> </a> and <a> <b>Third</b> </a> My transformation gives <a> <b>FirstThird</b> <b>Second</b> </a> According to your suggestion, the following would also be ok: <a> <b>First</b> <b>SecondThird</b> </a> My rules must include d) if they are at the same position (relative to their parent node) Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|