title: XSL split value into Array and check whether is more than 1
body: <pre><code>&lt;books&gt;
      &lt;book&gt;
          &lt;title fiction="true"&gt;Happy Potter&lt;/title&gt;
          &lt;author&gt;J. K. Rowling, Colman, Adman&lt;/author&gt;
          &lt;price&gt;29.99&lt;/price&gt;
      &lt;/book&gt;
  
      &lt;book&gt;
          &lt;title fiction="true"&gt;The Hobbit&lt;/title&gt;
          &lt;author&gt;J.R.R. Tolkien&lt;/author&gt;
          &lt;price&gt;25.99&lt;/price&gt;
      &lt;/book&gt;
  &lt;/books&gt;
  </code></pre>
  
  <p>So I just want to check the authors is more than 1 or not. If do so, I would like to display first author name + et al at the end. If not, it just display the author name. </p>
  
  <p>For example, the first author value is <code>J. K. Rowling, Colman, Adman</code>. Then I would like to display as <code>J. K. Rowling et al</code>. </p>
  
  <p>So far, I only though about the split() but most of the resource was talking about using recursive-template. Due to I am new to XSL, I couldn't fully understand the code as they provide.</p>
  
  <p>Any advises and helps will be much appreciate. Thanks.</p>
  
  <p><strong>POST XSL FILE</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:template match="/"&gt;
  &lt;html&gt; 
  &lt;body&gt;
  &lt;h2&gt;My Books Collection&lt;/h2&gt;
  
  &lt;xsl:variable name="eligible-books" select="/books/book[title/@fiction='true' and price &amp;lt; 30]" /&gt;
  
  &lt;xsl:for-each select="$eligible-books"&gt;     
      &lt;span id="title"&gt;&lt;xsl:value-of select="title"/&gt;&lt;/span&gt;&lt;br/&gt;
      &lt;span id="author"&gt;&lt;xsl:value-of select="author"/&gt;&lt;/span&gt;&lt;br/&gt;
      &lt;span id="price"&gt;&lt;xsl:value-of select="price"/&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;
  &lt;/xsl:for-each&gt;   
  
  &lt;span id="total"&gt;Total: &lt;xsl:value-of select="sum($eligible-books/price)"/&gt;&lt;/span&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p></p>