Title: Specifying variable color margins in a document
I'm trying to produce a document with different color margins, depending on the content (much like a header at the top, except as a color). However I'm running into some "interesting" problems. I using FOP 0.20.5.
Here is an example of what I'm trying to do (ignore the "color=white" part of the block, that's just so I can see what is going on):
297mm
X
Y
Z
I thought it wasn't picking up the marker, but the output from this shows that the marker value is being picked up. The output I get is something like "XYcolorZ". This shows me that the variable isn't being set properly but the marker is still being picked up.
Any ideas on why this doesn't work with setting the variable?
I've also tried the following bit so I didn't have to use the variable at all:
297mm
etc etc etc
However when I do this, Fop refuses to process it and you get the following error message:
[ERROR] javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: fo:retrieve-marker is not allowed in this position in the stylesheet!
In short, how can I do what I'm trying to do? Any suggestions would be much appreciated!
Thanks,
Ian