I'm having problems with OpenOffice.org output, which I process with Apache Forrest to generate a documentation web site (the documentation's original format is SXW ). Normally if I follow the instructions on this page, I get Headings for levels 1-5:
The above code does actually 'look' like an <H2/> when processed by Forrest. Unfortunately, the following code is now being output by OOo when I apply the Heading 2 style:
Code:
<text:p text:style-name="Heading 2">Running FOP with Barcode4J</text:p>
Interestingly enough, the above does not look like "Heading 2" but the the previous one does.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Mon Oct 04, 2004 10:13 pm Post subject:
Hmm...both Neo/J (the 1.1 Alpha release) and OOo are writing out files that should be equivalent to OOo 1.1.2 on the other platforms. If you have Neo/J and OOo installed, one doesn't affect the other; the only potential "overlap" between the two installations would affect whether NeoJ or Start OOo is associated with various file extensions (the DefaultForType key in the plist file for the two apps). So that shouldn't affect the output format. The default set of styles in Stylist should also match OOo 1.1.2 on the other platforms for both OOo and for Neo/J.
If you're using NeoJ 0.8.4 (or earlier), it will write out in OOo 1.0.3 format. From the brief reading I did for the forrest links it would appear that the project is only targeting 1.1 format, not earlier.
I'm not sure if any of that information would be helpful for you in trying to trace down the issue.
I think that may be helpful, Ed. I installed NeoOffice/J 0.8.4 briefly (but I thought I removed it), and perhaps some of those files are still present. Do you know where I should look to eradicate those files? Should I delete NeoOffice/J as well? I can always reinstall (I agree with you that I don't think the N/J 1.1 Alpha and OOo1.1.2 are probably not adversely affecting each other, but perhaps older files from N/J 0.8.4 are...).
UPDATE: I got a reply[1] to a cross-post to the Forrest list that indicated a link discussing a similar problem[2]:
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Tue Oct 05, 2004 8:38 pm Post subject:
The older Neo/J 0.8.4 shouldn't be a problem to leave around...but any .sxw files you saved with Neo/J 0.8.4 should probably be re-opened in either OOo 1.1.2 and Neo/J 1.1 Alpha and then re-saved. AFAIK there's no easy "batch converter" to do any updates to the file format. I don't think there would've been any major format changes, but I can't say for certain.
If you want to get rid of an old Neo/J installation, just grab the application bundle and throw it in the trash. Uninstalling OOo is a tad more complex. You can get rid of the "OpenOffice.org1.x" folder inside of /Applications. That will get rid of OOo, but only OOo. The other dependent applications (X11, ghostscript, fondu) will remain installed and you need to go through and remove all of those manually according to their own uninstall processes.
The older Neo/J 0.8.4 shouldn't be a problem to leave around...but any .sxw files you saved with Neo/J 0.8.4 should probably be re-opened in either OOo 1.1.2 and Neo/J 1.1 Alpha and then re-saved. AFAIK there's no easy "batch converter" to do any updates to the file format. I don't think there would've been any major format changes, but I can't say for certain.
I've found two macros that do mass conversions in OOo/NeoJ:
A Forrest JIRA issue[1] has been created, which covers this (apparently) OOo bug:
1 Create a new text file.
2 Create 20 lines of text, one of each style Heading 1-10, with a "default" format line between each.
3 Save this file (as "head.sxw" for example), unzip it and examine its content.xml. You will see that all of the headings are of the format:
4 Copy head.sxw this to headless.sxw.
5 Open headless.sxw, delete the Heading 5 line, then save and close the file.
6 Reopen headless.sxw, and add a new line where the original Heading 5 line had been. Change the style of this new line to Heading 5.
7 Save this file, unzip it and examine its content.xml. The new line of style heading 5 is:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum