Re: special characters - tab and extra spaces
Did you try setting the white-space-collapse attribute on the block? For example: fo:block white-space-collapse=false identifier : value /fo:block -Lou |-+--- | | Chris Faulkner | | | chris.faulkner@| | | gmail.com | | | | | | 06/23/2005 08:03| | | Please respond | | | to fop-users| | | | |-+--- ---| | | |To: fop-users@xmlgraphics.apache.org | |cc: | |Subject: special characters - tab and extra spaces | ---| Hello I would like to insert a tab (or multiple spaces) in my XSL:FO document, rto achieve something like this identifier : tab value So that value is tabbed away from identifier :. Is there anyway of doing this ? Even if I insert multiple spaces, they are collapsed into a single one. At the moment, I have implemented this by using table cells and padding but ideally, I'd like to view this as a single piece of text . Can I do this with any other way ? Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SPACE BEFORE
Hi All, The space-before attribute is not working on my stylefile. Anybody advise me? Thanks in advance. Regards, bala __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SPACE BEFORE
The Compliance page (at http://xml.apache.org/fop/compliance.html#fo-property-space-before) says space-before.optimum is supported, so you could try changing space-before to space-before.optimum. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) H. krishna [EMAIL PROTECTED] 06/23/2005 09:43 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject SPACE BEFORE Hi All, The space-before attribute is not working on my stylefile. Anybody advise me? Thanks in advance. Regards, bala __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SPACE BEFORE
H. krishna wrote: Hi All, The space-before attribute is not working on my stylefile. Anybody advise me? space-before works fine for me. Can you be a bit more specific? What fo are you specifying it on, e.g. fo:block or something else? And by not working do you mean space is not enforced or conditionality is not honoured? FOP does not yet support space conditionality. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SPACE BEFORE
Hi Jay Bryant, Thanks for your response. I have used Antenna house software. I'll try in the FOP. FOP is supported fo-float mathml tag? Due to this i had gone for Antenna house... Regards, bala --- [EMAIL PROTECTED] wrote: The Compliance page (at http://xml.apache.org/fop/compliance.html#fo-property-space-before) says space-before.optimum is supported, so you could try changing space-before to space-before.optimum. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) H. krishna [EMAIL PROTECTED] 06/23/2005 09:43 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org cc Subject SPACE BEFORE Hi All, The space-before attribute is not working on my stylefile. Anybody advise me? Thanks in advance. Regards, bala __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SPACE BEFORE
Hi Chris, Thanks for your response. I have used Antenna house software. I'll try in the FOP. FOP is supported fo-float mathml tag? Due to this i had gone for Antenna house... my synatx is : xsl:template match=group xsl:if test=cab xsl:choose xsl:when test=contrib fo:block font-size=12pt line-height=14pt space-after=12pt space-before=12pt font-style=italic span=all xsl:value-of select=descendant::contrib/descendant::name/descendant::surname/ xsl:text /xsl:text xsl:value-of select=descendant::contrib/descendant::name/descendant::given-names/ fo:inline baseline-shift=super xsl:value-of select=descendant::contrib/[EMAIL PROTECTED]'aff']/ /fo:inline /fo:block /xsl:when xsl:otherwise fo:block font-size=10pt space-after=12pt space-before=12pt font-style=italic span=all xsl:value-of select=contrib/name/surname/ /fo:block /xsl:otherwise /xsl:choose /xsl:if /xsl:template The condition is true. Everything is working fine, except space-before attribute. Regards, bala --- Chris Bowditch [EMAIL PROTECTED] wrote: H. krishna wrote: Hi All, The space-before attribute is not working on my stylefile. Anybody advise me? space-before works fine for me. Can you be a bit more specific? What fo are you specifying it on, e.g. fo:block or something else? And by not working do you mean space is not enforced or conditionality is not honoured? FOP does not yet support space conditionality. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SPACE BEFORE
-Original Message- From: H. krishna [mailto:[EMAIL PROTECTED] Hi, Regarding your problem: ... Everything is working fine, except space-before attribute. Not true. AFAICT, it is working as it should. The space-before property has a default conditionality of 'discard', which means that, if there are two successive fo:blocks of which the first has space-after=12pt and the second has space-before=12pt, then the distance between the two blocks --optimum space between, since FOP 0.20.5 supports only space-*.optimum-- will be 12pt and not 24pt, as you seem to be expecting (You ARE expecting 24pt, correct?) Since FOP 0.20.5 does not yet implement space-*.conditionality=retain, I guess you're going to have to play with the space-* properties, i.e. drop them in some places, set them to 24pt in others. On top of that... my synatx is : An alternative syntax, much more concise... IMO more flexible and a bit easier to read/maintain, but that may be a matter of taste. xsl:template match=group[cab[contrib]] fo:block font-size=12pt font-style=italic span=all line-height=14pt space-after=12pt space-before=12pt xsl:value-of select=concat(contrib/name/surname,' ', contrib/name/given-names) / fo:inline baseline-shift=super xsl:value-of select=contrib/[EMAIL PROTECTED]'aff'] / /fo:inline /fo:block /xsl:template xsl:template match=group fo:block font-size=10pt font-style=italic span=all space-after=12pt space-before=12pt xsl:value-of select=contrib/name/surname / /fo:block /xsl:template HTH! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging with 1.0dev
Will, I am answering you on fop-user. See xml-fop/src/private-resources for an example of how to configure logging with SimpleLog (org.apache.commons.logging.impl.SimpleLog). If you want to selectively change the log level for some loggers, you will have to dig in the code for the logger names. Often they are the package or class name. Regards, Simon On Thu, Jun 23, 2005 at 08:16:34PM +0200, Jeremias Maerki wrote: Will, we haven't had any chance, yet, to write more than design documentation on 1.0dev. 1.0dev uses Jakarta Commons Logging [1] as logging framework. This means that on a standard JDK 1.4 (or higher) system JCL uses JDK logging as its backend by default. For this case you'd have to look up the documentation for JDK logging [2]. It's pretty easy to supply your own logger of choice. The JCL documentation will tell you how to do that. In contrast to Avalon loggon JCL logging uses more or less the same approach as Log4J which normally fetches the logger per class into a static variable. That's why you can't set a logger directly on the Driver (or rather Fop now) instance. I believe that until the final 1.0 release it is possible that in the area of logging of few things may still change. Probably not the use of JCL but maybe a specialized facility to observe the formatting process programmatically. There's nothing written in stone about that, yet. And until then, consider 1.0dev a moving target. Suggestions and help are welcome. HTH [1] http://jakarta.apache.org/commons/logging/ (version 1.0.3) [2] http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/index.html On 23.06.2005 18:18:19 Will Peterson wrote: Is there any sample documentation on how to do logging with Fop 1.0dev. The previous Fop had examples right in the distribution, but I can't find anything there, or on the web for sample code of how to do logging. (All the code example I see are based on having a handle on the driver (for example): //Setup logger Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger); MessageHandler.setScreenLogger(logger); Thanks for any help, - Will Jeremias Maerki -- Simon Pepping home page: http://www.leverkruid.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Text in SVG background image
Pascal Sancho wrote: I just tried to put some text in a SVG file, to be rendered as the body background-image. If the strokeSVGText key is set to false (see [1]), I get the following error: a java.lang.NullPointerException at org.apache.fop.svg.PDFTextPainter.paintACI(PDFTextPainter.java:211) Well, the painting method gets NULL for the font info, because the BodyAreaContainer which contains the background SVG for the body region ist set up with a NULL font info structure. I guess you are out of luck. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Text in SVG background image
Jeremias Maerki wrote: I've had a quick look at the code and I must say I don't see where the difference between external-graphic, instream-foreign-object and a background image in SVG comes from. BodyRegionArea.java Line 73, first argument to the constructor. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]