May 28, 2021 XSL T
The XSLT-lt;xsl:element-gt; element is used to create an element into the output document.
The element is used to create element nodes in the output document.
Attributes | value | describe |
---|---|---|
name | name | 必需。规定要创建的元素的名称。(可以使用表达式为 name 属性赋值,这个表达式是在运行时进行计算的,比如:<xsl:element name="{$country}" />) |
namespace | URI | 可选。规定元素的命名空间 URI。(可以使用表达式为 namespace 属性赋值,这个表达式是在运行时进行计算的,比如:<xsl:element name="{$country}" namespace="{$someuri}"/>) |
use-attribute-sets | namelist | Optional.Space separated attribute set list, which contains properties that need to be added to elements. |
Create an element named "singer" that contains the value of each artist element: