You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jo...@BTFinancialgroup.com on 2001/08/17 04:28:36 UTC

Property inheritance (space-before)

Hi there,

Sorry about the cross post, I just posted this to XSL-FO@yahoogroups.com, but thought as the difference is in two versions of FOP, someone here could help me understand my problem.

I'm quite new to using XSL-FO and have got a question about what is correct syntax for XSL-FO regarding property inheritance. I recently upgraded from FOP 0.17 to FOP 0.20.1.

I have some XSL that generates the following snippet:
   <fo:table-row space-before="12pt">
      <fo:table-cell>
        <fo:block>Some block text</fo:block>
      </fo:table-cell>
   </fo:table-row>

With FOP 0.17 this put a 12pt space between this row and the previous row, but with FOP 0.20.1 it doesn't.

>From what I can find in the spec 7.9.5 [1], the space-before inherits from it's parent. The spec also mentions that inheritable properties 5.1.4 [2] can be put in any formatting object and subsequent children will pick up the property.

However, space-before isn't a valid property for a table-row.

So, I'm assuming it is incorrect to put the space-before attribute in the table-row element? Can someone explain how the inheritance thing works then?

Again, sorry about the cross post.

Thanks a lot,
Joshua

[1] http://www.w3.org/TR/xsl/slice7.html#space-before
[2] http://www.w3.org/TR/xsl/slice5.html#inheritance

------------------------------------------------------------------------------
This message and any attachment is confidential and may be privileged or otherwise protected from disclosure.  If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone.





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org