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


H2O

Anyway, the formatting does not survive the XSL processing. Checking 
with -foout, the relevant fragment becomes "H2O".


Does anybody have any hint how to pass the formatting instructions to 
the final FO file?


Regards,

Peter

--

Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



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.

   

smaller
super
super
hanging
always



 

smaller
sub
hanging
always








Instead of attributes you can also use them direclty inside inline element.

On Fri, Dec 18, 2009 at 1:11 PM, Peter Hopfgartner <
peter.hopfgart...@r3-gis.com> wrote:

> 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
>
> H2O
>
> Anyway, the formatting does not survive the XSL processing. Checking with
> -foout, the relevant fragment becomes "H2O".
>
> Does anybody have any hint how to pass the formatting instructions to the
> final FO file?
>
> Regards,
>
> Peter
>
> --
>
> Dott. Peter Hopfgartner
>
> R3 GIS Srl - GmbH
> Via Johann Kravogl-Str. 2
> I-39012 Meran/Merano (BZ)
> Email: peter.hopfgart...@r3-gis.com
> Tel. : +39 0473 494949
> Fax  : +39 0473 069902
> www  : http://www.r3-gis.com
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


-- 
Nedim Buke


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.


   

smaller
super
super
hanging
always


   
 


smaller
sub
hanging
always








Instead of attributes you can also use them direclty inside inline 
element.



Hello Nedim,

your way of formatting the sub/sup seems much more correct then mine 
was. Anyway, I'm not able to understand if this help me in my base problem.


Let's say, that I have e text element, which might contain formulas like

drinking H2O is healthly


How should I write my XSL file, so that your sub/sup attributes are 
applied correctly?


Regards,

Peter
On Fri, Dec 18, 2009 at 1:11 PM, Peter Hopfgartner 
mailto:peter.hopfgart...@r3-gis.com>> 
wrote:


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

H2O

Anyway, the formatting does not survive the XSL processing.
Checking with -foout, the relevant fragment becomes "H2O".

Does anybody have any hint how to pass the formatting instructions
to the final FO file?

Regards,

Peter

-- 


Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com

Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org

For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org





--
Nedim Buke



--

Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



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 
< in your XML and let the transformation transform it back to <.

Regards,
 
Georg Datterl
 
-- Kontakt --
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:www.irs-nbg.de 
Willmy PrintMedia GmbH:www.willmy.de
Willmy Consult & Content GmbH: www.willmycc.de 
-Ursprüngliche Nachricht-
Von: Peter Hopfgartner [mailto:peter.hopfgart...@r3-gis.com] 
Gesendet: Freitag, 18. Dezember 2009 12:12
An: fop-users@xmlgraphics.apache.org
Betreff: Passing Formulas to FOP

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

H2O

Anyway, the formatting does not survive the XSL processing. Checking with 
-foout, the relevant fragment becomes "H2O".

Does anybody have any hint how to pass the formatting instructions to the final 
FO file?

Regards,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Passing Formulas to FOP

2009-12-18 Thread Nedim Buke
Hello Peter,

As follows:

  
   
   smaller
> attribute>
>super
>super
>hanging
>always
>
>
>   
>
>smaller
>sub
>hanging
>always
>
>
>



  
  
  



   
   
   



Thats all.

On Fri, Dec 18, 2009 at 2:04 PM, Peter Hopfgartner <
peter.hopfgart...@r3-gis.com> wrote:

> Nedim Buke wrote:
>
>> Hello,
>>
>> You can use the following attributes to format as sup and sub
>> respectively.
>>
>>   
>>
>>smaller
>>super
>>super
>>hanging
>>always
>>
>>
>>   
>>
>>smaller
>>sub
>>hanging
>>always
>>
>>
>>
>>
>>
>>
>>
>>
>> Instead of attributes you can also use them direclty inside inline
>> element.
>>
>>  Hello Nedim,
>
> your way of formatting the sub/sup seems much more correct then mine was.
> Anyway, I'm not able to understand if this help me in my base problem.
>
> Let's say, that I have e text element, which might contain formulas like
> 
> drinking H2O is healthly
> 
>
> How should I write my XSL file, so that your sub/sup attributes are applied
> correctly?
>
> Regards,
>
> Peter
>
>> On Fri, Dec 18, 2009 at 1:11 PM, Peter Hopfgartner <
>> peter.hopfgart...@r3-gis.com >
>> wrote:
>>
>>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
>>
>>H2O
>>
>>Anyway, the formatting does not survive the XSL processing.
>>Checking with -foout, the relevant fragment becomes "H2O".
>>
>>Does anybody have any hint how to pass the formatting instructions
>>to the final FO file?
>>
>>Regards,
>>
>>Peter
>>
>>--
>>Dott. Peter Hopfgartner
>>
>>R3 GIS Srl - GmbH
>>Via Johann Kravogl-Str. 2
>>I-39012 Meran/Merano (BZ)
>>Email: peter.hopfgart...@r3-gis.com
>>
>>
>>Tel. : +39 0473 494949
>>Fax  : +39 0473 069902
>>www  : http://www.r3-gis.com
>>
>>
>>-
>>To unsubscribe, e-mail:
>>fop-users-unsubscr...@xmlgraphics.apache.org
>>
>>
>>For additional commands, e-mail:
>>fop-users-h...@xmlgraphics.apache.org
>>
>>
>>
>>
>>
>> --
>> Nedim Buke
>>
>
>
> --
>
> Dott. Peter Hopfgartner
>
> R3 GIS Srl - GmbH
> Via Johann Kravogl-Str. 2
> I-39012 Meran/Merano (BZ)
> Email: peter.hopfgart...@r3-gis.com
> Tel. : +39 0473 494949
> Fax  : +39 0473 069902
> www  : http://www.r3-gis.com
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


