XML & XSL - xsl:element


Creates a named element in the output.

Syntax

<xsl:element name=element-name>

Attributes

Parent Elements

Child Elements

Purpose

The example below shows the creation of an element, an HTML FORM INPUT tag.

<xsl:element name="INPUT">
	<xsl:attribute name="VALUE"><xsl:value-of select="name"/></xsl:attribute>
	<xsl:attribute name="SIZE">35</xsl:attribute>
</xsl:element>

HTML Equivalent

<INPUT VALUE="name" SIZE="35">

Global Population Econometrics Example

Click here to view an example.