Hi,
Ashish Kulkarni a écrit :
Hi
I am trying to work on this condition, but for some reason it is not
working, i dont get any output on my PDF file, if i remove the
condition then the text is printed, how do i debug why test condition
is not working
<xsl:variable name="type" select="record/PCORIG"></xsl:variable>
<xsl:variable name="local" select="L"></xsl:variable>
<xsl:if test="$type=$local">
<fo:block>
LOS IMPORTES EXPRESADOS NO INCLUYEN I.V.A.
</fo:block>
</xsl:if>
i know record/PCORIG has value L, i also tried to set as below and
try to run, but still with no luck
<xsl:variable name="type" select="L"></xsl:variable>
--
Ashish
<xsl:variable name="local" select="L"> means the <L> element.
I guess you want to check if $type equals to the text node "L".
In this case:
you should write:
either: <xsl:variable name="local" select="'L'"/>
or: <xsl:variable name="local">L</xsl:variable>
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]