Schema Central  >  XSLT 3.0  >  schema-for-xslt30.xsd  >  xsl:variable
Advanced search
Need XSLT Help?

Recommended Reading:

Definitive XML Schema

 

Advanced XML Applications

 

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

Attributes

NameOccTypeDescriptionNotes
default-collation [0..1]xsl:uri-listfrom type xsl:generic-element-type
default-mode [0..1]xsl:default-mode-typefrom type xsl:generic-element-type
default-validation [0..1]xsl:validation-strip-or-preserveDefault value is "strip". from type xsl:generic-element-type
exclude-result-prefixes [0..1]xsl:prefix-list-or-allfrom type xsl:generic-element-type
expand-text [0..1]xsl:yes-or-nofrom type xsl:generic-element-type
extension-element-prefixes [0..1]xsl:prefix-listfrom type xsl:generic-element-type
use-when [0..1]xsl:expressionfrom type xsl:generic-element-type
xpath-default-namespace [0..1]xs:anyURIfrom type xsl:generic-element-type
_default-collation [0..1]xs:stringfrom type xsl:generic-element-type
_default-mode [0..1]xs:stringfrom type xsl:generic-element-type
_default-validation [0..1]xs:stringfrom type xsl:generic-element-type
_exclude-result-prefixes [0..1]xs:stringfrom type xsl:generic-element-type
_expand-text [0..1]xs:stringfrom type xsl:generic-element-type
_extension-element-prefixes [0..1]xs:stringfrom type xsl:generic-element-type
_use-when [0..1]xs:stringfrom type xsl:generic-element-type
_xpath-default-namespace [0..1]xs:stringfrom type xsl:generic-element-type
version [0..1]xs:decimalfrom type xsl:versioned-element-type
_version [0..1]xs:stringfrom type xsl:versioned-element-type
select [0..1]xsl:expressionfrom type xsl:sequence-constructor-and-select
_select [0..1]xs:stringfrom type xsl:sequence-constructor-and-select
Any attribute [0..*]Namespace: ##other, Process Contents: laxfrom type xsl:sequence-constructor-or-select
name [0..1]xsl:EQName
as [0..1]xsl:sequence-type
visibility [0..1]xsl:visibility-type
static [0..1]xsl:yes-or-no
_name [0..1]xs:string
_as [0..1]xs:string
_visibility [0..1]xs:string
_static [0..1]xs:string

Used in

Substitution hierarchy