xsl-list
[Top] [All Lists]

[xsl] FW: Migrating from unstructured to structured xml

2006-06-19 01:22:59
Have been struggling with this for days now. Appreciate any help!
I am using:

- XSLT 2.0
- Eclipse
- Saxon 8.7.3

Current:

<body>
<div>
<h2 class="pHeading1">r_Deprecated Document Processing Stages</h2>


<div class="pSmartList1 pSmartList1 null1">

  <div class="pSmartList1">
    <ul class="noindent">
      <li>Text</li>
    </ul>
  </div>

  <p class="pBodyRelative">Note! A warning</p>
  
  <div class="pSmartList1">
    <ul class="noindent">
      <li>more text</li>
    </ul>
  </div>

    <!—Second level list -→
    <div class="pSmartList2 pSmartList2 null1">

      <div class="pSmartList2">
        <ul class="noindent">
          <li>second level text</li>
        </ul>
      </div>
      <div class="pSmartList2">
        <ul class="noindent">
          <li>second level text </li>
        </ul>
      </div>

    </div>
    <!—Second level list end -→ 

  <div class="pSmartList1">
    <ul class="noindent">
      <li>even more text </li>
    </ul>
  </div>

</div>

</div>
</body>

Desired output is:

<section>
            <ul><li>text</li></ul>
            <p>Note! A warning</p>
            <ul>
                        <li>more text</li>
                        <li>
                                   <ul>
                                                       <li>second level 
text</li>
                                           <li>second level text</li>
                                   </ul>
                        </li>
                        <li>even more text</li>
            </ul>
</section>

Thank you!

Kind regards
Pål
______________________
Pål Werdenhoff 
Technical Communicator
Fast Search & Transfer (FAST)
Christian Frederiks plass 6 
P.O. Box 1677, Vika 0120 Oslo
23 01 12 87
48 01 12 87



www.fastsearch.com

<Prev in Thread] Current Thread [Next in Thread>