Creating the Result Tree

xsl:attribute

   

xsl:comment

   

xsl:copy

 

Constraints:

The use-attribute-sets attribute is not supported.

xsl:copy-of

   

xsl:elememt

 

Constraints:

The use-attribute-sets attribute is not supported.

Notes on Conformity:

1. The validity of the element name qName is not checked.

2. The specifications do not expressly require that namespace declarations that apply to the corresponding element statement are copied to the result tree. However, it is quite useful to have this option. The reason for this is that there is no alternative to declaring elements that are created using xsl:element. In our implementation method, therefore, the element statement can be used in two different ways: in one case, the namespace declarations are copied to the result tree; in the other case, they are not.

a). If the namespace attribute is specified in the element statement, generally no namespace node is created in the result tree unless declaration of the specified URI is mandatory. If the name attribute contains a prefix, this prefix is not necessarily used - although it is preferred.

b). However, if the namespace attribute is not specified in the element statement, all the namespace declarations are copied to the created element in the result tree. Also, it is ensured that the prefix specified in the name attribute is used for the result node.

xsl:number

 

This element is not supported.

Instead, you can use the position()function or a parameter for a counter.

xsl:processing-instruction

   

xsl:text

   

xsl:value-of