title: xsl substring-after usage
body: <p>I have this XSL code and I would like to configure the string. However I couldn't get the configured string yet. What could be the matter?</p>
  
  <p>
  </p>
  
  <p>
    
      
    
    
      
    
  
  
    
      
    
  </p>
  
  <pre><code>&lt;xsl:param name="topicId"&gt;&lt;/xsl:param&gt;
  &lt;xsl:param name="topicName"/&gt;
  
   &lt;xsl:attribute-set name="attrTopic"&gt;
    &lt;xsl:attribute name="id"&gt;
    &lt;xsl:value-of select="/message/file/@name[substring-after($topicId,'-')]"/&gt;
    &lt;/xsl:attribute&gt;
   &lt;xsl:attribute name="name"&gt;
  &lt;xsl:value-of select="/message/file/@name[substring-before(' ',$topicId)]"/&gt;
   &lt;/xsl:attribute&gt;
    &lt;/xsl:attribute-set&gt;
  &lt;xsl:attribute-set name="attrVars"&gt;
  &lt;/xsl:attribute-set&gt;
  </code></pre>
  
  <p>$topicId comes from my Java file. in sum I am trying to convert this string "1010-Text" to "1010" and "Text" separately in XSL</p>