Csound Csound-dev Csound-tekno Search About

[Cs-dev] PDF manual

Date2010-03-14 09:51
FromAndres Cabrera
Subject[Cs-dev] PDF manual
Hi all,

I'm having trouble building the pdf manual. hadn't done it for a while...

I'm on Ubuntu 9.10 using the docbook, xsltproc packages from the
Ubuntu repositories. Html building is fine.

But for pdf I find:
fop 0.9X won't work, it crashes.
the older 0.20.5 release will run OK, but report these errors:
[ERROR] property - "background-position-horizontal" is not implemented yet.

and therefore not produce output.
If I look for those on the .fo file, they are related to this image:


Any ideas?

Cheers,
Andrés

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2010-03-16 01:16
FromSteven Yi
SubjectRe: [Cs-dev] PDF manual
Hi Andres,

I haven't tried building the manual in quite a while, but for the
crashing, is it memory related (OutOfMemoryException)?  If so, you may
be able to increase the max memory used for fop.sh in the script that
comes installed from the package manager.  (I remember having memory
issues with building pdf's and I think I may have written in something
in the readme). If that's not it, could you post what the crashing
error message was if any was given?

Thanks!
steven

On Sun, Mar 14, 2010 at 5:51 AM, Andres Cabrera  wrote:
> Hi all,
>
> I'm having trouble building the pdf manual. hadn't done it for a while...
>
> I'm on Ubuntu 9.10 using the docbook, xsltproc packages from the
> Ubuntu repositories. Html building is fine.
>
> But for pdf I find:
> fop 0.9X won't work, it crashes.
> the older 0.20.5 release will run OK, but report these errors:
> [ERROR] property - "background-position-horizontal" is not implemented yet.
>
> and therefore not produce output.
> If I look for those on the .fo file, they are related to this image:
>  column-gap="12pt" column-count="1"
> background-image="http://docbook.sourceforge.net/release/images/draft.png"
> background-attachment="fixed" background-repeat="no-repeat"
> background-position-horizontal="center"
> background-position-vertical="center"/>
>
> Any ideas?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-03-16 07:40
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] PDF manual
I tried but fop.sh does not exist on my distrobution -- there is a fop
however.
==John


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-03-16 07:55
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] PDF manual
A little more; renaming fop as fop.sh i get (tying make pdfA4)


16-Mar-2010 07:52:45 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
org.apache.fop.apps.FOPException:
file:/home/jpff/Sourceforge/manual/Csound5.12_manual_A4.fo:2:29426:
Error(2/29426): No element mapping definition found for (Namespace URI:
"http://xml.apache.org/fop/extensions", Local Name: "destination")
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)

No idea what it nmeans though


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-03-16 09:07
FromAndres Cabrera
SubjectRe: [Cs-dev] PDF manual
Hi,

No, it's not the memory exception (I solved that already) it's a
different strange error on fop 0.9X. On the older version, things go
fine (it seems that it's generating things, goes through all 2000 plus
pages, but doesn't produce any final output due to the error (it's not
a crash):

[ERROR] property - "background-position-horizontal" is not implemented yet.

this comes from the generated fo file which contains this properties,
which actually doesn't come from the document, but seems related to my
docbook package. Probably something was added to docbook which is
incompatible with the older version of fop, but there's something
somewhere which is incompatible with the current version.

The error for the current version (fop-0.95) is:

fop -fo Csound5.12_manual.fo -pdf Csound5.12_manual.pdf

16-Mar-2010 08:56:36 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
	at org.apache.fop.cli.Main.startFOP(Main.java:166)
	at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: javax.xml.transform.TransformerException:
org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
	... 3 more
Caused by: org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	... 4 more

---------

javax.xml.transform.TransformerException:
org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
	at org.apache.fop.cli.Main.startFOP(Main.java:166)
	at org.apache.fop.cli.Main.main(Main.java:197)
