[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: what is the most straight forward way to construct

Subject: Re: what is the most straight forward way to construct andelement na me for output ??
From: Simon Bretin <simon@xxxxxxxxxxxxxxxx>
Date: Thu, 21 Aug 2003 17:53:49 +0200
what construct
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.