I'm still planning to write my Table-header with "Continued" extension sometime in the mythical future when I get my head above water. Does this fall into #1 or #3? Is it really realisitic that I'll be able to get this done in a few days? I'm pretty good with Java and I have access to a couple of near-gurus.
As a refresher, the idea is make some table-header functionality that adds the word "Continued" (or anything) on all instances of the table-header but the first. I'm willing to make it very extensible, unless quick and dirty is just much easier. (IE - even hardcoding the word "Continued" somewhere, although I realize that won't help the group as much.) thx a lot -Matt Keiron Liddle wrote: > > Hi, > > I think you confusing a few things. > > Starting from this page: > http://xml.apache.org/fop/extensions.html > (it could be a bit better and there will be some examples one day) > > The default extensions are svg and the bookmarks so you can just use these. > > To make your own extension you need to consider what you want to do first. > > 1. do you want to put a formatting object area in the output, eg. some > text, block etc. > 2. do you want a graphic in the output, ie. somthing that could be done > with svg > 3. do you want to do some document specific settings such as what the > bookmarks does > also what version are you using, this is about the latest release. > > If 1. then you need to do a similar sort of thing to all other fo objects. > If 2. then you setup a class that can get a DOM and turn it into SVG. > If 3. then it is a bit more difficult. > > It doesn't say to extend ExtensionObj, this is just an example. > > More below... > > On 2002.01.10 18:15 Software AG wrote: > > Hi, there. > > > > Trying to create a FOP Extension I'm getting totally confused with the > > docs. > > The HTML document says to just have a look at org.apache.fop.extensions.* > > and implement the ExtensionObj interface. ExtensionObj is not an > > interface > > but a class, and hardly documented. So all I know is I need to overload > > the > > > > public Status layout(Area area) > > > > method. I have rendering code that eats a dom tree and spits out a > > java.awt.Image or GIF or whatsoever. Looking at the SVG extension code > > confused me more than it helped. From the list archives I could not > > derive a > > cookbook what to do. > > > > - What class do I have to extend: Area (like SVGArea) or ExtensionObj? > > You will likely need to extend FObj. > > > - How is this new class going to get the DOM tree inside the > > fo:instream-foreign-object element? > > The same what that SVG gets the DOM > > > - How is this new class going to pass the rendered image to FOP? > > ?? > If you want SVG for the output then just do what the SVG does, ie. put the > SVG DOM into an SVGArea. > > > - How do I correctly register the new class so FOP will call it? > > As on the website > "include the following file > "/META-INF/services/org.apache.fop.fo.ElementMapping". In this file you > need to put the fully qualified classname of your element mappings class. > This class must implement the "org.apache.fop.fo.ElementMapping" > interface." > > > - What happens if I cannot provide name spaces on the elements? > > You must have a separate namespace. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]