title: Error with substring in XSLT
body: <p>I was wondering if XSLT has the option to delete the content of an element if the chars are more than 200. Below I make use of all the content element.</p>
  
  <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: runtime error: file stylesheet.xslt line 42 element apply-templates in index.php on line 20</p>
  
  <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: The 'select' expression did not evaluate to a node set. in index.php on line 20</p>
  
  <pre><code>&lt;xsl:template match="a:content | description"&gt;
    &lt;c&gt;
          &lt;xsl:apply-templates select="substring('node() | @*', 1, 200)" /&gt;
    &lt;/c&gt;
  &lt;/xsl:template&gt;
  </code></pre>