title: How do I include elements in xsl for optional tags in xml
body: <p>This is the xml I have.</p>
  
  <pre><code>   &lt;Parent&gt;
        &lt;child&gt;
           &lt;child1&gt;Ram&lt;/Child1&gt;
           &lt;child2&gt;Buss&lt;/Child2&gt;
        &lt;/child&gt;
     &lt;/Parent&gt;
  </code></pre>
  
  <p>For this xml I need to have and xsl file so as to generate the name of child 1 and child 2. But child 2 tags is optional. So I need to get the text content of child2 only if the  tag appears and also I have to give a slash character (/) between the text content of child1 and child2 if child2 tag appears. How do I do this in XSL?</p>