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

Building Subsections in a Chapter

Subject: Building Subsections in a Chapter
From: Jason Clark <JaClark@xxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Nov 2003 14:16:46 -0500
jason clark
Hello All,

I am attempting to transform the below XML document (CHAPTER OF A BOOK) into
my preferred output below.  I'm having problems generating the subsections.
The subsections can be 1 to N nested.  Could someone help with an approach
or point me to some resources that have something like this.  Thanks in
advance.


SOURCE DOCUMENT:
<body>
 <chapter></chapter>
  <p>
   <span>2.1 Introduction</span>
   <span>Content</span>
  </p>
  <p>
    <span>2.1.1 My Book</span>
    <span>Content</span>	
  </p>
</body>

OUTPUT I WOULD LIKE:
<body>
  <chapter></chapter>
    <section>
      <title>2.1 Introduction</title>
      <para>Content</para>
       <subsection>
         <title>2.1.1 MyBook</title>
          <para>Content</para>
       </subsection>
     </section>
</body>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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