i have a working xsl.
in this xsl i am using

<svg:font-face font-family="BoldSVG">
  <svg:font-face-src>
    <svg:font-face-uri xlink:href="/path/to/fonts.svg#BoldSVG">
    </svg:font-face-uri>
  </svg:font-face-src>
</svg:font-face>

this is working, when calling fop from command-line. the pdf is generated and

<svg:g fill="black" stroke="none"
       font-size="48pt" font-weight="normal" font-family="BoldSVG">
<svg:text x="5mm" y="55.5mm">Kiki</svg:text>

in my pdf there is a svg-graphic with the word "Kiki" written in my font.

i just try to use fop in a servlet running under tomcat. there is a huge difference in runtime (*). after reading the faq i should use

<svg:font-face-uri xlink:href="url('/path/to/fonts.svg#BoldSVG')">

the only problem is, that i get an error in catalina.out saying:

An I/O Error occured while processing the URI 'url(/path/to/fonts.svg#BoldSVG)' specified on the elment <font-face-uri>.
at org.apache.batik.bridge.BridgeContext.getReferencedElement....


thanxs

markus

(*) run times:

when calling

  time fop.sh -xsl in.xsl -xml in.xml -pdf out.xml -c my.xml

i get

   real 7.27s
   user 6.68s
   sys  0.10s

when calling

time wget "http://localhost:8080/fop?xsl=in.xsl&xml=in.xml&pdf=out.xml"; -O out.log

i get

  real 2.27s
  user 0.009s
  sys  0.003s


looks promising. when i get everything working i will switch from calling command-line-fop to tomcat-servlet-fop


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



Reply via email to