Hi David,
thanks. That did the trick.
Best regards, Lars
2012/6/2 David Cramer <
david@thingbag.net>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Lars,
> Have you put in your customization layer (perhaps at the top) a
> declaration for the param you're passing in with a default value?
>
> <xsl:param name="footnotetext">0</xsl:param>
>
> David
>
> On 06/02/2012 02:26 PM, Lars Vogel wrote:
> > 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:
> >
> >
> >
> > I tried to use a similar approach:
> >
> > I pass the value via the following:
> >
> >
> >
> > 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/>
> iQEcBAEBAgAGBQJPynBrAAoJEMHeSXG7afUhhy4H/2o6Do+9+9/A0hDZ9DUYBuZE
> XEjujJtpsGdFBeU+tC7JYQADTDvgFS4fKNx5UlS0x85l67loslG6mOBZw6n6qFPK
> 6iBwQ8hLogRTvguMDYT+wF1jEfQa5Zxgm1Cp3uqRjm0dqrzdtHGQUc18ZoeyQ2kx
> 076rEMNH+HG+f1RoPKgf7YU/zamVCQjAmyWLNQ18BsUGpCWyDxi2jJ0lmLZxRGfL
> 6x7HhaRIQ/wge3oY6/obxsWA74X9s5eGmeL7oU+zwUjzjQLhPayIMdMKNYHxX7w4
> kKQW9hg1RlfvHxIRb2dLf9TimR6N5mZGcWnQCz74UuFBwmgwrLYn54VbdCV44/Q=
> =F7+M
> -----END PGP SIGNATURE-----
>
--
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter