mountainbiker
Programmer
xml:
<addressBook>
<address>
<firstName>John</firstName>
<surname>Smith</surname>
<email>smithj@world.org</email>
</address>
</addressBook>
xsl:
<xsl:template match="/addressBook">
<!-- must use variable -->
<xsl:variable name="output">
<!-- what do i put here? -->
</xsl:variable>
<xsl:value-of select="$output" />
</xsl:template>
need this output:
<address>
<firstName>John</firstName>
<surname>Smith</surname>
<email>smithj@world.org</email>
</address>
<addressBook>
<address>
<firstName>John</firstName>
<surname>Smith</surname>
<email>smithj@world.org</email>
</address>
</addressBook>
xsl:
<xsl:template match="/addressBook">
<!-- must use variable -->
<xsl:variable name="output">
<!-- what do i put here? -->
</xsl:variable>
<xsl:value-of select="$output" />
</xsl:template>
need this output:
<address>
<firstName>John</firstName>
<surname>Smith</surname>
<email>smithj@world.org</email>
</address>