Caused by: org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	... 4 more
---------
org.apache.fop.apps.FOPException:
file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
Error(2/29388): No element mapping definition found for (Namespace
URI: "http://xml.apache.org/fop/extensions", Local Name:
"destination")
	at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
	at org.apache.fop.cli.Main.startFOP(Main.java:166)
	at org.apache.fop.cli.Main.main(Main.java:197)


At the reported line and column you find:


but later you do find:


So I'm not sure what's wrong...

Cheers,
Andrés

On Tue, Mar 16, 2010 at 1:16 AM, Steven Yi  wrote:
> Hi Andres,
>
> I haven't tried building the manual in quite a while, but for the
> crashing, is it memory related (OutOfMemoryException)?  If so, you may
> be able to increase the max memory used for fop.sh in the script that
> comes installed from the package manager.  (I remember having memory
> issues with building pdf's and I think I may have written in something
> in the readme). If that's not it, could you post what the crashing
> error message was if any was given?
>
> Thanks!
> steven
>
> On Sun, Mar 14, 2010 at 5:51 AM, Andres Cabrera  wrote:
>> Hi all,
>>
>> I'm having trouble building the pdf manual. hadn't done it for a while...
>>
>> I'm on Ubuntu 9.10 using the docbook, xsltproc packages from the
>> Ubuntu repositories. Html building is fine.
>>
>> But for pdf I find:
>> fop 0.9X won't work, it crashes.
>> the older 0.20.5 release will run OK, but report these errors:
>> [ERROR] property - "background-position-horizontal" is not implemented yet.
>>
>> and therefore not produce output.
>> If I look for those on the .fo file, they are related to this image:
>> > column-gap="12pt" column-count="1"
>> background-image="http://docbook.sourceforge.net/release/images/draft.png"
>> background-attachment="fixed" background-repeat="no-repeat"
>> background-position-horizontal="center"
>> background-position-vertical="center"/>
>>
>> Any ideas?
>>
>> Cheers,
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/list

Date2010-03-16 09:08
FromAndres Cabrera
SubjectRe: [Cs-dev] PDF manual
Hi John,

Older fops (0.2X) use fop.sh, newer fops (0.9X) use fop.

Cheers,
Andrés

On Tue, Mar 16, 2010 at 7:40 AM,   wrote:
> I tried but fop.sh does not exist on my distrobution -- there is a fop
> however.
> ==John
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
ht

Date2010-03-16 12:03
FromSteven Yi
SubjectRe: [Cs-dev] PDF manual
Thanks Andres,

I remember having issues like this with fop when first doing the pdf
manual as well as when transitioning to fop 0.95 for the blue manual.
I had to look at the fo output file and it usually lead to something
that was malformed in the original docbook which worked fine for html
but not PDF. I'll try building the manual here in just a bit to
reproduce the bug and will reply back if I find anything.

Thanks!
Steven

