Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: strange behavior of xsl:if

Thread Tools

Re: strange behavior of xsl:if

Martin Honnen
Posts: n/a
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
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thunderbird strange behavior... Jim Firefox 5 11-17-2005 03:09 PM
Firefox 1.04 and Strange Find Behavior Thomas Firefox 5 06-28-2005 08:40 PM
utf8 pragma - strange behavior ryang Perl 1 04-11-2005 05:38 AM
strange behavior when using 'read' sstark Perl 0 03-06-2005 02:27 AM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM