Home » Developer & Programmer » JDeveloper, Java & XML » OR condition in XML
OR condition in XML [message #176262] Wed, 07 June 2006 09:26 Go to next message
samidc
Messages: 35
Registered: February 2006
Member
Hi,

I am New to XML. In XML i am using choose condition in XML editor as:

<?choose:?><?when://JHGGDF/ACCT_LEVEL_PARAM=""?>


I would like to add one OR condition in when clause as:
<?choose:?>
<?when://JHGGDF/ACCT_LEVEL_PARAM="" or JHGGDF/ACCT_LEVEL_PARAM=0 ?>

I dont know whether above is right could you plz let me know how to add OR condition in this case.


Thanks
SaM

Re: OR condition in XML [message #181627 is a reply to message #176262] Mon, 10 July 2006 22:09 Go to previous message
hobbes
Messages: 173
Registered: January 2006
Senior Member
The syntax is:
      <xsl:choose>
        <xsl:when test="(condition 1) or (condition 2)">
          <!-- Do whatever -->
        </xsl:when>
      </xsl:choose>
Previous Topic: Calling a webservice from another in Oracle forms
Next Topic: XML parsing using PL\SQL
Goto Forum:
  


Current Time: Mon Nov 25 00:36:35 CST 2024