XSLT 元素参考手册 完整的 XSLT 元素参考手册 The < xsl:attribute > element is used to add attributes to the element. Note: the < xsl:attribute > element replaces existing attributes with the same name. Attribute Value Description Name Attributename Necessary. Specifies the name of the attribute. Namespace URI Optional. The URI that defines the namespace for the attribute. Add a source attribute to the picture element: Add a source attribute to the picture element and assign it using the value in “images/name”: Create a set of attributes that can be applied to any output element:
In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress. Definition and usage ¶
Grammar ¶
Attribute ¶
Example 1 ¶
<picture>
<xsl:attribute name="source"/>
picture>
Example 2 ¶
<picture>
<xsl:attribute name="source">
<xsl:value-of select="images/name" />
xsl:attribute>
picture>
Example 3 ¶
<xsl:attribute-set name="font">
<xsl:attribute name="fname">Arialxsl:attribute>
<xsl:attribute name="size">14pxxsl:attribute>
<xsl:attribute name="color">redxsl:attribute>
xsl:attribute-set>
Principles, Technologies, and Methods of Geographic Information Systems
102