[xsl] xsl:choose

Subject: [xsl] xsl:choose
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 3 Nov 2004 15:39:29 -0000
Hi,

I am having a problem with a choose statement.  It seems to me to be a vlid
statement, but it does not print either first option or second!

Just cannot see what is wrong with it.

- <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

Current Thread