r351574nc3 / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

Processing instructions ignored with the embedded stylesheet #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I noticed an issue with the plugin when trying the implement hard page
breaks as described in TCG
(http://www.sagehill.net/docbookxsl/PageBreaking.html). It seems that the
processing instructions are ignored if the stylesheet included in the
plugin is used.

I have a custom stylesheet defined like this:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">

  <xsl:import href="urn:docbkx:stylesheet"/>

  <xsl:template match="processing-instruction('hard-pagebreak')">
    <fo:block break-after='page'/>
  </xsl:template>
</xsl:stylesheet>

With this the <?hard-pagebreak?> instructions in the document are ignored.

If I change the xsl:import to point to the stylesheet installed manually on
the system, the instruction is properly processed:

<xsl:import href="file:/C:/dev/docbook-xsl-1.73.2/fo/docbook.xsl"/>

This was tested with the 2.0.9 plugin.

Original issue reported on code.google.com by emmanuel...@gmail.com on 30 Apr 2009 at 9:02

GoogleCodeExporter commented 9 years ago
Hi,

thank you for the bug report, I will check what is going on because it is 
supposed to
work.

Regards,
Mimil

Original comment by MimilO...@gmail.com on 7 May 2009 at 10:21

GoogleCodeExporter commented 9 years ago
It seems to be working as expected on 2.0.10-snapshot (note that it uses docbook
1.75.2 but it should not be related)
I don't think we will investigate for a patch for 2.0.9, you can get 
2.0.10-snapshot
from svn or wait for a release. If really are in need of it a will make a 
snapshot.

Cédric,

Original comment by MimilO...@gmail.com on 24 Aug 2009 at 9:12

GoogleCodeExporter commented 9 years ago
Thank you, I'll give it a try with the 2.0.10 release.

Original comment by emmanuel...@gmail.com on 25 Aug 2009 at 7:19

GoogleCodeExporter commented 9 years ago
I tried on 2.0.10-snapshot and I confirm it works fine. Thank you.

Original comment by emmanuel...@gmail.com on 27 Aug 2009 at 8:45

GoogleCodeExporter commented 9 years ago
Thank you for the test.

Cédric,

Original comment by MimilO...@gmail.com on 27 Aug 2009 at 8:57

GoogleCodeExporter commented 9 years ago

Original comment by MimilO...@gmail.com on 27 Aug 2009 at 8:58