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

Keeping current attributes while adding attributes and

Subject: Keeping current attributes while adding attributes and content from another element
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Wed, 2 Sep 2009 11:23:45 -0700
 Keeping current attributes while adding attributes and
See the contrived example below

I can't seem to get this one (step 2 only)
For the <Heading> element, I need to
(1) remove its content;
(2) Keep its attributes and add the attributes [both will vary greatly in name and number] from <SubDiv1> to them
(3) Give it the content from <SubDiv1>
I know how to do (1) and (3), and how to rename <SubDiv2> to <SubDiv1>, but step (2) above is flummoxing me.
Thanks,
Mark


<Subject>
<Heading entry="subject" location="file1">Localities</Heading>
<SubDiv1 subject-type="city">Levoca</SubDiv1>
<SubDiv2 pofis="1" pofis-number="234" scott="1" scott-number="143">1928. Jubilee Issue of 1928</SubDiv2>
</Subject>


and I want to have
<Subject>
<Heading entry="subject" location="file1" subject-type="city">Levoca</Heading>
<SubDiv1 pofis="1" pofis-number="234" scott="1" scott-number="143">1928. Jubilee Issue of 1928</SubDiv1>
</Subject>


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-2011 All Rights Reserved.