only for RuBoard |
xsl:processing-instruction creates a processing instruction in the result tree.
Attribute Name | Enforced | Description | Values |
---|---|---|---|
Name | Required | The name of the processing instruction | String ( pi-name ) |
The following stylesheet suppresses the xml declaration and creates a processing instruction named my-ml with a version of 1.0. Note that the xsl:attribute element is not a valid child of the xsl:processing-instruction element. It is also not legal to name a processing instruction "xml" or "XML": manually creating the xml declaration requires output escaping a string or using the xsl:output element with a value of "no" for the omit-xml-declara tion attribute:
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" /> <xsl:template match="/"> <xsl:processing-instruction name="my-ml">version="1.0"</ xsl:processing-instruction> </xsl:template> </xsl:stylesheet>
xsl:attribute, xsl:comment, xsl:copy, xsl:element, xsl:for-each, xsl:if, xsl:otherwise, xsl:param, xsl:processing-instruction, xsl:template, xsl:variable, xsl:when, xsl:with-param, output elements
xsl:apply-templates, xsl:call-template, xsl:choose, xsl:copy, xsl:copy-of, xsl:for-each, xsl:if, xsl:text, xsl:value-of, xsl:variable, output elements
only for RuBoard |