Re: Does current FOP Trunk support fo:float ?

2006-10-05 Thread Vincent Hennebert
Darya Said-Akbari a écrit :
 Hi,
 
 I am wondering whether the current developer version
 of FOP at
 http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/
 supports fo:float or not.

Not yet, but there is a partial implementation of fo:float
float=before in the Temp_Floats branch [1], which should work well in
simple cases. I'm currently working on an improved, complete
implementation which should be available... when I have time to finish it.

As for side-floats (fo:float float=start/end/left/right), no
implementation should be expected before some time.

HTH,
Vincent

[1] http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats/


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



RE: Problem height block in table-cell

2006-10-05 Thread Pascal Sancho
 -Original Message-
 From: fabio76 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 04, 2006 4:30 PM
 
 Hi all,
 I have the same problem. I have a table :
   fo:table
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=2cm/
 
 fo:table-body
 fo:table-row
   fo:table-cell  border=0.01pt solid
 fo:block text-align=center border=0.01pt solid
 line-height=100% 
 green cell
 /fo:block
   /fo:table-cell
 fo:table-cell
 fo:block border=0.01pt solidCell 1/fo:block
   /fo:table-cell 
   fo:table-cell 
 fo:block text-align=center
 blue cell
 /fo:block
   /fo:table-cell
   fo:table-cell background-color=yellow
 fo:block text-align=center
 yellow cell
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block text-align=center
 text for an extra line in the table row
 /fo:block
   /fo:table-cell
 /fo:table-row
   /fo:table-body
   /fo:table
 
 How can I have the block height as a cell? Is possible?
 Best Regards
 --
 View this message in context: 
 http://www.nabble.com/Problem-height-block-in-table-cell-tf238
2658.html#a6640613
 Sent from the FOP - Users mailing list archive at Nabble.com.

Fabio,
What do you want to do precisely?
fo:block height typically depends on its content.
If you want to align fo:table-cell content vertically, use the
display-align property, either on a single fo:table-cell, or on the
fo:table-row
If you want to do something else, further info in needed.

Pascal

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



RE: Problem height block in table-cell

2006-10-05 Thread fabio76

Hi Pascal,
my problem is this. I want to have the height of fo:block as the height of
fo:table-cell. In the example that I attached the height of fo:block of
the first cell is not equals to the height of fo:table-cell that, in this
case, depend of the height of the last fo:block in the last
fo:table-cell
Exist a method or an attribute to set the height of fo:block to change the
height of fo:block in the height of fo:table-cell?
Best regards
Fabio




Pascal Sancho wrote:
 
 -Original Message-
 From: fabio76 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 04, 2006 4:30 PM
 
 Hi all,
 I have the same problem. I have a table :
   fo:table
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=3cm/
   fo:table-column column-width=2cm/
 
 fo:table-body
 fo:table-row
   fo:table-cell  border=0.01pt solid
 fo:block text-align=center border=0.01pt solid
 line-height=100% 
 green cell
 /fo:block
   /fo:table-cell
 fo:table-cell
