Hi,

We have several developers here and depending on the developer we need to do
a different xslt transformation (it's for testing and everyone has it's own
testing database env). So I thought I could use maven profiles with
different properties, insert the variable name in the transformation
stylesheet and voila..but it doesn't seem to work, the transform works but
the maven property doesn't get filled in :-(

This is the input:
<class name="Tblmailings" table="tblmailings" catalog="vbasebe">
        <id name="mailing" type="string">

Output:
<class name="Tblmailings" table="tblmailings"
catalog="${jdbc.username}_vb25" >
        <id name="mailing" type="string">

Maven snippet:
 <profile>
            <id>olivier</id>
            <properties>
                   <jdbc.username>olivier</jdbc.username>
            </properties>
 </profile>


XSLT:
<xsl:template match="class/@catalog">
        <xsl:attribute name="catalog">${jdbc.username}_vb25</xsl:attribute>
</xsl:template>



Anyone knows if it's possible to use maven properties with the
xslt-maven-plugin in this way?

Olivier




-- 
"Talent and all that for the most part is nothing but hogwash. Any schoolboy
with a little aptitude might very well draw better than I perhaps; but what
he most often lacks is the tough yearning for realization, the
teeth-grinding obstinacy and saying: even though I know I'm not capable of
it, I'm still going to do it." -- M.C. Escher, in a letter to his son
Arthur, 12 February 1955

Reply via email to