hydralix / docbkx-tools

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

Xinclude (chapters) with images raise a generation bug #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
sometimes,  you can use XInclude in your docbook document, to divide
content into small parts (chapters). if you use some images in chapters,
block content ('sec2' or 'caution' element for example)after the first
image is empty.

this display bug is present only locally to the chapter which contains images.

this bug has been raised with this maven2 plugin declaration:
 <plugin>
                        <groupId>com.agilejava.docbkx</groupId>
                        <artifactId>docbkx-maven-plugin</artifactId>
                        <executions>
                          <execution>
                                            <!--
<id>html-with-single-output</id>-->
                            <goals>
                              <goal>generate-html</goal>
                            </goals>
                            <phase>pre-site</phase>

                          </execution>

                        </executions>
                        <dependencies>
                          <dependency>
                            <groupId>org.docbook</groupId>
                            <artifactId>docbook-xml</artifactId>
                            <version>4.4</version>
                            <scope>runtime</scope>
                          </dependency>
                        </dependencies>
<configuration>
                             <sourceDirectory>${basedir}/src/docbkx</sourceDirectory>

<includes>**/jguard_step_by_step_eclipse.xml,**/en_jGuard_reference_master.xml,*
*/en_jGuard_reference_master_1.xml</includes>

<chunkedOutput>false</chunkedOutput>

<targetDirectory>${basedir}/target/site/docbkx</targetDirectory>

<xincludeSupported>true</xincludeSupported>

<imgSrcPath>../../../images/</imgSrcPath>

<monospaceVerbatimProperties>wrap</monospaceVerbatimProperties>

<htmlStylesheet>../../../css/jguard-docbook.css</htmlStylesheet>

<sectionAutolabel>1</sectionAutolabel>

<sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel>
                                                <!-- 
<htmlCustomization>${basedir}/src/docbkx/resources/xsl/jguard-docbook-html.xsl</
htmlCustomization>-->

<!--<foCustomization>src/docbook/resources/xsl/jguard-docbook-fopdf.xsl</foCusto
mization>
-->
<!--  <entities>
                                                                      <entity>

<name>version</name>

<value>${version}</value>

</entity>
/entities>-->
   </configuration>
</plugin>                       

cheers,

Charles.
http://www.jguard.net

Original issue reported on code.google.com by charles.gay@gmail.com on 30 Jun 2007 at 2:48

GoogleCodeExporter commented 9 years ago
Thanks Charles. 

How do you actually reference your images. (Entityrefs?)

Wilfred

Original comment by fris...@gmail.com on 20 Jul 2007 at 6:59

GoogleCodeExporter commented 9 years ago
Hi Wilfred,
no i don't use entityrefs, but this kind of code:
<mediaobject>
<imageobject>
<imagedata fileref="bricks-640x400.png" format="PNG">
</imagedata>
</imageobject>
</mediaobject>

hope it helps,

cheers,

Charles.
ps: thank you very much for your great plugin!

Original comment by charles.gay@gmail.com on 20 Jul 2007 at 8:03

GoogleCodeExporter commented 9 years ago
Hi,

Can you tell us what are the links generated?
Do you have nested subdirectories in your docbook directories?

Mimil,

Original comment by MimilO...@gmail.com on 18 Jan 2008 at 8:09

GoogleCodeExporter commented 9 years ago
I can't see a difference between image references from the document itself and 
image
references from the xincluded sections. The attached zip file contains a 
project that
contains both types of references. It always results in the same URL. 

Original comment by wilfreds...@gmail.com on 11 Feb 2010 at 8:07

Attachments:

GoogleCodeExporter commented 9 years ago
Based on the above, I think we need to close this issue.

Original comment by wilfreds...@gmail.com on 11 Feb 2010 at 8:08