I have an open office document with custom styled headings,
subheadings and text paragraphs:

main heading 1
  sub-heading 1
     text in paragraph.....
  sub-heading 2
     text in paragraph......
  sub-heading 3
     text in paragraph....

main heading 2
  sub-heading 1
     text in paragraph.....
  sub-heading 2

...and so on...

the xml format of the open office document is a flat XML document of
<text:p > tags with the headings and sub headings identified by the
style attributes....in this manner:

<text:p text:style-name="main-heading-1" >main heading </text:p>
<text:p text:style-name="sub-heading-1" >sub heading </text:p>
<text:p text:style-name="content" >content </text:p>
<text:p text:style-name="sub-heading-2" >sub heading </text:p>
<text:p text:style-name="main-heading-2" >main heading 2</text:p>
...and so on.....

The problem arises when I have to transform the Openoffice xml to a
different xml format, which is nested and hierarchial.... :

<main-heading >
 <sub-heading>
   <content>
   </content>
</sub-heading>
 <sub-heading>
   <content>
   </content>
</sub-heading>
</main-heading>
<main-heading id="2" >
.......

and so on....

I have run into problems with the XSLT transforms into the required
format.... is there a better way to do this...something other than
using custom styles...?

I was also wondering if there was a way to force openoffice to save
its output as nested hierarchial xml....?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to