Altova Mailing List Archives


Re: strange behavior of xsl:if

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 11/27/2009 12:09:00 PM
IRQ wrote:

> Can someone tell me why sometimes there is a paying blank and sometimes 
> not, for the same XML invoice data. Please look on my example data below 
> (i publish appropriate fragments of my xml and xsl files), and say what 
> i should improve in my test condition.

> fragment of my invoice XML
> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
>   <Faktura>
>     <!-- more invoice data -->
>     <Egzemplarz Rodzaj="Orygina³" Id="0" />
>     <DaneBlankietu>
>   <RodzajBlankietu>1</RodzajBlankietu>
>   <Blankiet>
>     </Blankiet>
>     </DaneBlankietu>
>     </Faktura>
>     
> 
> fragment of my xsl
> <!-- xslt transformation to xsl_fo -->
>         <xsl:if 
> test="($Faktura/ProcessingInfo/DaneBlankietu/RodzajBlankietu =1) and
>                   ($Faktura/ProcessingInfo/Egzemplarz/@Rodzaj = 
> 'Orygina³' or
>                    $Faktura/ProcessingInfo/Egzemplarz/@Rodzaj = 
> 'Duplikat')">
> 
> <!-- in invoice should be the paying blank -->
> 
>          </xsl:if>

Consider to post a minimal but complete XML input and stylesheet that 
allows us to reproduce the problem.
Then post the result you get and the result you want instead.
And also tell us which XSLT processor you use.

-- 

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.