Located in the XML file:
<send-fax>Y</send-fax>
Jeff
________________________________
From: Pete Allison [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2008 3:56 PM
To: [email protected]
Subject: RE: Using CHOOSE to control image in region-body
What is the context for "./send-fax" ?
________________________________
From: Steffanina, Jeff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2008 2:38 PM
To: [email protected]
Subject: RE: Using CHOOSE to control image in region-body
Eric,
I made the suggested change and checked the case. No
difference in the output.
Any other thoughts?
Jeff
________________________________
From: Amick, Eric [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2008 3:11 PM
To: [email protected]
Subject: RE: Using CHOOSE to control image in
region-body
I can think of two possibilities off the top of my head:
The value is a lowercase Y, or there is whitespace present. Try
normalize-space(send-fax)='Y' instead.
Eric Amick
Legislative Computer Systems
Office of the Clerk
________________________________
From: Steffanina, Jeff
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 7, 2008 14:54
To: [email protected]
Subject: Using CHOOSE to control image in region-body
FOP 0.95 / Redhat Linux / Java 1.5
When the tag "send-fax" does not exist print the lilly,
when send-fax=Y, print the pebble. I always get the Lilly. Can you
determine why?
<xsl:choose>
<xsl:when test="./send-fax='Y'">
<!-- region-before means region before the
body(top 1/3 of folio -->
<fo:region-before extent="3.0in"
background-repeat="no-repeat"
margin-top=".5in"
background-image="url('java/images/Pebble.jpg')"
background-position-vertical="bottom"
display-align="after" />
</xsl:when>
<xsl:otherwise>
<fo:region-before extent="3.0in"
background-repeat="no-repeat"
margin-top=".5in"
background-image="url('java/images/Lilly.jpg')"
background-position-vertical="bottom"
display-align="after" />
</xsl:otherwise>
</xsl:choose>
Jeff