title: is numerical and is alpha/numerical in XPath or XSL
body: <p>I am wondering if it is possible to use XPath or XSL to determine if a XML node value is numerical or alpha/numerical. (It is user entered data.. so it could be either..)</p>
  
  <p>I was searching for some sort of function in XPath to do this.. but I couldn't find any.</p>
  
  <p>for example:</p>
  
  <pre><code>&lt;example&gt;
      &lt;test1 attribute="123"&gt;12dfffg23&lt;/test1&gt;
      &lt;test2 attribute="a34"&gt;123456&lt;/test2&gt;
  &lt;/example&gt;
  </code></pre>
  
  <p>I need to test node content and attibutes:</p>
  
  <pre><code>/example/test1
  /example/test1/@attribute
  /example/test2
  /example/test2/@attribute
  </code></pre>
  
  <p>And I would expect the following to be numerical:</p>
  
  <pre><code>/example/test1/@attribute
  /example/test2
  </code></pre>
  
  <p>And I would expect the following to be alpha/numerical:</p>
  
  <pre><code>/example/test1
  /example/test2/@attribute
  </code></pre>
  
  <p>Is it possible to do this with a function in XPath or XSL?</p>
  
  <p>Thanks! :D</p>