You are missing the <xsl:element> functionality ...
The following should do the trick:
<xsl:if test="$element='House'">
<xsl:element name="$element">
<cost>100000.00</cost>
</xsl:element>
</xsl:if>
Bill Riegel wrote:
Have a need to build the element name and export it.
<xsl:template name="OutputElement">
<xsl:param name="elementName" />
<xsl:variable name="element" select="normalize-space($elementName)" />
If element == "House" how do I export an element name called House
Desired Output:
<House>
<cost>100000.00</cost>
</House>
Bill Riegel
LandMark Graphics
713-839-3388
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list