DO NOT REPLY [Bug 7815] New: - Hotspot of an fo:basic-link in fo:table-cell is positioned in row above
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7815. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7815 Hotspot of an fo:basic-link in fo:table-cell is positioned in row above Summary: Hotspot of an fo:basic-link in fo:table-cell is positioned in row above Product: Fop Version: 0.20.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When an fo:basic-link external-destination=http://; is applied within a fo:table-cellfo:block it is rendered ok, but the hotspot is in the row above. The hotspot of an fo:basic-link outside a fo:table is positioned ok. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
XSL - Unknown formatting object error
I have a newbie question concerning the XSL parsing in FOP. I think I have everything set up correctly because all the test work fine. However, I have a series of really simple xsl files that parse with other tools. But, the FOP application (more precisely xalan) can't seem to parse anything?!? I'm not sure what I'm doing wrong. I'm running the command fop -xml hello.xml -xsl hello.xsl -pdf hello.pdf and get a Unknown formatting object error: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: Unknown formatting object ^html javax.xml.transform.TransformerException at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1212) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) - java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:276) at org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav a:286) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle r.java:774) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler. java:283) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java: 749) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform erImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer Impl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j ava:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Thread.java:484) [ERROR]: null I don't see why as the xslt file is dead simple: hello.xsl: ?xml version=1.0? html xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:version=1.0 headtitleGreeting/title/head bodypWords of greeting:br/ biuxsl:value-of select=greeting//u/i/b /p/body /html The xml file is even simpler: ?xml version=1.0? ?xml-stylesheet type=text/xsl href=hello.xsl? greetingHello world./greeting What am I doing wrong? Is there some special xslt standard that I don't know about. Even if someone could provide me with some references and links concerning xslt sample for FOP that would be great. The current doc is somewhat lacking in this area. I took a look at http://www.owal.co.uk:8090/asf/servlet/asf/ and there seems to be nothing there. So I apologize if this is a newbie question. Thanks, Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Bug report for Fop [2002/04/07]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 626|New|Nor|2001-02-16|Negative number are shifted slightly towards left.| | 664|Opn|Nor|2001-02-21|Basic-Link does not move with its content, when us| | 682|New|Nor|2001-02-22|Lists do not display correctly| | 684|New|Nor|2001-02-23|border width in tables adds up| | 808|New|Nor|2001-03-01|Batch processing xml files| | 836|New|Min|2001-03-05|hyphenation problem with very long words | | 839|New|Nor|2001-03-05|Positioning of blocks in a block section. | | 902|New|Nor|2001-03-08|line-height is not applied corectly when using the| | 907|New|Nor|2001-03-08|first list-item dropped at very bottom of page. | | 928|New|Nor|2001-03-10|Font metrics and setComponent | | 964|New|Nor|2001-03-13|FOP 0.17 throws exception with basic-link in xsl-r| | 1063|New|Nor|2001-03-21|fop does not handle large fo files| | 1130|New|Nor|2001-03-27|Alignment of page-number-citation inside a ToC| | 1154|New|Nor|2001-03-29|nested lists more than 3 level depth | | 1171|New|Nor|2001-03-30|small-caps in static content becomes all-caps | | 1180|New|Maj|2001-04-02|Problem with monospaced font | | 1211|New|Min|2001-04-04|Tables are not formatted properly.| | 1231|New|Nor|2001-04-05|basic-link can't link to a page-sequence element | | 1242|New|Nor|2001-04-06|Error in Font-Documentation | | 1261|New|Nor|2001-04-09|problem with rendering of external-graphic in Fop-| | 1312|New|Blk|2001-04-11|fo:external-graphics using 0.17.0 as well as 0.18.| | 1318|New|Nor|2001-04-12|problems with tables (column width and when used i| | 1332|Ass|Nor|2001-04-12|MIF output strings not properly escaped | | 1335|New|Nor|2001-04-13|Problem with sample FOP servlet. | | 1391|New|Blk|2001-04-19|Bug in border-top-style | | 1432|New|Nor|2001-04-20|keep-with-* not functioning for fo:table-row | | 1474|New|Maj|2001-04-24|fo:external-graphic rendered as block level object| | 1531|New|Cri|2001-04-26|Cell Spacing | | 1596|New|Maj|2001-05-02|Adobe Acrobat claims Fop output has bad page conte| | 1640|Ass|Nor|2001-05-07|building formatting object tree gets OutOfMemoryEr| | 1724|Opn|Nor|2001-05-11|Text alignment in table cells | | 1759|New|Nor|2001-05-15|table-omit-footer-at-break sometimes cause crash | | 1766|New|Maj|2001-05-15|Text matrix in svg get doubled when run thru FOP | | 1773|New|Blk|2001-05-16|A table that is bigger than the page produces an e| | 1859|New|Min|2001-05-22|org.apache.fop.apps.Driver.reset() doesn't fully r| | 1923|New|Nor|2001-05-28|text-decoration does not work | | 1952|New|Cri|2001-06-01|color attribute to table content overflowing on ne| | 1967|New|Nor|2001-06-02|blank-or-not-blank behavior | | 1998|New|Nor|2001-06-05|linefeed-treatment not understood | | 2085|New|Maj|2001-06-08|Out of memory error when building FO Tree | | 2105|New|Nor|2001-06-11|text-alignment when containing euro sign | | 2106|New|Nor|2001-06-11|broken justification with numeric umlaut entities | | 2107|New|Min|2001-06-11|indentation in em units is larger than the lette| | 2127|New|Cri|2001-06-12|Preserve the Line breaks | | 2150|Ass|Maj|2001-06-13|New page with a table-header but without any tabl| | 2153|New|Cri|2001-06-13|Borders are calculated incorrectly| | 2207|New|Maj|2001-06-18|Embedding problems| | 2227|New|Nor|2001-06-18|missing class on startup in Fop-0.19.0 compiled do| | 2279|New|Nor|2001-06-22|block-container property position does not exist| | 2331|New|Maj|2001-06-26|fo:basic-link in fo:static-content throws an excep| | 2460|New|Cri|2001-07-05|Mulitple boder lines between the colums in a table| |
Re: XSL - Unknown formatting object error
Shawn Bedard wrote: I have a newbie question concerning the XSL parsing in FOP. I think I have everything set up correctly because all the test work fine. However, I have a series of really simple xsl files that parse with other tools. First, get your nomenclature straight. An XSL file is an XML document, which is parsed by an XML parser. The XSLT processor stores/compiles this into something which will be used to control a transformation. This transformation is applied to an input tree, generated by an XML parser from an input XML document, and produces a result tree, which could be serialized into a result document. FOP is something different from an XSLT processor (or an XML parser) FOP uses and XML source with som special vocabulary, XSLFO, and produces a rendered version in a Java widget or in some other file format, like PDF. It is common to produce the input for FOP, XSLFO, by an XSL transformation. The FOP command line application allows you either to supply an input FO and some output format, or you can supply an input XML, an XSLT file which describes the transformation from the input XML vocabulary into FOs, and some output format description as in the first case. Xalan is an XSLT processor which is used by default by FOP to execute the transformation in the second case. [ERROR]: Unknown formatting object ^html This means you are not generating the FO vocabulary FOP expects, but HTML instead. What am I doing wrong? The input for FOP, XSLFO files, is a quite different beast the HTML. Try the following XSL file, it will generate a very simple XSLFO from your XML file: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=29.7cm page-width=21cm fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-size=24pt text-align=centerGreeting/fo:block fo:blockWords of greeting:/fo:block fo:block font-weight=bold font-style=italic text-decoration=underline xsl:value-of select=greeting/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet Is there some special xslt standard that I don't know about. Not XSLT, but XSL :-) Even if someone could provide me with some references and links concerning xslt sample for FOP that would be great. You have to differentiate between XSLT, which governs transformations, and XSLFO, which describes layout/formatting. You use XSLT to transform your input XML into various other stuff, for example HTML or XSLFO. You have to use different XSLT templates for different output. HTH J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
implementing background-image (bug 5180)
Guys, I need to be able to use the background-image property, which is not yet implemented http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5180. Is anyone working on this at the moment? If not, I'm happy to make an attempt at it. Is there anything I should know about implementing properties in FOP, or this one in general, that I wouldn't pick up from looking at the existing code? Thanks, Mike. -- Michael Gratton [EMAIL PROTECTED] Recall Design http://www.recalldesign.com/ s: 53 Gilbert Street Adelaide SA 5000 Australia t: +61 8 8217 0500 f: +61 8 8217 0555 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]