xsl:variable
Declaration of the xsl:variable element, used both for local and global variable bindings.
This definition takes advantage of the ability in XSD 1.1 for an element to belong to more than one substitution group. A global variable is a declaration, while a local variable can appear as an instruction in a sequence constructor.
Element information
Namespace: http://www.w3.org/1999/XSL/Transform
Schema document: schema-for-xslt30.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Any text (mixed) content, intermingled with:
- Choice [0..*]
- xsl:analyze-string
- xsl:apply-imports
- xsl:apply-templates
- xsl:assert
- xsl:attribute
- xsl:break
- xsl:call-template
- xsl:choose
- xsl:comment
- xsl:copy
- xsl:copy-of
- xsl:document
- xsl:element
- xsl:evaluate
- xsl:fallback
- xsl:for-each
- xsl:for-each-group
- xsl:fork
- xsl:if
- xsl:iterate
- xsl:map
- xsl:map-entry
- xsl:merge
- xsl:merge-key
- xsl:message
- xsl:namespace
- xsl:next-iteration
- xsl:next-match
- xsl:number
- xsl:on-empty
- xsl:on-non-empty
- xsl:perform-sort
- xsl:processing-instruction
- xsl:result-document
- xsl:sequence
- xsl:source-document
- xsl:text
- xsl:try
- xsl:value-of
- xsl:variable Declaration of the xsl:variable element, used both for local and global variable bindings.
- xsl:where-populated
- xsl:literal-result-elementAbstract [1..1]
- Any element Namespace: ##other, Process Contents: lax
- Any element Namespace: ##local, Process Contents: lax
from subst. group xsl:instructionfrom group xsl:result-elementsfrom subst. group xsl:literal-result-element
from type xsl:sequence-constructor-or-select
from group xsl:sequence-constructor-group
Attributes
Used in
- Anonymous type of element xsl:override
- Anonymous type of element xsl:package
- Anonymous type of element xsl:stylesheet
- Anonymous type of element xsl:transform
- Group xsl:sequence-constructor-group
- Anonymous type of element xsl:accumulator-rule via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:assert via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:attribute via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:catch via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:copy via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:document via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:element via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:for-each via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:for-each-group via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:function via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:if via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:iterate via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:key via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:map-entry via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:merge-key via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:message via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:namespace via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:param via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:perform-sort via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:processing-instruction via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:result-document via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:sort via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:source-document via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:template via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:try via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:value-of via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:variable via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:when via reference to xsl:sequence-constructor-group
- Anonymous type of element xsl:with-param via reference to xsl:sequence-constructor-group
- Type xsl:sequence-constructor-and-select via reference to xsl:sequence-constructor-group
- Type xsl:sequence-constructor-or-select via reference to xsl:sequence-constructor-group (Elements xsl:break, xsl:comment, xsl:on-completion, xsl:on-empty, xsl:on-non-empty, xsl:sequence)
- Type xsl:sequence-constructor via reference to xsl:sequence-constructor-group (Elements xsl:fallback, xsl:map, xsl:matching-substring, xsl:merge-action, xsl:non-matching-substring, xsl:otherwise, xsl:where-populated)
Substitution hierarchy
- xsl:declaration
- xsl:instruction
- xsl:analyze-string
- xsl:apply-imports
- xsl:apply-templates
- xsl:assert
- xsl:attribute
- xsl:break
- xsl:call-template
- xsl:choose
- xsl:comment
- xsl:copy
- xsl:copy-of
- xsl:document
- xsl:element
- xsl:evaluate
- xsl:fallback
- xsl:for-each
- xsl:for-each-group
- xsl:fork
- xsl:if
- xsl:iterate
- xsl:map
- xsl:map-entry
- xsl:merge
- xsl:merge-key
- xsl:message
- xsl:namespace
- xsl:next-iteration
- xsl:next-match
- xsl:number
- xsl:on-empty
- xsl:on-non-empty
- xsl:perform-sort
- xsl:processing-instruction
- xsl:result-document
- xsl:sequence
- xsl:source-document
- xsl:text
- xsl:try
- xsl:value-of
- xsl:variable
- xsl:where-populated