Transforming an incorrectly structured document...

Subject: Transforming an incorrectly structured document...
From: "Ben Skelton" <Ben_Skelton@xxxxxxxxxxxxx>
Date: Fri, 1 Dec 2000 13:08:49 -0800

Hello All,

I was wondering if anyone could give me a hand. I am basically using a style
sheet on a Word document (that has been converted to XML using tidy) and now
need to apply formatting on it. The only problem is that Word is not structuring
the document properly. The XML is as follows:

<div>
  <p />
  <h1>Overview</h1>
  <p>Use Slater guards when a riser is subject to minor damage, such as in a
walkway. Use split casings and/or protection posts when a riser is subject to
heavy damage, such as in a</p>
  <h1>Factors</h1>
  <h2>What to look for</h2>
  <p>lane or docking bay.</p>
  <p>Slater guards and split casings come in 1 meter lengths, but may be cut or
joined as necessary.</p>
  <p>Order the split casing attaching lugs separately, and weld them on.</p>


The ideal would be to structure the document as follows:

<div><h1>Overview</h1><p>Use Slater guards when a riser is subject to minor
damage, such as in a walkway. Use split casings and/or protection posts when a
riser is subject to heavy damage, such as in a</p></div>

<div><h1>Factors</h1><h2>What to look for</h2><p>lane or docking
bay.</p><p>Slater guards and split casings come in 1 meter lengths, but may be
cut or joined as necessary.</p><p>Order the split casing attaching lugs
separately, and weld them on.</p></div>

The first thing I have to do is structure the document properly and then apply
formatting on it. Of course, the document would be a lot longer and more
complex...

Does anyone have any suggestions on how I can convert the document in part one
and then apply formatting in part two, but do this all in the same stylesheet?
Any help would be most appreciated!


Thanks,

_Ben

---------------------------------
Ben M. Skelton
Habanero Studios Limited

604.709.6201 ext. 107
bskelton@xxxxxxxxxxxxx

Visit us on the web at our new website: http://www.habaneros.com
and check out our latest client success stories and career opportunities.



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


Current Thread