これを行うための巧妙で簡潔な方法があるに違いありません。
<xsl:call-template name="item">
<xsl:with-param name="name" ><xsl:value-of select="name()" /></xsl:with-param>
<xsl:with-param name="value"><xsl:value-of select="." /></xsl:with-param>
</xsl:call-template>
xsl:value-of select="."
通常はすべて順調です。しかし、時々、現在のノードに子があり、休憩が必要なときにテキストがすべて一緒に実行されることがあります。
The Right Stuff<line/>Tom Wolfe
また
<title>The Right Stuff</title><author>Tom Wolfe</author>
このような場合は、"Stuff" と "Tom" の間にスペースかドットか何かを入れてください。
どのように言うことができますxsl:value-of select="." but add a space instead of running node contents together
か?