-- 
Nedim Buke


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:

  
   
   smaller
   super
   super
   hanging
   always
   
   
  
   
   smaller
   sub
   hanging
   always
   
   




  
  
  



   
   
   



Thats all.

On Fri, Dec 18, 2009 at 2:04 PM, Peter Hopfgartner 
mailto:peter.hopfgart...@r3-gis.com>> 
wrote:


Nedim Buke wrote:

Hello,

You can use the following attributes to format as sup and sub
respectively.

  
   
   smaller
   super
   super
   hanging
   always
   
   
  
   
   smaller
   sub
   hanging
   always
   
   


   
   
   

Instead of attributes you can also use them direclty inside
inline element.

Hello Nedim,

your way of formatting the sub/sup seems much more correct then
mine was. Anyway, I'm not able to understand if this help me in my
base problem.

Let's say, that I have e text element, which might contain
formulas like

drinking H2O is healthly


How should I write my XSL file, so that your sub/sup attributes
are applied correctly?

Regards,

Peter

On Fri, Dec 18, 2009 at 1:11 PM, Peter Hopfgartner
mailto:peter.hopfgart...@r3-gis.com>
>> wrote:

   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

   H2O

   Anyway, the formatting does not survive the XSL processing.
   Checking with -foout, the relevant fragment becomes "H2O".

   Does anybody have any hint how to pass the formatting
instructions
   to the final FO file?

   Regards,

   Peter

   --
   Dott. Peter Hopfgartner

   R3 GIS Srl - GmbH
   Via Johann Kravogl-Str. 2
   I-39012 Meran/Merano (BZ)
   Email: peter.hopfgart...@r3-gis.com

   >

   Tel. : +39 0473 494949
   Fax  : +39 0473 069902
   www  : http://www.r3-gis.com


 
 -

   To unsubscribe, e-mail:
   fop-users-unsubscr...@xmlgraphics.apache.org

   >

   For additional commands, e-mail:
   fop-users-h...@xmlgraphics.apache.org

   >




-- 
Nedim Buke




-- 


Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com

Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail:
fop-users-unsubscr...@xmlgraphics.apache.org

For additional commands, e-mail:
fop-users-h...@xmlgraphics.apache.org





--
Nedim Buke



--

Dott. Peter Hopfgartner

