Actually as i see i can add name spaces. Because I am very close to output i expect to see. First codes:
XML:
<helptext>
<h6>General configuration options.</h6>
<h2>Changing not yet supported.</h2>
<p>this is a <b>paragraph</b><br/>this is a new line</p>
</helptext>
XSL:
<xsl:template name="transformHelptext">
<xsl:for-each select="./child::*">
<xsl:element name="ht:{local-name()}">
<xsl:choose>
<xsl:when test="count(./child::*)>0">
<xsl:call-template name="transformHelptext"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:for-each>
</xsl:template>
So far so good. There are no problems for <h6>..</h6> and <h2>...</h2> lines.
But third line has child node which is a <b>. And somehow "paragraph" is the only text which is displayed, for this line. I have a mistake in choose statement. But I cannot figure it out.
Thanks
P.S : ht namespace is defined in xsl-stylesheet tag and it is 'xmlns:ht="http://www.w3.org/1999/xhtml"'
P.S : What I try to do is, making it possible to apply html tags, styles on my specific xml nodes