From: Giuseppe G. <giu...@ag...> - 2003-05-29 16:32:31
|
Hi all, I'm new to xmlroff... I'm interested in xmlroff since it is the only FO processor written in C... (fop is written in Java, and I don't like Java stuff, and passiveTeX has problems when rendering tables). Well, I've downloaded, compiled, and installed all the required modules (PangoPDF, PDFLib, etc.), and of course, xmlroff itself without problems... but I'm not able to process any xml file. I've tried to process a FO file generated with xsltproc: xmlroff -o myfile.pdf myfile.fo ... but xmlroff never returns and at the end my PC simply goes down... I get a number of error messages like this: (process:1424): libfo-CRITICAL **: fo-fo-error: FoMarker not allowed as child of FoBlock Object path: /FoTree[1]/root[1]/page-sequence[1]/flow[1]/FoBlock[1] /FoBlock[1]/FoBlock[1]/FoBlock[1]/FoBlock[1]/FoMarker[1] Does anybody know how to solve this problem? Gius_. -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |
From: Tony G. <Ton...@Su...> - 2003-05-30 14:22:54
|
Giuseppe Greco wrote at 29 May 2003 18:32:15 +0200: > I'm new to xmlroff... As is everybody else (except me). > I'm interested in xmlroff since it is the only FO > processor written in C... (fop is written in Java, and I The main reason why xmlroff is written in C is because at the time I started there was no other open source XSL processor written in C. > don't like Java stuff, and passiveTeX has problems when > rendering tables). > > Well, I've downloaded, compiled, and installed all the > required modules (PangoPDF, PDFLib, etc.), and of course, > xmlroff itself without problems... but I'm not able to > process any xml file. I'm glad that you were able to compile it okay. Can you process xmlroff.fo from the xmlroff distribution? > I've tried to process a FO file generated with xsltproc: > > xmlroff -o myfile.pdf myfile.fo > > ... but xmlroff never returns and at the end my PC simply > goes down... > > I get a number of error messages like this: > > (process:1424): libfo-CRITICAL **: fo-fo-error: > FoMarker not allowed as child of FoBlock > Object path: /FoTree[1]/root[1]/page-sequence[1]/flow[1]/FoBlock[1] > /FoBlock[1]/FoBlock[1]/FoBlock[1]/FoBlock[1]/FoMarker[1] > > Does anybody know how to solve this problem? The problem is that xmlroff does not yet support markers. The partial solution is to park markers in a GList attached to the FO containing the marker (and I added an FoMarkerParent type to do this), but it hasn't been fully implemented since I've spent my recent time getting xmlroff to work with GNOME Print instead of PDFlib. The solution to your problem is to implement marker support. Please file a bug report or enhancement request on SourForge about xmlroff not supporting markers. Ways to get around the lack of marker support include: - Don't generate them - Write a stylesheet to filter them out of your .fo files - Work on marker support yourself In the interim, since xmlroff doesn't support markers, I regret that your output would not look as you expect anyway. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Giuseppe G. <giu...@ag...> - 2003-05-30 17:47:52
|
Tony, > Can you process xmlroff.fo from the xmlroff distribution? Yes, I can process it without problems. > > > I've tried to process a FO file generated with xsltproc: > > > > xmlroff -o myfile.pdf myfile.fo > > > > ... but xmlroff never returns and at the end my PC simply > > goes down... > > > > I get a number of error messages like this: > > > > (process:1424): libfo-CRITICAL **: fo-fo-error: > > FoMarker not allowed as child of FoBlock > > Object path: /FoTree[1]/root[1]/page-sequence[1]/flow[1]/FoBlock[1] > > /FoBlock[1]/FoBlock[1]/FoBlock[1]/FoBlock[1]/FoMarker[1] > > > > Does anybody know how to solve this problem? > > The problem is that xmlroff does not yet support markers. > > The partial solution is to park markers in a GList attached to the FO > containing the marker (and I added an FoMarkerParent type to do this), > but it hasn't been fully implemented since I've spent my recent time > getting xmlroff to work with GNOME Print instead of PDFlib. > > The solution to your problem is to implement marker support. > > Please file a bug report or enhancement request on SourForge about > xmlroff not supporting markers. OK, I'll do that... > > Ways to get around the lack of marker support include: > > - Don't generate them > > - Write a stylesheet to filter them out of your .fo files > > - Work on marker support yourself > > In the interim, since xmlroff doesn't support markers, I regret that > your output would not look as you expect anyway. The problem is that I use the DocBook stylesheets, and customize them is not so trivial... Do you think xmlroff will be distributed as the standard FO processor with GNOME just like xsltproc? Gius_. > > Regards, > > > Tony Graham > ------------------------------------------------------------------------ > XML Technology Center - Dublin > Sun Microsystems Ireland Ltd Phone: +353 1 8199708 > Hamilton House, East Point Business Park, Dublin 3 x(70)19708 > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > xmlroff-list mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlroff-list -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |
From: Tony G. <Ton...@Su...> - 2003-05-30 20:24:22
|
Giuseppe Greco wrote at 30 May 2003 19:31:37 +0200: > > Can you process xmlroff.fo from the xmlroff distribution? > > Yes, I can process it without problems. Good. ... > > The solution to your problem is to implement marker support. > > > > Please file a bug report or enhancement request on SourForge about > > xmlroff not supporting markers. > > OK, I'll do that... Good. (Not having to do it would be better, but registering your need is still good.) ... > > In the interim, since xmlroff doesn't support markers, I regret that > > your output would not look as you expect anyway. > > The problem is that I use the DocBook stylesheets, and customize them > is not so trivial... But an identity stylesheet for post-processing the output .fo files with: <xsl:template match="fo:marker"/> is pretty easy. > Do you think xmlroff will be distributed as the standard FO processor > with GNOME just like xsltproc? I wish. I think that xmlroff has to prove its worth (and lose its dependence on PDFlib) before becoming "standard", for any definition of "standard FO processor". Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Giuseppe G. <giu...@ag...> - 2003-05-30 21:24:14
|
Tony, > But an identity stylesheet for post-processing the output .fo files > with: > > <xsl:template match="fo:marker"/> > I've tried this... and xmlroff doesn't kill my machine anymore, but I'm still not able to process my documents successfully. I get the following error messages: --------------------------------------------------------------------- [genius@gonzo temp]$ xmlroff -o csharp-coding-guidelines-0.1.1.pdf \ csharp-coding-guidelines-0.1.1.fo quxo.xsl error xsltCompileStepPattern : no namespace bound to prefix fo compilation error: file quxo.xsl element template xsltCompilePattern : failed to compile 'fo:marker' libfo-ERROR **: Text node should contain only whitespace characters: "C# Coding GuidelinesC# Coding GuidelinesC# Coding GuidelinesGiuseppe Greco<giu...@ag...>0.1.1Copyright ? 2003 Agamura Inc. Permission is granted to copy, distribute and/or modify this document ... aborting... Aborted --------------------------------------------------------------------- By the way, I've added an enhancement request to the SourceForge tracking system. Gius_. -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |
From: Tony G. <Ton...@Su...> - 2003-06-02 21:51:29
|
Giuseppe Greco wrote at 30 May 2003 23:18:40 +0200: > > But an identity stylesheet for post-processing the output .fo files > > with: > > > > <xsl:template match="fo:marker"/> ... > error > xsltCompileStepPattern : no namespace bound to prefix fo > compilation error: file quxo.xsl element template > xsltCompilePattern : failed to compile 'fo:marker' It looks like you didn't declare the namespace for the 'fo' prefix. Try this (although you may not want the xsl:strip-space): ------------------------------------------------------------ <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> <xsl:output method="xml"/> <xsl:strip-space elements="*"/> <xsl:template match="fo:marker"/> <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet> ------------------------------------------------------------ Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Giuseppe G. <giu...@ag...> - 2003-06-06 15:45:44
|
Tony, > > It looks like you didn't declare the namespace for the 'fo' prefix. > > Try this (although you may not want the xsl:strip-space): > > ------------------------------------------------------------ > <?xml version="1.0" encoding="utf-8"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format" > version="1.0"> > > <xsl:output method="xml"/> > > <xsl:strip-space elements="*"/> > > <xsl:template match="fo:marker"/> > > <xsl:template match="*"> > <xsl:copy> > <xsl:copy-of select="@*"/> > <xsl:apply-templates/> > </xsl:copy> > </xsl:template> > > </xsl:stylesheet> I've tried this, but it still doesn't work... Now I get the following error message: (process:3645): libfo-WARNING **: Unsupported property: Not a GObject: 0x854f1d8 Gius_. -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |
From: Tony G. <Ton...@Su...> - 2003-06-06 16:35:30
|
Giuseppe Greco wrote at 6 Jun 2003 17:45:28 +0200: > > It looks like you didn't declare the namespace for the 'fo' prefix. ... > I've tried this, but it still doesn't work... > Now I get the following error message: > > (process:3645): libfo-WARNING **: Unsupported property: > Not a GObject: 0x854f1d8 Well, that's progress of a sort: now libxslt has no complaints and you're dealing only with libfo. You are using a property that xmlroff does not yet support (but you knew that from the error message, I'm sure). However, an unsupported property should have been ignored rather than having a non-object where you had a non-object. It seems likely that it's a marker-related property, but I can be sure. Can you make the smallest example you can that demonstrates the error and post it on SourceForge? Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Giuseppe G. <giu...@ag...> - 2003-06-07 18:34:36
|
Tony, On Fri, 2003-06-06 at 18:37, Tony Graham wrote: > Giuseppe Greco wrote at 6 Jun 2003 17:45:28 +0200: > > > It looks like you didn't declare the namespace for the 'fo' prefix. > ... > > I've tried this, but it still doesn't work... > > Now I get the following error message: > > > > (process:3645): libfo-WARNING **: Unsupported property: > > Not a GObject: 0x854f1d8 > > Well, that's progress of a sort: now libxslt has no complaints and > you're dealing only with libfo. > > You are using a property that xmlroff does not yet support (but you > knew that from the error message, I'm sure). > > However, an unsupported property should have been ignored rather than > having a non-object where you had a non-object. > > It seems likely that it's a marker-related property, but I can be > sure. > > Can you make the smallest example you can that demonstrates the error > and post it on SourceForge? Of course! Do you mean a small .fo file, a small .xml file, or both? > > Regards, > > > Tony Graham > ------------------------------------------------------------------------ > XML Technology Center - Dublin > Sun Microsystems Ireland Ltd Phone: +353 1 8199708 > Hamilton House, East Point Business Park, Dublin 3 x(70)19708 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > xmlroff-list mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlroff-list -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |
From: Tony G. <Ton...@Su...> - 2003-06-10 16:02:31
|
Giuseppe Greco wrote at 7 Jun 2003 20:34:21 +0200: > On Fri, 2003-06-06 at 18:37, Tony Graham wrote: ... > > Can you make the smallest example you can that demonstrates the error > > and post it on SourceForge? > > Of course! Do you mean a small .fo file, a small .xml file, or both? .fo, please. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Giuseppe G. <giu...@ag...> - 2003-06-28 14:36:40
|
Tony, sorry for the delay... On Tue, 2003-06-10 at 18:04, Tony Graham wrote: > Giuseppe Greco wrote at 7 Jun 2003 20:34:21 +0200: > > On Fri, 2003-06-06 at 18:37, Tony Graham wrote: > ... > > > Can you make the smallest example you can that demonstrates the error > > > and post it on SourceForge? > > > > Of course! Do you mean a small .fo file, a small .xml file, or both? > > .fo, please. done! Gius_. > > Regards, > > > Tony Graham > ------------------------------------------------------------------------ > XML Technology Center - Dublin > Sun Microsystems Ireland Ltd Phone: +353 1 8199708 > Hamilton House, East Point Business Park, Dublin 3 x(70)19708 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > xmlroff-list mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlroff-list -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: giu...@ag... web: www.agamura.com ---------------------------------------- |