jduranmaster / docbkx-tools

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

xml:id is not working with <rootid> #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To use the <rootid> in the plugin configuration a have to set the old 
id-attribute. Using xml:id cause an error that says.

[INFO] Failed to transform guide.xml.
Embedded error: Processing terminated by xsl:message at line 328  

On the other hand, I don't want to use the id-attribute because it leads to 
validation errors in the docbook 5 document. 

Additional informations:
I'm using xmlns="http://docbook.org/ns/docbook" and version="5.0" on the root 
element. The docbkx-maven-plugin in the Version 2.0.13 (same problem with 
2.0.11). And the dependency     

<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>5.0-all</version>
<classifier>resources</classifier>
<type>zip</type>
<scope>runtime</scope>

It's the same problem on Windows and Linux.

Original issue reported on code.google.com by Nico.Alp...@googlemail.com on 11 Oct 2011 at 9:52

GoogleCodeExporter commented 8 years ago
Hi,

while looking at sources of docbook it seems that id and xml:id are handled the 
same. So it should be safe to specify xml:id in files and use rootid parameter.
I have not yet tried it by myself, can you post your sample?

Regards,
Mimil

Original comment by MimilO...@gmail.com on 12 Oct 2011 at 6:37

GoogleCodeExporter commented 8 years ago
Hi Mimil,

Sorry, you are absolutly right. I tried a small setting and everything is 
working fine. After I referenced my own styles with <foCustomization> it is not 
working anymore. I think i have to test more. Now I can only say, if i'm using 
the import <xsl:import href="urn:docbkx:stylesheet" /> it's working. If i 
change to <xsl:import href="urn:docbkx:stylesheet/profile-docbook.xsl" /> i got 
the described error message. 
I will try more things and notify you than.

By the way. Thanks for the great job. It makes fun to use the plugin.

Regards,
Nico

Original comment by Nico.Alp...@googlemail.com on 13 Oct 2011 at 7:57

GoogleCodeExporter commented 8 years ago
Hi Mimil,
i think there is something wrong with my stylesheet. The plugin is fine. You 
can close the defect.

by
Nico

Original comment by Nico.Alp...@googlemail.com on 13 Oct 2011 at 8:31

GoogleCodeExporter commented 8 years ago
Hi,

okay, while looking at this issue I found a post talking about profile and 
rootid issue on docbook mailing list: 
http://lists.oasis-open.org/archives/docbook-apps/201005/msg00106.html

I have not look at it.

Have fun with the plugin =)
Mimil,

Original comment by MimilO...@gmail.com on 13 Oct 2011 at 8:50