|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
How to debug why xsl:if condition is not workingHi
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> <xsl:variable name="type" select="L"></xsl:variable>
-- Ashish www.ayurwellness.com www.mysoftwareneeds.com |
|
|
Re: How to debug why xsl:if condition is not workingHi,
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 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: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
|
|
Re: How to debug why xsl:if condition is not workingHi
What i am trying to compare is if record/PCORIG is of value 'L' then print text from <fo:block> so if i convert to sudo code it must be like this if(record/PCORIG = 'L')
{ print (LOS IMPORTES EXPRESADOS NO INCLUYEN I.V.A.) }
On Fri, Oct 30, 2009 at 11:08 AM, Pascal Sancho <pascal.sancho@...> wrote: Hi, -- Ashish www.ayurwellness.com www.mysoftwareneeds.com |
|
|
Re: How to debug why xsl:if condition is not workingHi,
Can you try with this .... this should work <xsl:variable name="local">L</xsl:variable> Thanks, Venkat. Ashish Kulkarni wrote: > 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 > www.ayurwellness.com <http://www.ayurwellness.com> > www.mysoftwareneeds.com <http://www.mysoftwareneeds.com> --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@... For additional commands, e-mail: fop-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |