xsl-list
[Top] [All Lists]

Re: what is the most straight forward way to construct and element na me for output ??

2003-08-21 08:53:49
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



<Prev in Thread] Current Thread [Next in Thread>