fo:block border=0.01pt solidCell 1/fo:block
  /fo:table-cell 
   fo:table-cell 
 fo:block text-align=center
 blue cell
 /fo:block
   /fo:table-cell
   fo:table-cell background-color=yellow
 fo:block text-align=center
 yellow cell
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block text-align=center
 text for an extra line in the table row
 /fo:block
   /fo:table-cell
 /fo:table-row
   /fo:table-body
   /fo:table
 
 How can I have the block height as a cell? Is possible?
 Best Regards
 --
 View this message in context: 
 http://www.nabble.com/Problem-height-block-in-table-cell-tf238
 2658.html#a6640613
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 Fabio,
 What do you want to do precisely?
 fo:block height typically depends on its content.
 If you want to align fo:table-cell content vertically, use the
 display-align property, either on a single fo:table-cell, or on the
 fo:table-row
 If you want to do something else, further info in needed.
 
 Pascal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-height-block-in-table-cell-tf2382658.html#a6654356
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Pascal Sancho pascal.sancho at takoma.fr writes:

 
  -Original Message-
  From: Lars Ivar Igesund [mailto:larsivar at igesund.net] 
  Sent: Wednesday, October 04, 2006 2:04 PM
  To: fop-users at xmlgraphics.apache.org
  Subject: Getting Mismatch: instream-foreign-object
  
  I am trying to create a PDF-document by taking a xml document 
  and put it through the transformer using xslt and fop, like this:
  
  File xsltfile = new File(baseDir, xslFile);
  File pdffile = new File(outDir, fileName);
  
  FopFactory fopFactory = FopFactory.newInstance();
  FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
  
  try {
  OutputStream out = new BufferedOutputStream(new 
  FileOutputStream(pdffile));
  
  Fop fop = 
  fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
  
  TransformerFactory factory = 
  TransformerFactory.newInstance();
  Transformer transformer = 
  factory.newTransformer(new StreamSource(xsltfile));
  
  transformer.setParameter(versionParam, 2.0);
  
  // Setup input for XSLT transformation, src from 
  servicemix
  Source src = message.getContent();
  
  Result res = new SAXResult(fop.getDefaultHandler());
  
  // Start XSLT transformation and FOP processing
  transformer.transform(src, res);
  }
  
  Most of the document consists of SVG graphics.
  
  The resulting FO document seems to be correct, but I get 
  these messages on the
  console:
  
  WARN  - FOTreeBuilder  - Mismatch: 
  instream-foreign-object 
  (http://www.w3.org/1999/XSL/Format) vs. svg 
  (http://www.w3.org/2000/svg)
  WARN  - FOTreeBuilder  - Mismatch: 
  instream-foreign-object 
  (http://www.w3.org/1999/XSL/Format) vs. block
  (http://www.w3.org/1999/XSL/Format)
  WARN  - FOTreeBuilder  - Mismatch: 
  instream-foreign-object 
  (http://www.w3.org/1999/XSL/Format) vs. flow
  (http://www.w3.org/1999/XSL/Format)
  WARN  - FOTreeBuilder  - Mismatch: 
  instream-foreign-object 
  (http://www.w3.org/1999/XSL/Format) vs. page-sequence
  (http://www.w3.org/1999/XSL/Format)
  WARN  - FOTreeBuilder  - Mismatch: 
  instream-foreign-object 
  (http://www.w3.org/1999/XSL/Format) vs. root
  (http://www.w3.org/1999/XSL/Format)
  (Location of error unknown)org.apache.fop.apps.FOPException: 
  Error(Unknown
  location): No element mapping definition found for svg:svg
  
  I use the 0.92beta version. 
  
  Where (or what) is the mismatch? I am fairly new to XSLT and 
  FO, but my xsl file is based on (lots of cut'n'paste) one 
  that used to work with the old stable releases of FOP.
  
  The instream svg starts like this in the xsl file:
  
  fo:instream-foreign-object
  svg xmlns=http://www.w3.org/2000/svg; 
  xmlns:xlink=http://www.w3.org/1999/xlink; width=425.197
  height=563.19 
  viewBox=0 0 765 1013
  
  
  Regards,
  Lars Ivar Igesund
 
 Hi,
 Can you give a simple XSL-FO file (not XSLT) that demonstrates what you
 describe here?
 
 Pascal
 

I seem to get several problems, depending on exactly how I do it. Changing SVG 
xmlns above to xmlns:svg let's FOP continue past the point where the above 
error occurs, but of course then none of the SVG tags are recognized because 
they're not prefixed with svg: Prefixing everything with svg: seems to not be a 
solution either.

I then wrote the resulting .fo to file (pasted further down, most of svg cut 
away here, but the message is the same), then tried to create the PDF directly 
from that. This however did not work either, and now with a different 
message...

WARN  - FOTreeBuilder  - Mismatch: flow 
(http://www.w3.org/1999/XSL/Format) vs. page-sequence 
(http://www.w3.org/1999/XSL/Format)
WARN  - FOTreeBuilder  - Mismatch: flow 
(http://www.w3.org/1999/XSL/Format) vs. root 
(http://www.w3.org/1999/XSL/Format)
(Location of error unknown)org.apache.fop.fo.ValidationException: Error(Unknown 
location): fo:flow is missing child elements.
Required Content Model: marker* (%block;)+

The resulting .fo file:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:svg=http://www.w3.org/2000/svg;
xmlns:fn=http://www.w3.org/2005/02/xpath-functions;
fo:layout-master-set
fo:simple-page-master margin-bottom=0cm margin-right=0cm
margin-left=0cm margin-top=0cm page-width=21cm
page-height=29.1cm master-name=simple
fo:region-body margin-right=1cm margin-left=1cm
margin-bottom=1cm margin-top=1cm /
fo:region-before 

Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 16:59, Lars Ivar Igesund wrote:
 Pascal Sancho pascal.sancho at takoma.fr writes:
   -Original Message-
   From: Lars Ivar Igesund [mailto:larsivar at igesund.net]
   Sent: Wednesday, October 04, 2006 2:04 PM
   To: fop-users at xmlgraphics.apache.org
   Subject: Getting Mismatch: instream-foreign-object
  
   I am trying to create a PDF-document by taking a xml document
   and put it through the transformer using xslt and fop, like this:
  
   File xsltfile = new File(baseDir, xslFile);
   File pdffile = new File(outDir, fileName);
  
   FopFactory fopFactory = FopFactory.newInstance();
   FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
  
   try {
 OutputStream out = new BufferedOutputStream(new
   FileOutputStream(pdffile));
  
   Fop fop =
   fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
  
   TransformerFactory factory =
   TransformerFactory.newInstance();
   Transformer transformer =
   factory.newTransformer(new StreamSource(xsltfile));
  
   transformer.setParameter(versionParam, 2.0);
  
   // Setup input for XSLT transformation, src from
   servicemix
   Source src = message.getContent();
  
   Result res = new SAXResult(fop.getDefaultHandler());
  
   // Start XSLT transformation and FOP processing
   transformer.transform(src, res);
   }
  
   Most of the document consists of SVG graphics.
  
   The resulting FO document seems to be correct, but I get
   these messages on the
   console:
  
   WARN  - FOTreeBuilder  - Mismatch:
   instream-foreign-object
   (http://www.w3.org/1999/XSL/Format) vs. svg
   (http://www.w3.org/2000/svg)
   WARN  - FOTreeBuilder  - Mismatch:
   instream-foreign-object
   (http://www.w3.org/1999/XSL/Format) vs. block
   (http://www.w3.org/1999/XSL/Format)
   WARN  - FOTreeBuilder  - Mismatch:
   instream-foreign-object
   (http://www.w3.org/1999/XSL/Format) vs. flow
   (http://www.w3.org/1999/XSL/Format)
   WARN  - FOTreeBuilder  - Mismatch:
   instream-foreign-object
   (http://www.w3.org/1999/XSL/Format) vs. page-sequence
   (http://www.w3.org/1999/XSL/Format)
   WARN  - FOTreeBuilder  - Mismatch:
   instream-foreign-object
   (http://www.w3.org/1999/XSL/Format) vs. root
   (http://www.w3.org/1999/XSL/Format)
   (Location of error unknown)org.apache.fop.apps.FOPException:
   Error(Unknown
   location): No element mapping definition found for svg:svg
  
   I use the 0.92beta version.
  
   Where (or what) is the mismatch? I am fairly new to XSLT and
   FO, but my xsl file is based on (lots of cut'n'paste) one
   that used to work with the old stable releases of FOP.
  
   The instream svg starts like this in the xsl file:
  
   fo:instream-foreign-object
 svg xmlns=http://www.w3.org/2000/svg;
   xmlns:xlink=http://www.w3.org/1999/xlink; width=425.197
 height=563.19
   viewBox=0 0 765 1013
  
  
   Regards,
   Lars Ivar Igesund
 
  Hi,
  Can you give a simple XSL-FO file (not XSLT) that demonstrates what
  you describe here?
 
  Pascal

 I seem to get several problems, depending on exactly how I do it.
 Changing SVG xmlns above to xmlns:svg let's FOP continue past the
 point where the above error occurs, but of course then none of the
 SVG tags are recognized because they're not prefixed with svg:
 Prefixing everything with svg: seems to not be a solution either.

 I then wrote the resulting .fo to file (pasted further down, most of
 svg cut away here, but the message is the same), then tried to create
 the PDF directly from that. This however did not work either, and now
 with a different message...

The fo below works just fine for me. No errors parsing, etc.. This is 
with the trunk version of fop, xerces xml parser and jdk 1.5.0_06.

What is your environment?

 WARN  - FOTreeBuilder  - Mismatch: flow
 (http://www.w3.org/1999/XSL/Format) vs. page-sequence
 (http://www.w3.org/1999/XSL/Format)
 WARN  - FOTreeBuilder  - Mismatch: flow
 (http://www.w3.org/1999/XSL/Format) vs. root
 (http://www.w3.org/1999/XSL/Format)
 (Location of error unknown)org.apache.fop.fo.ValidationException:
 Error(Unknown location): fo:flow is missing child elements.
 Required Content Model: marker* (%block;)+

 The resulting .fo file:

 ?xml version=1.0 encoding=UTF-8?
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xmlns:svg=http://www.w3.org/2000/svg;
   xmlns:fn=http://www.w3.org/2005/02/xpath-functions;
   fo:layout-master-set
   fo:simple-page-master margin-bottom=0cm margin-right=0cm
   margin-left=0cm margin-top=0cm page-width=21cm
   page-height=29.1cm master-name=simple

Re: Problem height block in table-cell

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 16:10, fabio76 wrote:
 Hi Pascal,
 my problem is this. I want to have the height of fo:block as the
 height of fo:table-cell. In the example that I attached the height
 of fo:block of the first cell is not equals to the height of
 fo:table-cell that, in this case, depend of the height of the last
 fo:block in the last fo:table-cell
 Exist a method or an attribute to set the height of fo:block to
 change the height of fo:block in the height of fo:table-cell?
 Best regards
 Fabio

Fabio,

may I ask why you want the block to be the same height as the cell? What 
particular layout effect are you after? If you tell us that may be 
there are other ways we can recommend to achieve the same effect.

 Pascal Sancho wrote:
  -Original Message-
  From: fabio76 [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 04, 2006 4:30 PM
 
  Hi all,
  I have the same problem. I have a table :
fo:table
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=2cm/
 
  fo:table-body
  fo:table-row
fo:table-cell  border=0.01pt solid
  fo:block text-align=center border=0.01pt solid
  line-height=100% 
  green cell
  /fo:block
/fo:table-cell
  fo:table-cell
   fo:block border=0.01pt solidCell 1/fo:block
 /fo:table-cell
fo:table-cell 
  fo:block text-align=center
  blue cell
  /fo:block
/fo:table-cell
fo:table-cell background-color=yellow
  fo:block text-align=center
  yellow cell
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=center
  text for an extra line in the table row
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
/fo:table
 
  How can I have the block height as a cell? Is possible?
  Best Regards
  --
  View this message in context:
  http://www.nabble.com/Problem-height-block-in-table-cell-tf238
 
  2658.html#a6640613
 
  Sent from the FOP - Users mailing list archive at Nabble.com.
 
  Fabio,
  What do you want to do precisely?
  fo:block height typically depends on its content.
  If you want to align fo:table-cell content vertically, use the
  display-align property, either on a single fo:table-cell, or on the
  fo:table-row
  If you want to do something else, further info in needed.
 
  Pascal
 
Cheers

Manuel

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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

 
 The fo below works just fine for me. No errors parsing, etc.. This is 
 with the trunk version of fop, xerces xml parser and jdk 1.5.0_06.
 
 What is your environment?

I use FOP 0.92beta, Xerces 2.6.2 and JDK 1.5.0_08 on Linux.

Regards,
Lars Ivar Igesund


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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 17:20, Lars Ivar Igesund wrote:
 Manuel Mall manuel at apache.org writes:
  The fo below works just fine for me. No errors parsing, etc.. This
  is with the trunk version of fop, xerces xml parser and jdk
  1.5.0_06.
 
  What is your environment?

 I use FOP 0.92beta, Xerces 2.6.2 and JDK 1.5.0_08 on Linux.


That's pretty much the same as me with the exception that I am using the 
latest trunk version of fop. However, I just tried your fo file against 
0.92beta and again it appears to work fine. No parsing errors Are 
you sure you don't have another xml parser somewhere the jdk picks up 
in preference to xerces?

 Regards,
 Lars Ivar Igesund

Manuel

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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

 
 On Thursday 05 October 2006 17:20, Lars Ivar Igesund wrote:
  Manuel Mall manuel at apache.org writes:
   The fo below works just fine for me. No errors parsing, etc.. This
   is with the trunk version of fop, xerces xml parser and jdk
   1.5.0_06.
  
   What is your environment?
 
  I use FOP 0.92beta, Xerces 2.6.2 and JDK 1.5.0_08 on Linux.
 
 
 That's pretty much the same as me with the exception that I am using the 
 latest trunk version of fop. However, I just tried your fo file against 
 0.92beta and again it appears to work fine. No parsing errors Are 
 you sure you don't have another xml parser somewhere the jdk picks up 
 in preference to xerces?
 

That is possible, I guess. Hmm, XPP3 is in there, and whatever ServiceMix use 
for it's XML parsing (might actually be Xerces, as I didn't put it there).

Also, when searching the net for that particular error message, I got some hits 
related to invalid documents, 
http://www.mail-archive.com/fop-dev%40xmlgraphics.apache.org/msg05025.html, 
also reasonable recent. Can it be related to validation levels?

I'm still very curious about the first issue I had, btw.

Regards,
Lars Ivar Igesund 





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



Re: FOP embed truetype font into postscript file

2006-10-05 Thread Vincent Hennebert
Nguyen, Thang a écrit :
 Seem that a lots of works ahead :-) and do you know anything about
 GhostScript http://www.ghostscript.com/awki , I just looked at it
 yesterday and I hope that I can find something useful.

Ghostscript is a tool that can convert postscript or pdf files into
image formats (PNG, JPEG), render them on screen, print them on
non-postscript printers, re-work them (extract pages, n-up printing...),
etc. While this is a very useful tool it won't interest you for that
task, excepted for visualizing generated PS files. It is perhaps capable
of extracting useful informations from postscript files, but I'm not sure.

HTH,
Vincent


 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 05, 2006 4:33 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP embed truetype font into postscript file
 
 I don't have much time right now, so I can only give you the most
 important stuff. I can give you more on the weekend, if you need more.
 
 The most important part is having the PostScript and TrueType
 specifications around:
 
 PS spec:
 http://www.adobe.com/products/postscript/pdfs/PLRM.pdf
 
 Other PS-related docs:
 http://partners.adobe.com/public/developer/ps/index_specs.html
 
 OpenType 1.4 spec (also applies to TrueType):
 http://partners.adobe.com/public/developer/opentype/index_spec.html
 http://www.microsoft.com/typography/otspec/default.htm
 
 Other font-related docs:
 http://partners.adobe.com/public/developer/opentype/index.html
 
 I'd search for Type 42 font in the PS language reference to start
 with.
 However, if you want to have all glyphs of a TrueType font available you
 have to look into the CID keyed fonts direction. I don't know anything
 about how CID handling is done in PostScript, only for PDF, so for this
 part you're pretty much on your own for now. It's probably easiest, if
 you try to find/produce a PostScript file from a different application
 that can already generate the right code for handling TrueType fonts so
 you get an idea how this is done. You might also find some helpful
 information on the web.
 
 Another important hint is that some of the PostScript code is not in FOP
 itself but in XML Graphics Commons:
 http://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/src/java/org/a
 pache/xmlgraphics/ps/
 
 Most font-specific code, however, is still in FOP because we haven't
 factored out the font library, yet. So the rest of the code will be
 here:
 http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/java/org/apach
 e/fop/render/ps/
 
 Good luck!
 
 On 04.10.2006 02:48:52 Nguyen, Thang wrote:
 It's great. Could you guide me where to start ?

 Thang.

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 03, 2006 2:49 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP embed truetype font into postscript file

 There are currently no plans to implement TrueType support for 
 PostScript output. But you're welcome to help us with that. We can 
 give you pointers to get you started if you want to jump in.

 On 03.10.2006 05:19:42 Nguyen, Thang wrote:
 hi,
  
 I can not embed ttf font into postscript file using FOP_0.92_beta. 
 The
 document ( fonts.pdf in \fop-0.92beta\docs\0.92 ) wrote that 
 Custom Embeding is enabled for PostScript file but I still can not
 do that.
  
 Do you know when will Apache support this feature ?
  
 thanks,
  
 Thang.

 
 
 Jeremias Maerki


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



RE: Keep-on-one-line problem

2006-10-05 Thread herman

Yes, that works. Thanks!

Herman


Pascal Sancho wrote:
 
 Herman,
 
 -Original Message-
 From: herman [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 04, 2006 2:18 PM
 
 Hi,
 
 Is there a bug with the keep-together.within-line=always feature?
 Something like the following has the 'formula' partly on one 
 line, partly on the next, instead of moving the entire thing 
 to the next line.

 fo:root font-family=TimesNewRoman
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-setfo:simple-page-master 
 master-name=my-page fo:region-body margin=1in/ 
 /fo:simple-page-master/fo:layout-master-setfo:page-sequence
 master-reference=my-page
 fo:flow flow-name=xsl-region-body
 fo:block font-size=12pt
 
 fo:inlineEverything within the square brackets should be 
 kept together
 ...: [fo:inline  keep-together.within-line=alwaysp amp; 
 q amp; r amp; s amp; t/fo:inline] this comes afterwards.
 /fo:inline
 /fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root
 
 Also, i don't see any warnings that it will ignore this attribute.
 Am i doing something wrong? 
 (Version: fop-0.92beta for java1.3)
 
 Many thanks in advance,
 Herman
 
 --
 View this message in context: 
 http://www.nabble.com/Keep-on-one-line-problem-tf2382012.html#a6638521
 Sent from the FOP - Users mailing list archive at Nabble.com.
 
 Keep-together is not yet implemented in FOP 0.9x -- see [1]
 As a workaround, you can replace space characters with non-break-space
 characters (#xa0;).
 
 [1]
 http://xmlgraphics.apache.org/fop/compliance.html#fo-property-keepsbreak
 s-section
 
 Pascal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Keep-on-one-line-problem-tf2382012.html#a6655982
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 17:50, Lars Ivar Igesund wrote:
 Manuel Mall manuel at apache.org writes:
  On Thursday 05 October 2006 17:20, Lars Ivar Igesund wrote:
   Manuel Mall manuel at apache.org writes:
The fo below works just fine for me. No errors parsing, etc..
This is with the trunk version of fop, xerces xml parser and
jdk 1.5.0_06.
   
What is your environment?
  
   I use FOP 0.92beta, Xerces 2.6.2 and JDK 1.5.0_08 on Linux.
 
  That's pretty much the same as me with the exception that I am
  using the latest trunk version of fop. However, I just tried your
  fo file against 0.92beta and again it appears to work fine. No
  parsing errors Are you sure you don't have another xml parser
  somewhere the jdk picks up in preference to xerces?

 That is possible, I guess. Hmm, XPP3 is in there, and whatever
 ServiceMix use for it's XML parsing (might actually be Xerces, as I
 didn't put it there).

 Also, when searching the net for that particular error message, I got
 some hits related to invalid documents,
 http://www.mail-archive.com/fop-dev%40xmlgraphics.apache.org/msg05025
.html, also reasonable recent. Can it be related to validation levels?

 I'm still very curious about the first issue I had, btw.


If I followed this correctly your first issue was the error message:

WARN  - FOTreeBuilder                  - Mismatch: 
instream-foreign-object 
(http://www.w3.org/1999/XSL/Format) vs. svg (http://www.w3.org/2000/svg)

You then removed the xslt translation and concentrated only on the .fo. 
In the end you posted an .fo which works for me but not for you, that 
is it is still throwing a similar error.

My 'gut' feel is that its one and the same problem. Your XML parser gets 
confused with the namespaces. If you get the simple .fo working in your 
environment then the rest will likely work as well.

 Regards,
 Lars Ivar Igesund


Manuel

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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

 
  That is possible, I guess. Hmm, XPP3 is in there, and whatever
  ServiceMix use for it's XML parsing (might actually be Xerces, as I
  didn't put it there).
 
  Also, when searching the net for that particular error message, I got
  some hits related to invalid documents,
  http://www.mail-archive.com/fop-dev%40xmlgraphics.apache.org/msg05025
 .html, also reasonable recent. Can it be related to validation levels?
 
  I'm still very curious about the first issue I had, btw.
 
 
 If I followed this correctly your first issue was the error message:
 
 WARN  - FOTreeBuilder                  - Mismatch: 
 instream-foreign-object 
 (http://www.w3.org/1999/XSL/Format) vs. svg (http://www.w3.org/2000/svg)
 
 You then removed the xslt translation and concentrated only on the .fo. 
 In the end you posted an .fo which works for me but not for you, that 
 is it is still throwing a similar error.
 
 My 'gut' feel is that its one and the same problem. Your XML parser gets 
 confused with the namespaces. If you get the simple .fo working in your 
 environment then the rest will likely work as well.
 

I was of the impression (could be wrong of course), that this message 
(following the Mismatch warnings) was more relevant/important.

(Location of error unknown)org.apache.fop.apps.FOPException: Error(Unknown 
location): No element mapping definition found for svg:svg

As far as I can tell from the exception stack traces, Xerces is used, btw.

Is a binary snapshot of trunk available?

Regards,
Lars Ivar Igesund






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



RE: Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Pascal Sancho
 -Original Message-
 From: Lars Ivar Igesund [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 05, 2006 12:58 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: Getting Mismatch: instream-foreign-object
 
 Manuel Mall manuel at apache.org writes:
 
  
   That is possible, I guess. Hmm, XPP3 is in there, and whatever 
   ServiceMix use for it's XML parsing (might actually be 
 Xerces, as I 
   didn't put it there).
  
   Also, when searching the net for that particular error message, I 
  got  some hits related to invalid documents,
   
  
 http://www.mail-archive.com/fop-dev%40xmlgraphics.apache.org/msg05025
  .html, also reasonable recent. Can it be related to 
 validation levels?
  
   I'm still very curious about the first issue I had, btw.
  
  
  If I followed this correctly your first issue was the error message:
  
  WARN  - FOTreeBuilder                  - Mismatch: 
  instream-foreign-object
  (http://www.w3.org/1999/XSL/Format) vs. svg 
  (http://www.w3.org/2000/svg)
  
  You then removed the xslt translation and concentrated only 
 on the .fo. 
  In the end you posted an .fo which works for me but not for 
 you, that 
  is it is still throwing a similar error.
  
  My 'gut' feel is that its one and the same problem. Your XML parser 
  gets confused with the namespaces. If you get the simple 
 .fo working 
  in your environment then the rest will likely work as well.
  
 
 I was of the impression (could be wrong of course), that this 
 message (following the Mismatch warnings) was more relevant/important.
 
 (Location of error unknown)org.apache.fop.apps.FOPException: 
 Error(Unknown
 location): No element mapping definition found for svg:svg
 
 As far as I can tell from the exception stack traces, Xerces 
 is used, btw.
 
 Is a binary snapshot of trunk available?
 
 Regards,
 Lars Ivar Igesund

Hi,
No TRUNK snapshot available.
But it is easy to build it yourself from SVN repository (see [1])

BTW, your XSL-FO code is OK both with FOP 0.92b and FOP TRUNK, as Manual said 
it.

[1] http://xmlgraphics.apache.org/fop/trunk/compiling.html

Pascal

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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 18:57, Lars Ivar Igesund wrote:
 Manuel Mall manuel at apache.org writes:
   That is possible, I guess. Hmm, XPP3 is in there, and whatever
   ServiceMix use for it's XML parsing (might actually be Xerces, as
   I didn't put it there).
  
   Also, when searching the net for that particular error message, I
   got some hits related to invalid documents,
   http://www.mail-archive.com/fop-dev%40xmlgraphics.apache.org/msg0
  5025 .html, also reasonable recent. Can it be related to
   validation levels?
  
   I'm still very curious about the first issue I had, btw.
 
  If I followed this correctly your first issue was the error
  message:
 
  WARN  - FOTreeBuilder                  - Mismatch:
  instream-foreign-object
  (http://www.w3.org/1999/XSL/Format) vs. svg
  (http://www.w3.org/2000/svg)
 
  You then removed the xslt translation and concentrated only on the
  .fo. In the end you posted an .fo which works for me but not for
  you, that is it is still throwing a similar error.
 
  My 'gut' feel is that its one and the same problem. Your XML parser
  gets confused with the namespaces. If you get the simple .fo
  working in your environment then the rest will likely work as well.

 I was of the impression (could be wrong of course), that this message
 (following the Mismatch warnings) was more relevant/important.

 (Location of error unknown)org.apache.fop.apps.FOPException:
 Error(Unknown location): No element mapping definition found for
 svg:svg

 As far as I can tell from the exception stack traces, Xerces is used,
 btw.

 Is a binary snapshot of trunk available?

No, but given that 0.92beta works for me under Linux I still think 
something else is wrong.

Assuming you have a 'vanilla' 0.92beta installion available, that is 
just the .tar.gz file expanded into its own (fop-0.92beta) directory 
without any customizations. Now cd to that directory put the .fo 
snippet into the same directory as let's say svg.fo and then run
./fop svg.fo svg.pdf. This is what I did and it works fine. If that 
doesn't work do
export FOP_OPTS=-verbose:class
./fop svg.fo svg.pdf
this will dump all classloading activity.

If it helps I can e-mail you the output I get for comparison.


 Regards,
 Lars Ivar Igesund


Manuel

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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

 
 
 No, but given that 0.92beta works for me under Linux I still think 
 something else is wrong.
 
 Assuming you have a 'vanilla' 0.92beta installion available, that is 
 just the .tar.gz file expanded into its own (fop-0.92beta) directory 
 without any customizations. Now cd to that directory put the .fo 
 snippet into the same directory as let's say svg.fo and then run
 ./fop svg.fo svg.pdf. This is what I did and it works fine. If that 
 doesn't work do
 export FOP_OPTS=-verbose:class
 ./fop svg.fo svg.pdf
 this will dump all classloading activity.
 
 If it helps I can e-mail you the output I get for comparison.
 

Ok, doing it this way works for me too. How can I set up -verbose in an 
embedded setting?

Thank you very much so far, btw.

Regards,
Lars Ivar Igesund



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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Manuel Mall
On Thursday 05 October 2006 20:24, Lars Ivar Igesund wrote:
 Manuel Mall manuel at apache.org writes:
  No, but given that 0.92beta works for me under Linux I still think
  something else is wrong.
 
  Assuming you have a 'vanilla' 0.92beta installion available, that
  is just the .tar.gz file expanded into its own (fop-0.92beta)
  directory without any customizations. Now cd to that directory put
  the .fo snippet into the same directory as let's say svg.fo and
  then run ./fop svg.fo svg.pdf. This is what I did and it works
  fine. If that doesn't work do
  export FOP_OPTS=-verbose:class
  ./fop svg.fo svg.pdf
  this will dump all classloading activity.
 
  If it helps I can e-mail you the output I get for comparison.

 Ok, doing it this way works for me too. How can I set up -verbose in
 an embedded setting?

 Thank you very much so far, btw.


OK, its not a FOP problem then.

The -verbose:class option is NOT a FOP option but an option on the Java 
VM. You need to set it in the script that starts your embedded 
environment. My guess is that setting it in the embedded environment 
will give you a huge output which may be difficult to diagnose.

I still think you have a 'dodgy' XML parser or XSLT engine in your 
embedded environment. How does your environment start, where does it 
gets its classpath / jars from, ... You may have to dig into that.

 Regards,
 Lars Ivar Igesund


Manuel

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



Re: FOP embed truetype font into postscript file

2006-10-05 Thread Vincent Hennebert
(Replied to on the fop-dev mailing list, as this is becoming pretty much
code-related:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200610.mbox/[EMAIL 
PROTECTED]
)

Nguyen, Thang a écrit :
 Now I'm drown in PostScript specification :), could you tell how or where can 
 I find documents on the way FOP uses font metric file  embeded font with pdf 
 ouput, and what's the current way of FOP deals with font metric file  
 post-script output. I hope that someone can help me, it would be a lots more 
 easier than looking at the source code.
 
 thanks,
 
 Thang.
 
 -Original Message-
 From: Vincent Hennebert [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 05, 2006 5:06 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP embed truetype font into postscript file
 
 Nguyen, Thang a écrit :
 Seem that a lots of works ahead :-) and do you know anything about 
 GhostScript http://www.ghostscript.com/awki , I just looked at it 
 yesterday and I hope that I can find something useful.
 
 Ghostscript is a tool that can convert postscript or pdf files into image 
 formats (PNG, JPEG), render them on screen, print them on non-postscript 
 printers, re-work them (extract pages, n-up printing...), etc. While this is 
 a very useful tool it won't interest you for that task, excepted for 
 visualizing generated PS files. It is perhaps capable of extracting useful 
 informations from postscript files, but I'm not sure.
 
 HTH,
 Vincent
 
 
 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
 Sent: Thursday, October 05, 2006 4:33 AM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP embed truetype font into postscript file

 I don't have much time right now, so I can only give you the most 
 important stuff. I can give you more on the weekend, if you need more.

 The most important part is having the PostScript and TrueType 
 specifications around:

 PS spec:
 http://www.adobe.com/products/postscript/pdfs/PLRM.pdf

 Other PS-related docs:
 http://partners.adobe.com/public/developer/ps/index_specs.html

 OpenType 1.4 spec (also applies to TrueType):
 http://partners.adobe.com/public/developer/opentype/index_spec.html
 http://www.microsoft.com/typography/otspec/default.htm

 Other font-related docs:
 http://partners.adobe.com/public/developer/opentype/index.html

 I'd search for Type 42 font in the PS language reference to start 
 with.
 However, if you want to have all glyphs of a TrueType font available 
 you have to look into the CID keyed fonts direction. I don't know 
 anything about how CID handling is done in PostScript, only for PDF, 
 so for this part you're pretty much on your own for now. It's probably 
 easiest, if you try to find/produce a PostScript file from a different 
 application that can already generate the right code for handling 
 TrueType fonts so you get an idea how this is done. You might also 
 find some helpful information on the web.

 Another important hint is that some of the PostScript code is not in 
 FOP itself but in XML Graphics Commons:
 http://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/src/java/org
 /a
 pache/xmlgraphics/ps/

 Most font-specific code, however, is still in FOP because we haven't 
 factored out the font library, yet. So the rest of the code will be
 here:
 http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/java/org/apa
 ch
 e/fop/render/ps/

 Good luck!

 On 04.10.2006 02:48:52 Nguyen, Thang wrote:
 It's great. Could you guide me where to start ?

 Thang.

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 03, 2006 2:49 PM
 To: fop-users@xmlgraphics.apache.org
 Subject: Re: FOP embed truetype font into postscript file

 There are currently no plans to implement TrueType support for 
 PostScript output. But you're welcome to help us with that. We can 
 give you pointers to get you started if you want to jump in.

 On 03.10.2006 05:19:42 Nguyen, Thang wrote:
 hi,
  
 I can not embed ttf font into postscript file using FOP_0.92_beta. 
 The
 document ( fonts.pdf in \fop-0.92beta\docs\0.92 ) wrote that 
 Custom Embeding is enabled for PostScript file but I still can not
 do that.
  
 Do you know when will Apache support this feature ?
  
 thanks,
  
 Thang.


 Jeremias Maerki


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



Re: Problem height block in table-cell

2006-10-05 Thread fabio76

Hi,
I want that the block to be the same height as the cell because I want to
create a border left of a block, not of a cell
I attached the example
 fo:table
   fo:table-column column-width=1cm/
   fo:table-column column-width=3cm/
   fo:table-body
 fo:table-row
fo:table-cell 
  fo:block font-family=Helvetica font-size=10pt 
font-weight=normal
space-before.optimum=2pt space-after.optimum=2pt text-align=left
  fo:block-container  left=-20pt  position=absolute 
   fo:block border-left-style=solid border-left-color=black
border-left width=3pt
  #160;
   /fo:block
  /fo:block-container 
  -
/fo:block
  /fo:table-cell
  fo:table-cell 
fo:block font-family=Helvetica font-size=10pt  
text-align=left
text for an extra line in the table row
/fo:block
  /fo:table-cell
 /fo:table-row
   /fo:table-body
/fo:table


The problem is that the height of the left border, in the first cell, is not
high as the second block in the second cell and the border left of the first
cell must be equals to the height of a cell.
Fabio




Manuel Mall-2 wrote:
 
 On Thursday 05 October 2006 16:10, fabio76 wrote:
 Hi Pascal,
 my problem is this. I want to have the height of fo:block as the
 height of fo:table-cell. In the example that I attached the height
 of fo:block of the first cell is not equals to the height of
 fo:table-cell that, in this case, depend of the height of the last
 fo:block in the last fo:table-cell
 Exist a method or an attribute to set the height of fo:block to
 change the height of fo:block in the height of fo:table-cell?
 Best regards
 Fabio

 Fabio,
 
 may I ask why you want the block to be the same height as the cell? What 
 particular layout effect are you after? If you tell us that may be 
 there are other ways we can recommend to achieve the same effect.
 
 Pascal Sancho wrote:
  -Original Message-
  From: fabio76 [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 04, 2006 4:30 PM
 
  Hi all,
  I have the same problem. I have a table :
fo:table
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=3cm/
fo:table-column column-width=2cm/
 
  fo:table-body
  fo:table-row
fo:table-cell  border=0.01pt solid
  fo:block text-align=center border=0.01pt solid
  line-height=100% 
  green cell
  /fo:block
/fo:table-cell
  fo:table-cell
  fo:block border=0.01pt solidCell 1/fo:block
/fo:table-cell
fo:table-cell 
  fo:block text-align=center
  blue cell
  /fo:block
/fo:table-cell
fo:table-cell background-color=yellow
  fo:block text-align=center
  yellow cell
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=center
  text for an extra line in the table row
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
/fo:table
 
  How can I have the block height as a cell? Is possible?
  Best Regards
  --
  View this message in context:
  http://www.nabble.com/Problem-height-block-in-table-cell-tf238
 
  2658.html#a6640613
 
  Sent from the FOP - Users mailing list archive at Nabble.com.
 
  Fabio,
  What do you want to do precisely?
  fo:block height typically depends on its content.
  If you want to align fo:table-cell content vertically, use the
  display-align property, either on a single fo:table-cell, or on the
  fo:table-row
  If you want to do something else, further info in needed.
 
  Pascal
 
 Cheers
 
 Manuel
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-height-block-in-table-cell-tf2382658.html#a6660253
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

  Ok, doing it this way works for me too. How can I set up -verbose in
  an embedded setting?
 
  Thank you very much so far, btw.
 
 
 OK, its not a FOP problem then.
 
 The -verbose:class option is NOT a FOP option but an option on the Java 
 VM. You need to set it in the script that starts your embedded 
 environment. My guess is that setting it in the embedded environment 
 will give you a huge output which may be difficult to diagnose.
 
 I still think you have a 'dodgy' XML parser or XSLT engine in your 
 embedded environment. How does your environment start, where does it 
 gets its classpath / jars from, ... You may have to dig into that.
 

I have now tried several things, and as far as I can see, the exact same 
libraries are used in both situations. I still get the No element mapping 
definition found for svg:svg error, though. I was able to extract a stack 
trace though, and it looks like this (when using the .fo file presented 
earlier, doing the full conversion only presents me with the error message, no 
stacktrace):

org.apache.fop.apps.FOPException: 
file:///home/foo/bar/apache-servicemix-3.0-M2-incubating/examples/foo/./myfodoc
.fo:25:39: 
Error(25/39): No element mapping definition found for svg:svg
at 
org.apache.fop.fo.ElementMappingRegistry.findFOMaker(
ElementMappingRegistry.java:144)
at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:214)
at org.apache.fop.fo.FOTreeBuilder.access$200(FOTreeBuilder.java:49)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(
FOTreeBuilder.java:310)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(
TransformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(
TransformerIdentityImpl.java:484)
at 
com.foo.bar.client.message.handlers.GeneralHandler.handle(
GeneralHandler.java:74)

When searching around a bit, I found 
http://comments.gmane.org/gmane.text.xml.fop.user/20677
which suggests that it might be a multithreading issue (although it 
consistently don't work with me). My component embedding FOP is deployed on 
Apache ServiceMix, and it is a heavily multithreaded environment. Why this 
should affect anything, I don't know though. Note that xalan and xerces are the 
xml/xslt libs used by ServiceMix. Anyway, I have tried building FOP (and 
xmlgraphics/commons) from trunk, and no difference at all. I am a bit stumped, 
to say the least. Still hoping for _the_ answer. Thanks.

Regards,
Lars Ivar Igesund



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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:

 I still think you have a 'dodgy' XML parser or XSLT engine in your 
 embedded environment. How does your environment start, where does it 
 gets its classpath / jars from, ... You may have to dig into that.

Just another discovery, commenting out svg from my .fo file, completes the 
generation of my .pdf. Trying the embedding.fo (with svg) from the fop 
distribution exhibits the same errors in my ServiceMix environ.

Regards,
Lars Ivar Igesund


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



Re: Getting Mismatch: instream-foreign-object

2006-10-05 Thread Lars Ivar Igesund
Manuel Mall manuel at apache.org writes:


 
 OK, its not a FOP problem then.
 
 The -verbose:class option is NOT a FOP option but an option on the Java 
 VM. You need to set it in the script that starts your embedded 
 environment. My guess is that setting it in the embedded environment 
 will give you a huge output which may be difficult to diagnose.
 
 I still think you have a 'dodgy' XML parser or XSLT engine in your 
 embedded environment. How does your environment start, where does it 
 gets its classpath / jars from, ... You may have to dig into that.

Ok, some more debugging shows that the mapping.getTable() call in 
ElementMappingRegistry.addMapping() returns null for the SVG and Batik 
elementmappings in my setting, which explains the error message I get. Why it 
returns null, I've not been able to figure out yet, though. The ElementMappings 
themselves seems to be ok, and so does the namespaceUri.

Regards,
Lars Ivar Igesund




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