A (long) question on implementing fo:retrieve-table-marker

2008-09-02 Thread Jean-François El Fouly

I take as reference: http://www.w3.org/TR/xsl/

To begin with, I've built a simple example / test case related to my 
customer's needs but fairly based on the one in 6.13.1.1.2: 
http://www.w3.org/TR/xsl/#d0e14681
This example looks good and though not trivial to understand at first 
sight, it is a common-sense use of fo:retrieve-table-marker.
It has a sort of "conditional row" that is displayed (or not) in the 
table footer and is defined just after table-body:


*
 
   
 Table continued...
   
 
   
*

Now if I run my test case against the trunk of FOP I get this error message:

*GRAVE: Exception
javax.xml.transform.TransformerException: 
org.apache.fop.fo.ValidationException:
file:/D:/Java/fop-0.95beta/test-rtm.fo:533:112: Error(533/112): 
fo:retrieve-tab

le-marker is not a valid child element of fo:table-header.
*
For the sake of clarity only let's call this a "bug" since 
*fo-retrieve-table-marker* /is/ a valid child element of 
*fo:table-header:* http://www.w3.org/TR/xsl/#fo_retrieve-table-marker
So let's read the full stack trace and "fix" this by adding one more 
condition in *org.apache.fop.fo.flow.table.TablePart.validateChildNode()*.
The next step is where I'm puzzled and don't know how to proceed since 
the W3C recommendation and the example they give seem inconsistent with 
each other, while the error message FOP returns seems consistent with 
the recommendation:


*GRAVE: Exception
javax.xml.transform.TransformerException: 
org.apache.fop.fo.ValidationException:
"{http://www.w3.org/1999/XSL/Format}table-row"; is not a valid child of 
"fo:mark

er"! (See position 557:21)
*
This error is consistent with the W3C TR: 
http://www.w3.org/TR/xsl/#fo_marker

that says that the fo:marker contents is:

(#PCDATA|%inline; |%block; 
)*

but it makes the example they give useless (indeed, neither inline nor 
block allow directly or indirectly table-row).
And so I don't quite know where I'm allowed to go from here. (If I 
change a behaviour in 
*org.apache.fop.fo.flow.Marker.validateChildNode()* I may end up with 
something that works and fits the bill but is inconsistent with the TR).


Any comment appreciated !

Jean-Francois El Fouly



Include XSL-FO 1.1 features

2008-06-19 Thread Jean-François El Fouly

We need a couple XSL:FO 1.1 features currently unimplemented in FOP;
specifically fo:retrieve-table-marker and one or two things like this.
We are considering adding them to FOP; don't hold your breath, I had a look
but I'm not quite sure I'll do that or how, but we consider doing it, that's
all I can say.

Before going any further, will 1.1 features be considered by the dev team
for inclusion in FOP trunk if ever we succeed in implementing them ?

-- 
View this message in context: 
http://www.nabble.com/Include-XSL-FO-1.1-features-tp18013004p18013004.html
Sent from the FOP - Dev mailing list archive at Nabble.com.