Steffanina, Jeff wrote:
Located in the XML file: <send-fax>Y</send-fax>


Located where? Probably there is no send-fax element with the text content 'Y' that is a child of the context node. I suspect that the context node is something other than what you expect in the place where that choose instruction is. For example, if the choose is inside a for-each the context node is probably not what it was when the template matched.

Incidentally, "./send-fax='Y'" is the same as "send-fax='Y'".

Kendall

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to