[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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>
[xsl] Keeping current attributes while adding attributes and content from another element
Subject: [xsl] 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 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] passing several external , Manuel Souto Pico | Thread | Re: [xsl] Keeping current attribute, David Carlisle |
Re: [xsl] passing several external , Wendell Piez | Date | Re: [xsl] Starting Initial Page Num, G. Ken Holman |
Month |