Loading ...
Sorry, an error occurred while loading the content.

Expand Messages
  • aananth s
    hi, I have the follwoing XML fragment 4732 and
    Message 1 of 1 , Nov 1, 2003
    • 0 Attachment
      hi,

      I have the follwoing XML fragment

      <QuoteShipmentVO>
      <QuoteShipmentVORow>
      <QuoteHeaderId>4732</QuoteHeaderId>
      </QuoteShipmentVORow>
      </QuoteShipmentVO>

      and the following xsl fragment


      <xsl:variable name="add-chk"
      select="//QuoteShipmentVO/QuoteShipmentVORow"/>

      <xsl:choose>

      <xsl:when test="$add-chk/ShipToContactName='' and
      $add-chk/ShipToCustPartyName='' and

      $add-chk/ShipToAddress1='' and
      $add-chk/ShipToAddress2='' and

      $add-chk/ShipToAddress3='' and
      $add-chk/ShipToAddress4='' and $add-chk/ShipToCity=''

      and $add-chk/ShipToCounty='' and
      $add-chk/ShipToCountry=''"/>

      <xsl:otherwise>

      <fo:block xsl:use-attribute-sets="table.data1">Ship
      To  </fo:block>

      </xsl:otherwise>

      </xsl:choose>

      always prints the otherwise part and not the when part
      even though the tags in the test condition are not
      present.
      What am i missing?Is there a better way to do
      this?thanks for your inputs.

      thanks
      aananth

      =====
      STRENGTH IS LIFE , WEAKNESS IS DEATH!

      __________________________________
      Do you Yahoo!?
      Exclusive Video Premiere - Britney Spears
      http://launch.yahoo.com/promos/britneyspears/
    Your message has been successfully submitted and would be delivered to recipients shortly.