tforsberg / docbkx-tools

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

Be able to define execution-specific properties #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, with the Docbkx Maven Plugin, I can define properties in my POM and have 
them appear in the XML, for subsequent usage by the docbook XSL stylesheets (as 
shown near Example 8 here[1]):

<properties>
    <title>My Book</title>
    <subtitle1>My Book's Subtitle'</subtitle1>
</properties>

All I need to do is use <?eval ${title}?> within my docbook XML file and I'm 
all set, the value correctly copies over.

However, I would like to have execution-specific properties, i.e., my pom.xml 
has multiple executions of the Docbook Maven Plugin, publishing different 
documents, with each document having a different title & subtitle.  I'm not 
interested in using entities for this, of which example #8 in [1] provides a 
good solution (I'm trying to be completely on XInclude instead), but it would 
be nice if within the configuration for each execution of the docbook maven 
plugin, I could define properties similar to the above so that <?eval 
${title}?> will resolve properly for each document.

As-is, as far as I can tell, I'm limited to one execution per POM file because 
I have to keep properties at a POM level.  I realize I can put properties at 
the profile level, and if I define one execution per profile and have all 
profiles active, that might work but that seems to be a cumbersome way of doing 
things.

(BTW, there may be a way to do what I'm requesting anyway, please inform if 
that's the case.)

Thanks!

[1] http://docbkx-tools.sourceforge.net/docbkx-samples/manual.html

Original issue reported on code.google.com by glen.ma...@gmail.com on 23 Sep 2011 at 7:53

GoogleCodeExporter commented 8 years ago
Hi,

as for now I think you found all the available possibilities, I think it is not 
possible to do more with maven properties, so it will need a new feature.

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