Re: linefeed-treatment
Keiron -- > > I'm using the docbook-xsl-1.14 tools from docbook.sourceforge.net to > > convert a DocDook XML file into xsl:fo and then using FOP to convert > > that into PDF. I've noticed FOP printing messages like this: > > > > warning: property - "linefeed-treatment" is not implemented yet. > > > > it turns out that docbook-xsl is using that attribute on the fo:block > > elements it creates out of my DocBook elements. > > > > Is linefeed-treatment handling on the radar screen? > > I'm getting the correct output, so I'm wondering if by setting > > white-space-collapse='false' in the fo:block, docbook-xsl is causing > > FOP to do the right thing? Is it true that white-space-collapse='false' > > implies the same effect as linefeed-treatment='preserve'? > > Gregor, > > This is not a comment on how fop handles the situation. > According to the spec if white-space-collapse="false" then it "Specifies no > special action". > If it is true then it collapses multiple white space char except preserved > linefeeds (if linefeed-treatment='preserve'). > For linefeed-treatment if the value is preserve then it "Specifies no > special action". > > So if FOP does nothing different it will be correct. > > Any other combination may be an entirely different situation. Thanks for the reply. So, does that mean that the entry in src/codegen/foproperties.xml should be edited so it doesn't say ToBeImplemented? If its being handled correctly, then we don't need the message to be printed. If there is some work still to be done before it can be considered completely supported, perhaps its a small enough task that I could figure it out... If nobody else is working on this, I'll go dig into the spec to see where the possibilities are discussed and then crawl through the code to see if I can find the right place(s) to make changes. I've not contributed code before, so pointers would be appreciated. From a little find+grep I see that linefeed-treatment is mentioned only in foproperties.xml and in src/org/apache/fop/fo/flow/Block.java (but it is only in a comment there). I see that white-space-collapse is mentioned in a few places. Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
linefeed-treatment
Curious: I'm using the docbook-xsl-1.14 tools from docbook.sourceforge.net to convert a DocDook XML file into xsl:fo and then using FOP to convert that into PDF. I've noticed FOP printing messages like this: warning: property - "linefeed-treatment" is not implemented yet. it turns out that docbook-xsl is using that attribute on the fo:block elements it creates out of my DocBook elements. Is linefeed-treatment handling on the radar screen? I'm getting the correct output, so I'm wondering if by setting white-space-collapse='false' in the fo:block, docbook-xsl is causing FOP to do the right thing? Is it true that white-space-collapse='false' implies the same effect as linefeed-treatment='preserve'? Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Re: Can't build fop: Hangs after
Success! Since java looked broken (a big surprise because last I knew it worked), I grabbed 1.3.1 from java.sun.com and did rpm --erase on the 1.3 jdk and jre and rpm --install on the 1.3.1. Now, java -version works, and so does ./build.sh! Thanks all for taking the time to work with me on this... Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Re: Can't build fop: Hangs after
Karen -- I'm attaching a typescript file. Java is hanging on 'java -version'. I'll try to go grab a fresh copy from Sun... On 23 Jul 2001 18:33:40 +0200, [EMAIL PROTECTED] wrote: > Gregor, > > Yes, I'm starting to think your java is broken too. It should at least say >something. I wonder if it could be that you have some other file named java lying >around that is being executed instead of the real java. > In that case, the "fake java" is perhaps waiting on some kind of user input, which >often looks like a hang. > > Try the commands 'type java' or 'which java', which should make the shell tell you >where it is finding the command called java. > It's typically in some directory like /usr/lib/jdk.. or jre. > If it's a real java, it should tell you it's version number when you give the >command "java -version". > By the way what flavor of unix or linux are you running and do you know where your >JDK is from? Is the variable "JAVA_HOME" set in your environment? > > You were running fop some time ago right? so you must have had a working java at >some point. > > We'll track this thing down! > > > Message d'origine > >Sujet: Re: Can't build fop: Hangs after "Starting Ant..." > >De: "Gregor N. Purdy" <[EMAIL PROTECTED]> > >A: [EMAIL PROTECTED] > >Date: 23 Jul 2001 07:21:42 -0400 > > > >Karen -- > > > >Thanks for the ideas. Still no success. I'm attaching a typescript file > >and build.sh. I figure whatever is going on has got to be something > >very foundational but probably very simple once found. I'm puzzled by > >the fact that fop has its own private copy of ant, etc. and that it > >is set up to use its own private tools, yet doesn't work here while > >working there. > > > >I wonder if Java itself is broken. > > > >I don't do a lot with Java on my own, so if there are some simple > >checks you could guide me through to see that I'm not getting breakage > >at that level, I'd appreciate it. > > > >> > >-- > > > > > >Regards, > > > >-- Gregor > > _ > >/ \ > > Gregor N. Purdy [EMAIL PROTECTED] > > Focus Research, Inc.http://www.focusresearch.com/ > > 8080 Beckett Center Drive #203 513-860-3570 vox > > West Chester, OH 45069 513-860-3579 fax > >\_/ > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, email: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > -- Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ Script started on Mon Jul 23 14:01:42 2001 [gregor@sarek gregor]$ which java /usr/java/jdk1.3/bin/java [gregor@sarek gregor]$ java -version [gregor@sarek gregor]$ # Hit Ctrl-C - apparent hang [gregor@sarek gregor]$ echo $JAVA_HOME /usr/java/jdk1.3 [gregor@sarek gregor]$ exit Script done on Mon Jul 23 14:02:37 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't build fop: Hangs after "Starting Ant..."
Karen -- Thanks for the ideas. Still no success. I'm attaching a typescript file and build.sh. I figure whatever is going on has got to be something very foundational but probably very simple once found. I'm puzzled by the fact that fop has its own private copy of ant, etc. and that it is set up to use its own private tools, yet doesn't work here while working there. I wonder if Java itself is broken. I don't do a lot with Java on my own, so if there are some simple checks you could guide me through to see that I'm not getting breakage at that level, I'd appreciate it. > -- Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ Script started on Mon Jul 23 07:15:43 2001 [gregor@sarek fop-cvs]$ ./build.sh -version Fop Build System Building with classpath /usr/java/jdk1.3/lib/tools.jar:/usr/java/jdk1.3/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-1.0.jar Starting Ant... [gregor@sarek fop-cvs]$ # Hit Ctrl-C [gregor@sarek fop-cvs]$ [gregor@sarek fop-cvs]$ java -classpath lib/ant.jar org.apache.tools.ant.Main -version [gregor@sarek fop-cvs]$ # Hit Ctrl-C [gregor@sarek fop-cvs]$ [gregor@sarek fop-cvs]$ # java -classpath lib/ant.jar org.apache.tools.ant.Main -verbose [gregor@sarek fop-cvs]$ [gregor@sarek fop-cvs]$ exit exit Script done on Mon Jul 23 07:17:18 2001 #!/bin/sh # This file should be executable. echo echo "Fop Build System" echo "" echo if [ "$JAVA_HOME" = "" ] ; then echo "ERROR: JAVA_HOME not found in your environment." echo echo "Please, set the JAVA_HOME variable in your environment to match the" echo "location of the Java Virtual Machine you want to use." exit 1 fi LIBDIR=lib LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip:$LIBDIR/ant.jar:$LIBDIR/batik.jar:$LIBDIR/buildtools.jar:$LIBDIR/xerces-1.2.3.jar:$LIBDIR/xalan-2.0.0.jar:$LIBDIR/xalanj1compat.jar:$LIBDIR/bsf.jar:$LIBDIR/jimi-1.0.jar ANT_HOME=$LIBDIR echo echo Building with classpath $LOCALCLASSPATH echo Starting Ant... echo $JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$LOCALCLASSPATH" org.apache.tools.ant.Main $* - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't build fop: Hangs after "Starting Ant..."
It was hung, so the time is the time I let it stay hung until Ctrl+C. On 22 Jul 2001 09:39:54 +1000, Peter B. West wrote: > Gregor, > > I don't know ant all that well, but here is what happens when I do it: > > /tmp 9:35$ ant > Buildfile: build.xml > > testCRLF: > > BUILD SUCCESSFUL > > Total time: 1 second > /tmp 9:35$ > > I don't know whether there are properties you can have set which > suppress the normal output of ant, but I suspect you should be seeing > the same sort of output. > > Is that "real" time real? > > Change the value of "cr" from "remove" to "add" and see if the file is > modified. > > Peter > > Gregor N. Purdy wrote: > > > On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote: > > > >>If you haven't written one already, you might try the attached > >>build.xml. Drop it in /tmp, copy some text file over as > >>/tmp/YourTextFile (or edit the "includes" value in build.xml, and run > >>ant. The text file will be modified in place. > >> > > > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > > -- > > > > I've attached a typescript file of an attempt. > > > > > > Script started on Fri Jul 20 09:21:06 2001 > > [gregor@sarek ant-test]$ cat build.xml > > > > > > > >>classname="org.apache.tools.ant.taskdefs.FixCRLF"/> > > > > >includes="YourTextFile" > >tab="remove" > > cr="remove" > >eof="remove" > >/> > > > > > > > > > > [gregor@sarek ant-test]$ cat YourTextFile > > > > > > > >>classname="org.apache.tools.ant.taskdefs.FixCRLF"/> > > > > >includes="YourTextFile" > >tab="remove" > > cr="remove" > >eof="remove" > >/> > > > > > > > > > > [gregor@sarek ant-test]$ time ant > > > > > > real37m19.108s > > user0m0.270s > > sys 0m0.120s > > [gregor@sarek ant-test]$ ls > > build.xml typescript YourTextFile > > [gregor@sarek ant-test]$ exit > > exit > > > > Script done on Fri Jul 20 09:58:45 2001 > > > > typescript > > > > Content-Type: > > > > text/plain > > Content-Encoding: > > > > 7bit > > > > > > > -- > Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest > "Lord, to whom shall we go?" > > -- Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't build fop: Hangs after "Starting Ant..."
On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote: > If you haven't written one already, you might try the attached > build.xml. Drop it in /tmp, copy some text file over as > /tmp/YourTextFile (or edit the "includes" value in build.xml, and run > ant. The text file will be modified in place. > - > To unsubscribe, e-mail: [EMAIL PROTECTED] -- I've attached a typescript file of an attempt. Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ Script started on Fri Jul 20 09:21:06 2001 [gregor@sarek ant-test]$ cat build.xml [gregor@sarek ant-test]$ cat YourTextFile [gregor@sarek ant-test]$ time ant real37m19.108s user0m0.270s sys 0m0.120s [gregor@sarek ant-test]$ ls build.xml typescript YourTextFile [gregor@sarek ant-test]$ exit exit Script done on Fri Jul 20 09:58:45 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't build fop: Hangs after "Starting Ant..."
Arved -- Thanks for the reply. > Could it be a line-ending issue? This has bitten us a few times, depending > on what machine a committer was on when they committed UNIX shell scripts, > and if they weren't careful. I did it a time or two myself, committing the > shell scripts with DOS line endings. build.sh appears to be in proper *nix format. > Failing that, what happens when you set the environment variables by hand, > and then execute the final command by itself, not through the script...still > no joy? No joy. > Can you run your current Ant on other build files? I don't use Ant for anything else. > What version of Ant are you using? Try Ant 1.3 if all else fails. I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org, but it seems to me from build.sh that a private version of ant.jar is used... -- Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Can't build fop: Hangs after "Starting Ant..."
All -- On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote: > Its been some time since I've been able to build fop from CVS. I just > completed a fresh checkout of xml-fop and when I run ./build.sh, the > thing just hangs after printing "Starting Ant...". > > Has anyone else run into this? Is it solved? I'd like to get back to > using FOP for some of my projects, and I'd prefer to track the > development rather than go back to an older release. My apologies if someone dealt with this and I didn't see it. I still cannot build fop out of CVS. I just did a CVS update, too. I can't figure out why Ant would hang, and I thought fop was self- contained, so whatever I'm running should be whatever you all are running, but I assume you are all able to build fop. Does anyone have any idea what I could look at to try to resolve the problem? I'd really like to get back to producing PDF files... Thanks! Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Can't build fop: Hangs after "Starting Ant..."
Its been some time since I've been able to build fop from CVS. I just completed a fresh checkout of xml-fop and when I run ./build.sh, the thing just hangs after printing "Starting Ant...". Has anyone else run into this? Is it solved? I'd like to get back to using FOP for some of my projects, and I'd prefer to track the development rather than go back to an older release. Regards, -- Gregor _ / \ Gregor N. Purdy [EMAIL PROTECTED] Focus Research, Inc.http://www.focusresearch.com/ 8080 Beckett Center Drive #203 513-860-3570 vox West Chester, OH 45069 513-860-3579 fax \_/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]