A
Adam
Hi, Me very confused. I have some XML that I want to convert to a more
basic XML. I have put an example of what I have and what I want, I
have used XSL to convert XML to HTML, but never this way.
The <item numberingtext="10.01.01 "> I want in the para tag I
think, but if it has to be it own tag, no worrys.
Any help would be fantastic
Example of what I have:
=========================
<?xml version="1.0" encoding="UTF-8" ?>
<document xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/HTML/1998/html4" xml:lang="en"
style="widows: 0; orphans: 0; word-break-inside: normal;
\-ilx-endnote-position: sectionbottom; \-ilx-endnote-style-type:
lower-alpha; \-ilx-footnote-position: pagebottom;
\-ilx-footnote-numbering-policy: continuous;
\-ilx-endnote-numbering-policy: continuous; \-ilx-footnote-style-type:
decimal;\-ilx-block-border-mode: merge;">
<part style="page: pageStyle1;">
<par class="Ahead">Duis autem vel eum iriure dolor in hendrerit in
</par>
<par class="Bhead">vulputate velit esse consequat</par>
<par class="Normal" style="font-size: 12.0pt;"></par>
<list style="margin-left: 18.0mm; list-style-type: decimal;
\-ilx-list-group: 4; \-ilx-marker-align: left; \-ilx-marker-format:
"%0.%1.%0"; \-ilx-marker-offset: -1020tw;
\-ilx-marker-follow: tab;">
<item numberingtext="10.01.01 ">
<par class="MainText" style="\-ilx-tab-stops: "left blank
0tw";">Lorem ipsum dolor sit amet,
<link xlink:type="simple" xlink:show="replace"
xlink:actuate="onRequest" xlink:href="http://www.apple.com">
<inline class="Hyperlink">consectetuer</inline>
</link> adipiscing elit, sed diam nonummy nibh euismod
<inline class="reference">tincidunt</inline> ut laoreet dolore
magna aliquam erat volutpat Ut wisi eiim ad minim veniam, quis nostrud
exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat (B-1664-0010). Duis lobortis autem vel eum iriure
dolor in hendrerit in vulputate velit esse
<link xlink:type="simple" xlink:show="replace"
xlink:actuate="onRequest" xlink:href="http://www.apple.com">
<inline class="Hyperlink">molestie</inline>
</link> consequat, vel illum dolore eu feugiat nulla facilisis at
vero eros et accumsan et iusto odio dignissim qui blandit praesent
luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</par>
</item>
</list>
</part>
</document>
=========================
This is what I want:
=========================
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Ahead>Duis autem vel eum iriure dolor in hendrerit in</Ahead>
<Bhead>vulputate velit esse consequat</Bhead>
<para>10.01.01 Lorem ipsum dolor sit amet,
<link href="http://www.apple.com">consectetuer</link> adipiscing
elit, sed diam nonummy nibh euismod
ut laoreet dolore magna aliquam erat volutpat Ut wisi eiim ad minim
veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat (B-1664-0010). Duis lobortis autem
vel eum iriure dolor in hendrerit in vulputate velit esse
<link href="http://www.apple.com">consectetuer</link> consequat, vel
illum dolore eu feugiat nulla facilisis at vero eros et accumsan et
iusto odio dignissim qui blandit praesent luptatum zzril delenit augue
duis dolore te feugait nulla facilisi.
</para>
</root>
basic XML. I have put an example of what I have and what I want, I
have used XSL to convert XML to HTML, but never this way.
The <item numberingtext="10.01.01 "> I want in the para tag I
think, but if it has to be it own tag, no worrys.
Any help would be fantastic
Example of what I have:
=========================
<?xml version="1.0" encoding="UTF-8" ?>
<document xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/HTML/1998/html4" xml:lang="en"
style="widows: 0; orphans: 0; word-break-inside: normal;
\-ilx-endnote-position: sectionbottom; \-ilx-endnote-style-type:
lower-alpha; \-ilx-footnote-position: pagebottom;
\-ilx-footnote-numbering-policy: continuous;
\-ilx-endnote-numbering-policy: continuous; \-ilx-footnote-style-type:
decimal;\-ilx-block-border-mode: merge;">
<part style="page: pageStyle1;">
<par class="Ahead">Duis autem vel eum iriure dolor in hendrerit in
</par>
<par class="Bhead">vulputate velit esse consequat</par>
<par class="Normal" style="font-size: 12.0pt;"></par>
<list style="margin-left: 18.0mm; list-style-type: decimal;
\-ilx-list-group: 4; \-ilx-marker-align: left; \-ilx-marker-format:
"%0.%1.%0"; \-ilx-marker-offset: -1020tw;
\-ilx-marker-follow: tab;">
<item numberingtext="10.01.01 ">
<par class="MainText" style="\-ilx-tab-stops: "left blank
0tw";">Lorem ipsum dolor sit amet,
<link xlink:type="simple" xlink:show="replace"
xlink:actuate="onRequest" xlink:href="http://www.apple.com">
<inline class="Hyperlink">consectetuer</inline>
</link> adipiscing elit, sed diam nonummy nibh euismod
<inline class="reference">tincidunt</inline> ut laoreet dolore
magna aliquam erat volutpat Ut wisi eiim ad minim veniam, quis nostrud
exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat (B-1664-0010). Duis lobortis autem vel eum iriure
dolor in hendrerit in vulputate velit esse
<link xlink:type="simple" xlink:show="replace"
xlink:actuate="onRequest" xlink:href="http://www.apple.com">
<inline class="Hyperlink">molestie</inline>
</link> consequat, vel illum dolore eu feugiat nulla facilisis at
vero eros et accumsan et iusto odio dignissim qui blandit praesent
luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</par>
</item>
</list>
</part>
</document>
=========================
This is what I want:
=========================
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Ahead>Duis autem vel eum iriure dolor in hendrerit in</Ahead>
<Bhead>vulputate velit esse consequat</Bhead>
<para>10.01.01 Lorem ipsum dolor sit amet,
<link href="http://www.apple.com">consectetuer</link> adipiscing
elit, sed diam nonummy nibh euismod
ut laoreet dolore magna aliquam erat volutpat Ut wisi eiim ad minim
veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl
ut aliquip ex ea commodo consequat (B-1664-0010). Duis lobortis autem
vel eum iriure dolor in hendrerit in vulputate velit esse
<link href="http://www.apple.com">consectetuer</link> consequat, vel
illum dolore eu feugiat nulla facilisis at vero eros et accumsan et
iusto odio dignissim qui blandit praesent luptatum zzril delenit augue
duis dolore te feugait nulla facilisi.
</para>
</root>