← Prev in month ← Prev in thread

Passing parameters to my XLS customizing sheet with Apache Ant

From
Lars Vogel <>
Date
2012-06-02T19:27:00+00:00
ID
CAOeJ3wtFKzwpEMHNcczhgz7=W3Y_apXxKUKz8ZLVu=
Thread
Passing parameters to my XLS customizing sheet with Apache Ant
Hello,

I has customizing layer which adds a footnote to my pdf output. In this layer I have to define values for the different places frequently.

------

<xsl:when

   test="$double.sided != 0 and $sequence = 'even'

   and $position='right'">

   Example Example, Review version

 </xsl:when>

<xsl:when

   test="$double.sided != 0 and $sequence = 'odd'

   and $position='left'">

   Example Example, Review version

</xsl:when>

Is there an way to pass parameters to my customizing layer via the Apache Ant build file similar to the parameters I pass to the standard XSL sheets? In standard I use for example the following:

<param name="chapter.autolabel" _expression_="1" />

I tried to use a similar approach:

I pass the value via the following:

<param name="footnotetext" _expression_="Example Example, Review version" />

I try to evaluate it via the following:

<xsl:choose>

						<xsl:when test="string($footnotetext) != 0">

							<xsl:value-of select="$footnotetext" />

						</xsl:when>

					</xsl:choose>

I get the error message:      [xslt] /home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/mypdfdocbook.xsl:147: Error! Variable footnotetext has not been declared

What did I do wrong?

Best regards, Lars

-- 
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials

http://www.twitter.com/vogella - Lars on Twitter
← Prev in month ← Prev in thread