On 3/16/10, Andres Cabrera  wrote:
> Hi,
>
> No, it's not the memory exception (I solved that already) it's a
> different strange error on fop 0.9X. On the older version, things go
> fine (it seems that it's generating things, goes through all 2000 plus
> pages, but doesn't produce any final output due to the error (it's not
> a crash):
>
> [ERROR] property - "background-position-horizontal" is not implemented yet.
>
> this comes from the generated fo file which contains this properties,
> which actually doesn't come from the document, but seems related to my
> docbook package. Probably something was added to docbook which is
> incompatible with the older version of fop, but there's something
> somewhere which is incompatible with the current version.
>
> The error for the current version (fop-0.95) is:
>
> fop -fo Csound5.12_manual.fo -pdf Csound5.12_manual.pdf
>
> 16-Mar-2010 08:56:36 org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> javax.xml.transform.TransformerException:
> org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
> 	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
> 	at org.apache.fop.cli.Main.startFOP(Main.java:166)
> 	at org.apache.fop.cli.Main.main(Main.java:197)
> Caused by: javax.xml.transform.TransformerException:
> org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
> 	... 3 more
> Caused by: org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at
> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
> 	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
> 	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
> 	at
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
> 	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> 	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
> 	... 4 more
>
> ---------
>
> javax.xml.transform.TransformerException:
> org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
> 	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
> 	at org.apache.fop.cli.Main.startFOP(Main.java:166)
> 	at org.apache.fop.cli.Main.main(Main.java:197)
> Caused by: org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at
> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
> 	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
> 	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
> 	at
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
> 	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> 	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
> 	... 4 more
> ---------
> org.apache.fop.apps.FOPException:
> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
> Error(2/29388): No element mapping definition found for (Namespace
> URI: "http://xml.apache.org/fop/extensions", Local Name:
> "destination")
> 	at
> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
> 	at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
> 	at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
> 	at
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
> 	at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> 	at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
> 	at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
> 	at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
> 	at org.apache.fop.cli.Main.startFOP(Main.java:166)
> 	at org.apache.fop.cli.Main.main(Main.java:197)
>
>
> At the reported line and column you find:
> 
>
> but later you do find:
> 
>
> So I'm not sure what's wrong...
>
> Cheers,
> Andrés
>
> On Tue, Mar 16, 2010 at 1:16 AM, Steven Yi  wrote:
>> Hi Andres,
>>
>> I haven't tried building the manual in quite a while, but for the
>> crashing, is it memory related (OutOfMemoryException)?  If so, you may
>> be able to increase the max memory used for fop.sh in the script that
>> comes installed from the package manager.  (I remember having memory
>> issues with building pdf's and I think I may have written in something
>> in the readme). If that's not it, could you post what the crashing
>> error message was if any was given?
>>
>> Thanks!
>> steven
>>
>> On Sun, Mar 14, 2010 at 5:51 AM, Andres Cabrera 
>> wrote:
>>> Hi all,
>>>
>>> I'm having trouble building the pdf manual. hadn't done it for a while...
>>>
>>> I'm on Ubuntu 9.10 using the docbook, xsltproc packages from the
>>> Ubuntu repositories. Html building is fine.
>>>
>>> But for pdf I find:
>>> fop 0.9X won't work, it crashes.
>>> the older 0.20.5 release will run OK, but report these errors:
>>> [ERROR] property - "background-position-horizontal" is not implemented
>>> yet.
>>>
>>> and therefore not produce output.
>>> If I look for those on the .fo file, they are related to this image:
>>> >> column-gap="12pt" column-count="1"
>>> background-image="http://docbook.sourceforge.net/release/images/draft.png"
>>> background-attachment="fixed" background-repeat="no-repeat"
>>> background-position-horizontal="center"
>>> background-position-vertical="center"/>
>>>
>>> Any ideas?
>>>
>>> Cheers,
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-- 
Sent from my mobile device

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-03-16 12:32
FromAndres Cabrera
SubjectRe: [Cs-dev] PDF manual
Thanks Steven.

Cheers,
Andrés

