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

A variant on the flat file to structured file problem.

Subject: A variant on the flat file to structured file problem.
From: "Nicholas Waltham" <info@xxxxxxxxxxxx>
Date: Fri, 12 Oct 2001 16:01:44 +0200
flat file problems
Thanks to the help of many on this list. I got my last flat to structured
problem
working fine. However I have a slight variant on this problem.

Now I am trying to convert something like this

<doc>
 <p style="L1">First Level 1</p>
 <p style="L1">Second Level 1</p>
 <p style="L2">First <em>Level</em> 2</p>
 <p style="L2">Second Level 2</p>
 <p style="L3">First Level 3</p>
 <p style="L1">Third<em>Level</em> 1</p>
 <p style="L1">Forth Level 1</p>
<p style="normal">Normal</p>
</doc>


to something like this:

<ol>
<li>First Level 1</li>
<li>Second Level 1</li>
<ol>
<li>First Level 2</li>
<li>Second Level 2</li>
<ol>
<li>First Level 3</li>
</ol>
</ol>
<li>Third Level 1</li>
<li>Fourth level 1</li>
</ol>

<p>Normal</p>


If the <p@style> is something completely different, then
it assumed its dropped out of the list structure completely.

Lists could start with L1,L2,or L3 depending too.

I tried to get it working with something similar to the solution used for
headings, but I really couldn't get anything sensible.

I hope you can provide me with some points in the right direction.

Thanks again for your help,
Nicholas Waltham


 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.