I'm using Writer edit docbook xml files.  I've set up the XML 
transformation with import/export/ and .ott template.  Everything works 
great except when the xml being imported includes style:style elements. 
Writer appears to use some of it and ignore some of it.  Can someone 
explain what it does, direct me to a person or better mail list who can 
explain it, or point me to the area in the Writer code that does it so I 
can figure it out?  Here's an example:

I'm dynamically creating styles when a docbook xml file is opened with 
Writer.  My import xsl creates style:style element such as:

      <style:style style:name="ColStyle0" style:family="table-column">
         <style:table-column-properties style:rel-column-width="6108*"/>
      </style:style>
This style is referenced by name by a table column in the document.

If I put this style inside the automatic:styles element, Writer creates a 
style with the same width but different name, but it also changes the 
column reference to use the new name, so it works ok, though I'd like to 
know why the name is getting changed.  If I put it inside the 
office:styles element, Writer ignores it so it doesn't work. 
  <style:style style:name="Table1.A" style:family="table-column">
   <style:table-column-properties style:column-width="0.6056in" 
style:rel-column-width="6108*"/>
  </style:style>


However, when I create a table-cell style like this:
      <style:style style:name="Table1.0016" style:family="table-cell">
         <style:table-cell-properties fo:padding="0.0382in" 
fo:border-left="=0.0007in solid #000000" fo:border-right="none" 
fo:border-top="none" fo:border-bottom="none"/>
      </style:style>

Writer just ignores it (ie it doesn't appear in the Writer document), no 
matter whether I put it inside the automatic:styles or office:styles 
element.  How can I make Writer use it?

Regards,
Jay Sacco
DFA Capital Management, Inc.
Vice President of Engineering
[EMAIL PROTECTED]
914-701-7232
914-701-7201 fax

Reply via email to