mapref in bookmap PDF fails when using Apache FOP
Posted: Wed Nov 12, 2014 2:38 am
Hi,
Does Apache FOP support the mapref element?
We have a bookmap that references another map. For example:
<chapter href="rut1398287544909.xml">
<mapref format="ditamap" href="rut1403546461797.ditamap"/>
</chapter>
When using the "out-of-the-box" DITA Map PDF transform (which uses the Apache FOP), the transform fails:
"fo:page-sequence" is not a valid child of "fo:block"!
I tried changing it to use topicref instead of mapref, as follows, but it still fails:
<chapter href="rut1398287544909.xml">
<topicref format="ditamap" href="rut1403546461797.ditamap"/>
</chapter>
When I comment out the mapref, the PDF builds with Apache FOP.
I have created a very simple map and referenced it in the map just to see if it as something in the referenced map that was causing it to fail, and it still failed.
This PDF builds when using the XEP or Antenna House as the FOP.
I am using Oxygen 16.1, but also tried with Oxygen 14.1. It fails in both versions, although 14.1 said it was successful but no PDF was generated.
Does Apache FOP support the mapref element?
We have a bookmap that references another map. For example:
<chapter href="rut1398287544909.xml">
<mapref format="ditamap" href="rut1403546461797.ditamap"/>
</chapter>
When using the "out-of-the-box" DITA Map PDF transform (which uses the Apache FOP), the transform fails:
"fo:page-sequence" is not a valid child of "fo:block"!
I tried changing it to use topicref instead of mapref, as follows, but it still fails:
<chapter href="rut1398287544909.xml">
<topicref format="ditamap" href="rut1403546461797.ditamap"/>
</chapter>
When I comment out the mapref, the PDF builds with Apache FOP.
I have created a very simple map and referenced it in the map just to see if it as something in the referenced map that was causing it to fail, and it still failed.
This PDF builds when using the XEP or Antenna House as the FOP.
I am using Oxygen 16.1, but also tried with Oxygen 14.1. It fails in both versions, although 14.1 said it was successful but no PDF was generated.