xsl:import href="urn:docbkx:stylesheet"

45 views
Skip to first unread message

nick.w...@gmail.com

unread,
Feb 5, 2016, 7:16:00 AM2/5/16
to Docbkx Tools Users
Hi,

I am still working with DocBook 4.5, and will have to, until a couple of my projects conclude in the middle/end of this year.  I Would like to be able to use <xsl:import href="urn:docbkx:stylesheet" /> in my customisation layer, as currently I have the entire docbook-xsl-1.72.0 set being pulled locally.  The import from "urn:docbkx:stylesheet" uses the stylesheets located in my local .m2 repsoitory but by default use docbook-xsl-1.78.1, so I need to change the location where the symbolic link resolves to but I cannot find where the value it is stored.  Can anyone help?

Cheers

Nick

Mimil Owns

unread,
Feb 9, 2016, 2:43:26 PM2/9/16
to docbkx-to...@googlegroups.com
Hello,

in fact the version of docbook xsl is hardcoded in docbook-maven-plugin pom dependency, maybe you could play with maven to discard a dependency and set a new one.

I am trying to make a sample, as for now no luck, I hope maven is able to do that. As soon as I find I tell you. The way I check which version if used is in generating an html then open the sources and check the "generator" meta field.

Or rebuild docbkx with the new dependecy but not the situation you want I guess.

Regards,
Cedric

--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docbkx-tools-us...@googlegroups.com.
To post to this group, send email to docbkx-to...@googlegroups.com.
Visit this group at https://groups.google.com/group/docbkx-tools-users.
For more options, visit https://groups.google.com/d/optout.

Mimil Owns

unread,
Feb 9, 2016, 3:20:29 PM2/9/16
to docbkx-to...@googlegroups.com
Seems not that trivial in maven, I didn't yet found how to exclude a dependency from a plugin

Mimil Owns

unread,
Feb 14, 2016, 3:50:59 PM2/14/16
to docbkx-to...@googlegroups.com
Hello,

I think it is working, maybe I forget a parameter last time. Could you give it a try like this:

<profile>
<id>docbkx.dependency</id>
<build>
<plugins>
<plugin>
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId>
<version>${project.version}</version>
<dependencies>
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>5.0-all</version>
<classifier>resources</classifier>
<type>zip</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xsl</artifactId>
<version>1.76.1</version>
<classifier>ns-resources</classifier>
<type>zip</type>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>generate-html</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>article.xml</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>

At least the html generation is changed according to the dependency version. Concerning your stylesheet in 1.72, you will have to make it the same content layout as the artifact 1.78.x

Regards,
Cedric

Reply all
Reply to author
Forward
0 new messages