W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2010

how to test a marker in an xsl:if (via a variable?)

From: Arian <armyofda12mnkeys@gmail.com>
Date: Wed, 3 Mar 2010 17:50:23 -0500
Message-ID: <797650581003031450j1dc441favde63f07aba2e158f@mail.gmail.com>
To: www-xsl-fo@w3.org
Hey all,
I would like to make something show up in my xsl if the marker is set to a
certain value...
So I set a marker in a template and then another template is called... In
that 2nd template, i have a line like so:

<xsl:variable name="var_birthday"><fo:retrieve-marker
<xsl:if test="$var_birthday != ''">
....some output

but above doesnt work as I'd expect... Can I do this without passing
xsl:param's into the template and just use the marker somehow in the if

My best idea was to  place it like above in a variable, but doesnt work like
I expected.

Received on Wednesday, 3 March 2010 22:50:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:33 UTC