1

Closed

openVideoInLightbox error

description

I found an error/bug with the xslt file for the macro.
 
<xsl:variable name="openVideoInLightbox" select="bool(/macro/openVideoInLightbox)" />
 
always returns true, something about the bool(/macro/openVideoInLightbox) always rendering at true.
 
However changing that line to
 
<xsl:variable name="openVideoInLightbox" select="number(/macro/openVideoInLightbox)" />
 
and changing
 
<xsl:when test="$openVideoInLightbox = 'true'">
 
to
 
<xsl:when test="$openVideoInLightbox = '1'">
 
seems to do the trick.
Closed Jan 4, 2011 at 1:26 PM by raly76

comments

raly76 wrote May 14, 2010 at 7:33 AM

Thank you. I'll take it into the next version

wrote Jan 4, 2011 at 1:25 PM

wrote Jan 4, 2011 at 1:26 PM

Resolved with changeset 54507.

szilderus wrote Jan 3, 2012 at 11:25 AM

seems that problem still exists - I've change
<xsl:when test="$openVideoInLightbox = 'true'">
to
<xsl:when test="openVideoInLightbox = 'true'">
and started to work?

greetings
Michal

wrote Feb 13, 2013 at 7:10 PM

wrote May 15, 2013 at 10:50 PM