title: XSL - how to find and get the first previous text to the current node
body: <p>Using XSL, I am trying to get the first previous text {Male/Female} to the current node {field}.  The number of elements between {Field} and the previous text element will vary.  Any help would be greatly appreciated.</p>
  
  <pre><code>&lt;tablecell&gt;
      &lt;par def="2"&gt;Male/Female&lt;/par&gt;
  &lt;/tablecell&gt;
  &lt;tablecell&gt;
      &lt;par def="3"&gt;
           &lt;field usenotesstyle="false" 
                  height="0.2500in" 
                  width="1in" 
                  multiline="true" 
                  borderstyle="single" 
                  lookupeachchar="false" 
                  lookupaddressonrefresh="false"
                  type="keyword" 
                  kind="editable" 
                  name="Sex"&gt;
               &lt;keywords helperbutton="false" 
                         columns="1" 
                         ui="listbox"&gt;
                   &lt;textlist&gt;
                       &lt;text&gt;Male&lt;/text&gt;
                       &lt;text&gt;Female&lt;/text&gt;
                   &lt;/textlist&gt;
               &lt;/keywords&gt;
           &lt;/field&gt;
       &lt;/par&gt;
   &lt;/tablecell&gt;
  </code></pre>