title: XSLT if expression syntax, combining more than one expression
body: <p>Trying to combine an if statement using <code>&lt;xsl:if test="expression"&gt;</code> where I want to have multiple expressions together, to do order of operations such as this psuedocode:</p>
  
  <pre><code>if (Number != '' and (Name != '' or PreferredName != '')) {// code here}
  </code></pre>
  
  <p>Essentially I want to do this in an <code>&lt;xsl:if&gt;</code>:</p>
  
  <pre><code>&lt;xsl:if text="Number != '' and (Name != '' or PreferredName != '')"&gt;
  </code></pre>
  
  <p>but I'm not sure of the <code>expression</code> syntax, I don't think I can do the <code>()</code> like that, as I haven't seen it anywhere. I couldn't find the expression syntax on the web easily, it may be XPath, but I'm not sure if XPath supports <code>()</code> to group expressions. I'm not an expert on XSL/XML/XSD's' so I don't know if the expression is even XPath, or what.</p>
  
  <p>I'd rather not do nested <code>&lt;xsl:if&gt;</code> statements if possible, and want to stick with <code>&lt;xsl:if&gt;</code> not <code>&lt;xsl:choose&gt;</code>.</p>
  
  <p>I'm sure this is probably a simple answer, but kind of stuck here. Thanks.</p>