J
Jeff Higgins
Hi,
will someone show me how to write a transformation
to obtain the desired output from the following input xml?
Any help will be greatly appreciated.
Thanks.
Jeff Higgins
Input xml:
<chapter>
<section>
<section_header>Getting Started</section_header>
<paragraph>This section covers the fundamental</paragraph>
<section>
<section_header>User Interface</section_header>
<paragraph>This section provides information on</paragraph>
<section>
<section_header>Components of the UI</section_header>
<paragraph>The main area of the screen is </paragraph>
</section>
<section>
<section_header>Menus</section_header>
<paragraph>The main menu</paragraph>
</section>
</section>
</section>
</chapter>
Desired output:
<toc>
<entry>1 Getting Started</entry>
<entry>1.1 User Interface</entry>
<entry>1.1.1 Components of the UI</entry>
<entry>1.1.2 Menus</entry>
</toc>
will someone show me how to write a transformation
to obtain the desired output from the following input xml?
Any help will be greatly appreciated.
Thanks.
Jeff Higgins
Input xml:
<chapter>
<section>
<section_header>Getting Started</section_header>
<paragraph>This section covers the fundamental</paragraph>
<section>
<section_header>User Interface</section_header>
<paragraph>This section provides information on</paragraph>
<section>
<section_header>Components of the UI</section_header>
<paragraph>The main area of the screen is </paragraph>
</section>
<section>
<section_header>Menus</section_header>
<paragraph>The main menu</paragraph>
</section>
</section>
</section>
</chapter>
Desired output:
<toc>
<entry>1 Getting Started</entry>
<entry>1.1 User Interface</entry>
<entry>1.1.1 Components of the UI</entry>
<entry>1.1.2 Menus</entry>
</toc>