This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Parent of fo:marker
- From: Rodney Boyd <rodney at exegenix dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 20 Dec 2001 14:33:15 -0500
- Subject: [xsl] Parent of fo:marker
- Organization: Exegenix Research
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
According to the XSF-FO spec (section 6.11.3) "It is an error if two or
more fo:markers that share the same parent have the same
"marker-class-name" property value."
Therefore the following fragment should be illegal becuase all of the
<marker> tags are children of the same <block>, and the
marker-class-name attributes are repeated. Nevertheless, at least two
XSL-FO formatting engines accept it without complaint (though they
process the <markers> differently!)
<flow flow-name="xsl-region-body">
<block font-family="Times" font-size="12pt">
<marker marker-class-name="hLeftPart"><inline>Header Left part
1</inline></marker>
<marker marker-class-name="fLeftPart">Footer Left part 1</marker>
<block> Some simple dumb sample document</block>
<block break-before="page"></block>
<marker marker-class-name="hLeftPart">Header Left part 2 </marker>
<marker marker-class-name="fLeftPart">Footer Left part 2 </marker>
<block>Hello world</block>
</block>
</flow>
My question is, would this fragment comply with the spec if each group
of <marker> tags were enclosed in a nested <block>, as shown below?
<flow flow-name="xsl-region-body">
<block font-family="Times" font-size="12pt">
<block>
<marker marker-class-name="hLeftPart"><inline>Header Left part
1</inline></marker>
<marker marker-class-name="fLeftPart">Footer Left part 1</marker>
</block>
<block> Some simple dumb sample document</block>
<block break-before="page"></block>
<block>
<marker marker-class-name="hLeftPart">Header Left part 2 </marker>
<marker marker-class-name="fLeftPart">Footer Left part 2 </marker>
</block>
<block>Hello world</block>
</block>
</flow>
(fo namespace implied throughout)
Thanks and regards,
Rodney
--
Rodney Boyd
Document Conversion Analyst
Exegenix Research
http://www.exegenix.com
+1 416 762 2433
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list