Passing Formulas to FOP

2009-12-18 Thread Peter Hopfgartner
Hello, we would like to format chemical formulas with FOP. The formulas come from the XML file. We tried to include the FO instructions in the XML file, like in the following Hfo:inline vertical-align=sub font-size=7pt2/fo:inlineO Anyway, the formatting does not survive the XSL processing.

Re: Passing Formulas to FOP

2009-12-18 Thread Nedim Buke
Hello, You can use the following attributes to format as sup and sub respectively. !--SUP-- xsl:attribute-set name=sup xsl:attribute name=font-sizesmaller/xsl:attribute xsl:attribute name=baseline-shiftsuper/xsl:attribute xsl:attribute

Re: Passing Formulas to FOP

2009-12-18 Thread Peter Hopfgartner
Nedim Buke wrote: Hello, You can use the following attributes to format as sup and sub respectively. !--SUP-- xsl:attribute-set name=sup xsl:attribute name=font-sizesmaller/xsl:attribute xsl:attribute name=baseline-shiftsuper/xsl:attribute xsl:attribute

AW: Passing Formulas to FOP

2009-12-18 Thread Georg Datterl
Hi Peter, You write your stuff in your XML file and in does not survive the transformation. Maybe it already works if you add a default transformation which writes the tag unchanged into the fo file. Other solution: encode with lt; in your XML and let the transformation transform it back to

Re: Passing Formulas to FOP

2009-12-18 Thread Nedim Buke
Hello Peter, As follows: !--SUP-- xsl:attribute-set name=sup xsl:attribute name=font-sizesmaller/xsl: attribute xsl:attribute name=baseline-shiftsuper/xsl:attribute xsl:attribute name=vertical-alignsuper/xsl:attribute xsl:attribute

Re: Passing Formulas to FOP

2009-12-18 Thread Peter Hopfgartner
Works! Probably I've outed myself as a complete XSL green horn. Thank you, Peter Nedim Buke wrote: Hello Peter, As follows: !--SUP-- xsl:attribute-set name=sup xsl:attribute name=font-sizesmaller/xsl: attribute xsl:attribute

Re: Passing Formulas to FOP

2009-12-18 Thread Gregory Buchenberger
Peter, A good place for strictly XSLT, XSL, and XPath questions is the XSL mailing list at http://www.mulberrytech.com/xsl/xsl-list/ I'm fairly new to this as well. There certainly is a bit of a curve. Happy styling! Best Regards, Gregory Buchenberger On Fri, 2009-12-18 at 14:25 +0100, Peter

Re: fop.bat bug

2009-12-18 Thread Simon Pepping
Brian, Why do you not write about this issue to the fop-users list? This is not really a development issue. On Fri, Dec 18, 2009 at 11:27:31AM -0600, Brian Mackey wrote: I'm not a batch file programmer, but glancing at fop.bat, the last line: %JAVACMD% %JAVAOPTS% %LOGCHOICE% %LOGLEVEL% -cp

Re: fop.bat bug

2009-12-18 Thread Brian Mackey
I assumed fop-users would not be appropriate because I felt this was a code issue. Though, as you have explained this bug was introduced by Altova and I much appreciate your explanation. I'll re-direct the problem to them. On Fri, Dec 18, 2009 at 12:40 PM, Simon Pepping spepp...@leverkruid.eu