Write a program to use the Stylesheet element? - XSLT

Write a program to use the Stylesheet element?



- Stylesheet element is represented by xsl:stylesheet presented in an XML document.

- An xsl:stylesheet element uses the version attribute that indicates the version history of the XSLT.

- The version should start with 1.0 that is the marking of the beginning and it processes the same way after that.

- The processing of the element is forward compatible with other processing mode. The example is shown below:

<xsl:stylesheet
id = id
extension-element-prefixes = tokens
exclude-result-prefixes = tokens
version = number>
<!-- Content: (xsl:import*, top-level-elements) -->
</xsl:stylesheet>

<xsl:transform
id = id
extension-element-prefixes = tokens
exclude-result-prefixes = tokens
version = number>
<!-- Content: (xsl:import*, top-level-elements) -->
</xsl:transform>
Post your comment