On Tue, Mar 16, 2010 at 12:03 PM, Steven Yi  wrote:
> Thanks Andres,
>
> I remember having issues like this with fop when first doing the pdf
> manual as well as when transitioning to fop 0.95 for the blue manual.
> I had to look at the fo output file and it usually lead to something
> that was malformed in the original docbook which worked fine for html
> but not PDF. I'll try building the manual here in just a bit to
> reproduce the bug and will reply back if I find anything.
>
> Thanks!
> Steven
>
> On 3/16/10, Andres Cabrera  wrote:
>> Hi,
>>
>> No, it's not the memory exception (I solved that already) it's a
>> different strange error on fop 0.9X. On the older version, things go
>> fine (it seems that it's generating things, goes through all 2000 plus
>> pages, but doesn't produce any final output due to the error (it's not
>> a crash):
>>
>> [ERROR] property - "background-position-horizontal" is not implemented yet.
>>
>> this comes from the generated fo file which contains this properties,
>> which actually doesn't come from the document, but seems related to my
>> docbook package. Probably something was added to docbook which is
>> incompatible with the older version of fop, but there's something
>> somewhere which is incompatible with the current version.
>>
>> The error for the current version (fop-0.95) is:
>>
>> fop -fo Csound5.12_manual.fo -pdf Csound5.12_manual.pdf
>>
>> 16-Mar-2010 08:56:36 org.apache.fop.cli.Main startFOP
>> SEVERE: Exception
>> javax.xml.transform.TransformerException:
>> org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
>>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
>>       at org.apache.fop.cli.Main.startFOP(Main.java:166)
>>       at org.apache.fop.cli.Main.main(Main.java:197)
>> Caused by: javax.xml.transform.TransformerException:
>> org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
>>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
>>       ... 3 more
>> Caused by: org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at
>> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
>>       at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
>>       at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
>>       at
>> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
>>       at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
>>       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>>       at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>>       at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>>       ... 4 more
>>
>> ---------
>>
>> javax.xml.transform.TransformerException:
>> org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
>>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
>>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
>>       at org.apache.fop.cli.Main.startFOP(Main.java:166)
>>       at org.apache.fop.cli.Main.main(Main.java:197)
>> Caused by: org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at
>> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
>>       at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
>>       at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
>>       at
>> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
>>       at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
>>       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>>       at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>>       at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>>       ... 4 more
>> ---------
>> org.apache.fop.apps.FOPException:
>> file:/home/andres/src/manual/Csound5.12_manual.fo:2:29388:
>> Error(2/29388): No element mapping definition found for (Namespace
>> URI: "http://xml.apache.org/fop/extensions", Local Name:
>> "destination")
>>       at
>> org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:143)
>>       at org.apache.fop.fo.FOTreeBuilder.findFOMaker(FOTreeBuilder.java:190)
>>       at org.apache.fop.fo.FOTreeBuilder.access$300(FOTreeBuilder.java:51)
>>       at
>> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:275)
>>       at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
>>       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>>       at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>>       at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>>       at
>> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>>       at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214)
>>       at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
>>       at org.apache.fop.cli.Main.startFOP(Main.java:166)
>>       at org.apache.fop.cli.Main.main(Main.java:197)
>>
>>
>> At the reported line and column you find:
>> 
>>
>> but later you do find:
>> 
>>
>> So I'm not sure what's wrong...
>>
>> Cheers,
>> Andrés
>>
>> On Tue, Mar 16, 2010 at 1:16 AM, Steven Yi  wrote:
>>> Hi Andres,
>>>
>>> I haven't tried building the manual in quite a while, but for the
>>> crashing, is it memory related (OutOfMemoryException)?  If so, you may
>>> be able to increase the max memory used for fop.sh in the script that
>>> comes installed from the package manager.  (I remember having memory
>>> issues with building pdf's and I think I may have written in something
>>> in the readme). If that's not it, could you post what the crashing
>>> error message was if any was given?
>>>
>>> Thanks!
>>> steven
>>>
>>> On Sun, Mar 14, 2010 at 5:51 AM, Andres Cabrera 
>>> wrote:
>>>> Hi all,
>>>>
>>>> I'm having trouble building the pdf manual. hadn't done it for a while...
>>>>
>>>> I'm on Ubuntu 9.10 using the docbook, xsltproc packages from the
>>>> Ubuntu repositories. Html building is fine.
>>>>
>>>> But for pdf I find:
>>>> fop 0.9X won't work, it crashes.
>>>> the older 0.20.5 release will run OK, but report these errors:
>>>> [ERROR] property - "background-position-horizontal" is not implemented
>>>> yet.
>>>>
>>>> and therefore not produce output.
>>>> If I look for those on the .fo file, they are related to this image:
>>>> >>> column-gap="12pt" column-count="1"
>>>> background-image="http://docbook.sourceforge.net/release/images/draft.png"
>>>> background-attachment="fixed" background-repeat="no-repeat"
>>>> background-position-horizontal="center"
>>>> background-position-vertical="center"/>
>>>>
>>>> Any ideas?
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download Intel® Parallel Studio Eval
>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>> proactively, and fine-tune applications for parallel performance.
>>>> See why Intel Parallel Studio got high marks during beta.
>>>> http://p.sf.net/sfu/intel-sw-dev
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> --
> Sent from my mobile device
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-de