[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:choose

Subject: Re: xsl:choose
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 3 Nov 2004 15:56:17 -0000
xsl choose statement
Hi David,

Sorry my bad.  Yes, quotation for remortgage is printing.  It is "555" or
"of" that are the alternatives and neither of these are printing.  I just
cannot see why not the choose statement looks perfectly valid to me.

If it is printing "Quotation for re-mortgage" then it must be getting to the
choose statement and unless there's something wrong with my choose statement
it should be printing one of the options.

Can you see anything wrong with the choose statement?

Regards,

Mark

----- Original Message ----- 
From: "David Carlisle" <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, November 03, 2004 3:46 PM
Subject: Re:  xsl:choose


>
>
>    - <fo:block font-family="Times-Roman" font-size="12pt"
space-after="0.05pt">
>    - <fo:inline font-weight="bold">
>      Quotation for re-mortgage
>    - <xsl:choose>
>      <xsl:when test="$VN_Condition_1 = 1">555</xsl:when>
>    - <xsl:otherwise>
>      of
>      <xsl:value-of
>    select="DATA/Table[@Name='quotes']/quote_remortgage_nameornumber" />
>
>      <xsl:value-of
>    select="DATA/Table[@Name='quotes']/quote_remortgage_addressline1" />
>      </xsl:otherwise>
>      </xsl:choose>
>      </fo:inline>
>      </fo:block>
>
>    At very least it seems to me that this should print out either
"Quotation
>    for re-mortgage" or "of", but it does neither.  Pulling my hair out and
I
>    guess there is some really basic idiot error I've made.
>
>    TIA
>
>    Mark Williams
>
> Quotation for re-mortgage is outside the xsl:choose so if that isn't being
> printed then the template that this is in isn't being applied and your
> problem is elsewhere.
>
> If an xsl:choose has an xsl:otherwise block then exactly one of its
> children is always executed (if the xsl:choose is executed at all)
> in which case the above would always produce eiether "555" or "of"
>
> David
>
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.