R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



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 Hopfgartner wrote:
> Works!
> 
> Probably I've outed myself as a complete XSL green horn.
> 
> Thank you,
> 
> Peter
> 
> Nedim Buke wrote:
> > Hello Peter,
> >
> > As follows:
> >
> >   
> >
> >smaller >
> > attribute>
> >super
> >super
> >hanging
> >always
> >
> >
> >   
> >
> >smaller
> >sub
> >hanging
> >always
> >
> >
> >
> >
> >
> > 
> >   
> >   
> >   
> > 
> >
> > 
> >
> >
> >
> >
> > 
> >
> > Thats all.
> >
> > On Fri, Dec 18, 2009 at 2:04 PM, Peter Hopfgartner 
> > mailto:peter.hopfgart...@r3-gis.com>> 
> > wrote:
> >
> > Nedim Buke wrote:
> >
> > Hello,
> >
> > You can use the following attributes to format as sup and sub
> > respectively.
> >
> >   
> >
> >smaller
> >super
> >super
> > > name="dominant-baseline">hanging
> >always
> >
> >
> >   
> >
> >smaller
> >sub
> > > name="dominant-baseline">hanging
> >always
> >
> >
> >
> >
> >
> >
> >
> >
> > Instead of attributes you can also use them direclty inside
> > inline element.
> >
> > Hello Nedim,
> >
> > your way of formatting the sub/sup seems much more correct then
> > mine was. Anyway, I'm not able to understand if this help me in my
> > base problem.
> >
> > Let's say, that I have e text element, which might contain
> > formulas like
> > 
> > drinking H2O is healthly
> > 
> >
> > How should I write my XSL file, so that your sub/sup attributes
> > are applied correctly?
> >
> > Regards,
> >
> > Peter
> >
> > On Fri, Dec 18, 2009 at 1:11 PM, Peter Hopfgartner
> >  > 
> >  > >> wrote:
> >
> >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
> >
> >H2O
> >
> >Anyway, the formatting does not survive the XSL processing.
> >Checking with -foout, the relevant fragment becomes "H2O".
> >
> >Does anybody have any hint how to pass the formatting
> > instructions
> >to the final FO file?
> >
> >Regards,
> >
> >Peter
> >
> >--
> >Dott. Peter Hopfgartner
> >
> >R3 GIS Srl - GmbH
> >Via Johann Kravogl-Str. 2
> >I-39012 Meran/Merano (BZ)
> >Email: peter.hopfgart...@r3-gis.com
> > 
> > > >
> >
> >Tel. : +39 0473 494949
> >Fax  : +39 0473 069902
> >www  : http://www.r3-gis.com
> >
> >
> >  
> >  
> > -
> >To unsubscribe, e-mail:
> >fop-users-unsubscr...@xmlgraphics.apache.org
> > 
> > > >
> >
> >For additional commands, e-mail:
> >fop-users-h...@xmlgraphics.apache.org
> > 
> > > >
> >
> >
> >
> >
> > -- 
> > Nedim Buke
> >
> >
> >
> > -- 
> >
> > Dott. Peter Hopfgartner
> >
> > R3 GIS Srl - GmbH
> > Via Johann Kravogl-Str. 2
> > I-39012 Meran/Merano (BZ)
> > Email: peter.hopfgart...@r3-gis.com
> > 
> > Tel. : +39 0473 494949
> > Fax  : +39 0473 069902
> > www  : http://www.r3-gis.com
> >
> >
> > -
> > To unsubscribe, e-mail:
> > fop-users-unsubscr...@xmlgraphics.apache.org
> > 
> > For additional commands, e-ma

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 "%LOCALCLASSPATH%"
> org.apache.fop.cli.Main %FOP_CMD_LINE_ARGS% -c conf/fop.xconf
>  %LOCALCLASSPATH% is likely the issue.

The FOP distributed batch file fop.bat does not write that line. It
writes: "%JAVACMD%" %JAVAOPTS% %LOGCHOICE% %LOGLEVEL% -cp
"%LOCALCLASSPATH%" %FOP_OPTS% org.apache.fop.cli.Main
%FOP_CMD_LINE_ARGS%. It seems you obtained FOP from Altova, and
apparently they changed the batch file.

Your quoted command line indeed references a file conf\fop.xconf
relative to the current working directory, and FOP duely reports when
it cannot find that file.

Your workaround suggests that that file exists in C:\Program
Files\Altova\FOP-0.95. In FOP's own batch file the environment
variable LOCAL_FOP_HOME refers to that directory (more precisely, the
directory of fop.bat). If one writes -c
%LOCAL_FOP_HOME%conf/fop.xconf, then the batch file might work from
any working directory.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



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  wrote:
> 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 "%LOCALCLASSPATH%"
>> org.apache.fop.cli.Main %FOP_CMD_LINE_ARGS% -c conf/fop.xconf
>>  %LOCALCLASSPATH% is likely the issue.
>
> The FOP distributed batch file fop.bat does not write that line. It
> writes: "%JAVACMD%" %JAVAOPTS% %LOGCHOICE% %LOGLEVEL% -cp
> "%LOCALCLASSPATH%" %FOP_OPTS% org.apache.fop.cli.Main
> %FOP_CMD_LINE_ARGS%. It seems you obtained FOP from Altova, and
> apparently they changed the batch file.
>
> Your quoted command line indeed references a file conf\fop.xconf
> relative to the current working directory, and FOP duely reports when
> it cannot find that file.
>
> Your workaround suggests that that file exists in C:\Program
> Files\Altova\FOP-0.95. In FOP's own batch file the environment
> variable LOCAL_FOP_HOME refers to that directory (more precisely, the
> directory of fop.bat). If one writes -c
> %LOCAL_FOP_HOME%conf/fop.xconf, then the batch file might work from
> any working directory.
>
> Regards, Simon
>
> --
> Simon Pepping
> home page: http://www.leverkruid.eu
>

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org