xsl-list
[Top] [All Lists]

Re: xsl:choose

2004-11-03 08:52:42
"Quotation for re-mortgage" is outside the choose element. So, if it is 
not appearing, the problem is not with the choose element but with the 
element that contains the choose element. Show us more of your code (such 
as the whole template in question) and tells us what goals you are trying 
to achieve.

Jay Bryant
Bryant Communication Services




"Mark Williams" <mark(_at_)skwirel(_dot_)com> 
11/03/2004 09:39 AM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


To
"XSL-List" <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
cc

Subject
[xsl] xsl:choose






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[(_at_)Name='quotes']/quote_remortgage_nameornumber" />

  <xsl:value-of
select="DATA/Table[(_at_)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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





<Prev in Thread] Current Thread [Next in Thread>