From: Tim W. <tw...@re...> - 2005-03-09 14:51:17
|
Hi, I just got a link error from rebuilding xmlroff 0.3.2, and it was due to the pangoxsl RPM spec file missing this line in the file manifest for the devel package: %{_libdir}/*.so Tim. */ |
From: Tony G. <Ton...@Su...> - 2005-03-09 15:26:25
|
Tim Waugh <tw...@re...> writes: > I just got a link error from rebuilding xmlroff 0.3.2, and it was due > to the pangoxsl RPM spec file missing this line in the file manifest > for the devel package: > > %{_libdir}/*.so I'm afraid that RPM spec files are just voodoo to me (and not my favourite form of voodoo at that). If it weren't for you, we wouldn't have them at all. Thank you for your interest in providing and using the RPM spec files. Can you now verify whether the patch below adds the incantation in the right place? Regards, Tony. Index: pangoxsl.spec.in =================================================================== RCS file: /cvsroot/pangopdf/pangoxsl/pangoxsl.spec.in,v retrieving revision 1.2 retrieving revision 1.3 diff -r1.2 -r1.3 58a59 > %{_libdir}/*.so 63a65,67 > * Wed Mar 09 2005 Tony Graham <ton...@us...> > - Added missing *.so to 'files devel' (Tim Waugh) > |
From: Tim W. <tw...@re...> - 2005-03-09 15:43:44
|
On Wed, Mar 09, 2005 at 03:26:46PM +0000, Tony Graham wrote: > I'm afraid that RPM spec files are just voodoo to me (and not my > favourite form of voodoo at that). If it weren't for you, we wouldn't > have them at all.=20 Heh :-) > Thank you for your interest in providing and using > the RPM spec files. Can you now verify whether the patch below adds > the incantation in the right place? Yes, that looks right. I've not been following xmlroff very much until just recently I'm afraid, what with other commitments. I'm now looking at it again to see what it can do now that it couldn't last time I looked. :-) I realise that it can't process the docbook-xsl FO stylesheet output yet, but I was wonder if it's possible to make a simple stylesheet for DocBook to XSL-FO that xmlroff *would* be able to process, either right now or in the not too distant future. What do you think? Tim. */ |
From: Stefan S. <se...@sy...> - 2005-03-09 15:52:50
|
Tim Waugh wrote: > I've not been following xmlroff very much until just recently I'm > afraid, what with other commitments. I'm now looking at it again to > see what it can do now that it couldn't last time I looked. :-) > > I realise that it can't process the docbook-xsl FO stylesheet output > yet, but I was wonder if it's possible to make a simple stylesheet for > DocBook to XSL-FO that xmlroff *would* be able to process, either > right now or in the not too distant future. > > What do you think? I'm not sure that this is an easy task. However, I agree that docbook-to-pdf processing provides a nice (and wildly popular) use case. In this light, would it be possible to set up a benchmark, i.e. turning the test suite into a progress meter so people can see how xmlroff gets closer to that goal ? Sorry, I'v ment to help a bit with the testing infrastructure before. May be I could look into this ? Regards, Stefan |
From: Tim W. <tw...@re...> - 2005-03-09 16:09:33
|
On Wed, Mar 09, 2005 at 10:51:40AM -0500, Stefan Seefeld wrote: > I'm not sure that this is an easy task. > However, I agree that docbook-to-pdf processing provides a nice > (and wildly popular) use case. In this light, would it be possible > to set up a benchmark, i.e. turning the test suite into a progress > meter so people can see how xmlroff gets closer to that goal ? I think that once it is possible to process DocBook documents at all using xmlroff, it will become apparent quite quickly which bits are missing. Hopefully this will speed up the rate at which developers discover and contribute to xmlroff. :-) There is an interesting file shipped with xmlroff: /usr/share/xml/libfo-0.3.1/libfo-compat.xsl Unfortunately, I tried applying that stylesheet to a docbook-xsl-generated XSL-FO file but didn't notice much difference in the warnings and errors generated. The particular sorts of DocBook documents I'm interested in getting xmlroff going with are the Fedora Core documentation manuals. (These actually contain a subset of DocBook tags, not the full set.) Tim. */ |
From: Tony G. <Ton...@Su...> - 2005-03-09 16:00:19
|
Tim Waugh <tw...@re...> writes: > On Wed, Mar 09, 2005 at 03:26:46PM +0000, Tony Graham wrote: ... > I've not been following xmlroff very much until just recently I'm > afraid, what with other commitments. I'm now looking at it again to > see what it can do now that it couldn't last time I looked. :-) > > I realise that it can't process the docbook-xsl FO stylesheet output > yet, but I was wonder if it's possible to make a simple stylesheet for > DocBook to XSL-FO that xmlroff *would* be able to process, either > right now or in the not too distant future. > > What do you think? It's called 'libfo-compat.xsl' and should be installed when you install xmlroff. It munges or drops stuff that xmlroff doesn't yet support. It's really just a rename of the stylesheet I did to get output from the samples from the XML 2003 XSL-FO town hall and is still a bit too specific to those samples (down to matching values of some shorthands used in the samples). Patches to libfo-compat.xsl would be accepted. Regards, Tony. |
From: Tim W. <tw...@re...> - 2005-03-09 16:14:44
|
On Wed, Mar 09, 2005 at 04:00:41PM +0000, Tony Graham wrote: > It's called 'libfo-compat.xsl' and should be installed when you > install xmlroff. I spotted that just after I sent my message. Unfortunately it didn't get me very far. :-( $ xmlto fo test.xml Making portrait pages on A4 paper (210mmx297mm) $ xsltproc /usr/share/xml/libfo-0.3.1/libfo-compat.xsl test.fo > compat.fo $ xmlroff compat.fo (process:27677): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: font-selection-strategy ... [other warnings like this] ... (process:27677): libfo-CRITICAL **: Expression evaluation error: Evaluation resulted in an error Object path: /FoTree[1]/root[1]/layout-master-set[1]/simple-page-master[20]/region-body[1] ... (process:27677): libfo-WARNING **: Unsupported property: (null) ... (process:27677): libfo-CRITICAL **: fo_region_body_get_writing_mode: assertion `fo_region_body != NULL' failed (process:27677): libfo-CRITICAL **: fo_region_body_area_new: assertion `fo != NULL' failed (process:27677): libfo-CRITICAL **: fo_area_set_generated_by: assertion `fo_area != NULL' failed (process:27677): libfo-CRITICAL **: fo_area_page_add_child: assertion `child != NULL' failed (process:27677): libfo-CRITICAL **: fo_node_parent: assertion `fo_node != NULL' failed libfo-ERROR **: area_size_request:: parent is NULL aborting... Tim. */ |
From: Tony G. <Ton...@Su...> - 2005-03-09 16:41:15
|
Tim Waugh <tw...@re...> writes: > On Wed, Mar 09, 2005 at 04:00:41PM +0000, Tony Graham wrote: >> It's called 'libfo-compat.xsl' and should be installed when you >> install xmlroff. > > I spotted that just after I sent my message. Unfortunately it didn't > get me very far. :-( > > $ xmlto fo test.xml > Making portrait pages on A4 paper (210mmx297mm) > $ xsltproc /usr/share/xml/libfo-0.3.1/libfo-compat.xsl test.fo > compat.fo > $ xmlroff compat.fo > > (process:27677): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: font-selection-strategy > ... > [other warnings like this] ... > libfo-ERROR **: area_size_request:: parent is NULL > aborting... Please provide 'test.fo'. Regards, Tony. |
From: Tim W. <tw...@re...> - 2005-03-09 17:52:32
|
I managed to get some output (hurray!) by adding this bit to the libfo-compat.xsl style sheet: --- /usr/share/xml/libfo-0.3.1/libfo-compat.xsl 2005-03-09 15:21:42.000000000 +0000 +++ libfo-compat.xsl 2005-03-09 17:51:33.000000000 +0000 @@ -579,6 +579,12 @@ <xsl:apply-templates/> </xsl:template> + <xsl:template match="fo:region-body/@region-name"> + <xsl:if test="$verbose"> + <xsl:message>Removing 'fo:region-body' region-name attribute.</xsl:message> + </xsl:if> + </xsl:template> + <xsl:template match="fo:float"> <xsl:if test="$verbose"> <xsl:message>Removing unsupported 'fo:float'.</xsl:message> Tim. */ |
From: Tim W. <tw...@re...> - 2005-03-09 17:41:24
Attachments:
test.fo
|
On Wed, Mar 09, 2005 at 04:41:36PM +0000, Tony Graham wrote: > Please provide 'test.fo'. Attached. It comes from docbook-xsl-1.68.1 processing this input: ==> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ ]> <article id="index" lang="en"> <articleinfo> <title>Title</title> </articleinfo> <sect1> <title>Section title</title> <para>Paragraph.</para> </sect1> </article> <== Tim. */ |
From: Tony G. <Ton...@Su...> - 2005-03-09 16:03:01
|
Tim Waugh <tw...@re...> writes: > On Wed, Mar 09, 2005 at 03:26:46PM +0000, Tony Graham wrote: ... >> Thank you for your interest in providing and using >> the RPM spec files. Can you now verify whether the patch below adds >> the incantation in the right place? > > Yes, that looks right. Thanks. The fix is in CVS and will be in the next PangoXSL release. Regards, Tony. |