Subject: | user defined fields |
Not sure if this is a bug or intended behavior, but an ooStyle XPath
object does not have the userFieldValue method...read on...
While working with your package we discovered some interesting things
about OO docs, namely that user defined field declarations can be in
either the styles.xml, or the content.xml depending on how they are
defined. Specifically we have found differences in how OO inserts
declarations when you first define them while working with headers and
footers (i.e. in the styles section of the document) - what's even odder
is that is OO behaves differently (where it puts the decls) depending on
whether the user defined fields are in tables or not. This appears to
be a bug in OO itself...however back to the userFieldValue issue...
It is possible to have user defined fields in headers & footers, yet the
styles object instantiated with ooStyle does not have that method.
We've gotten around it by using the XPath object itself, however, I
thought you might like to know...