XSLT 2.0 QuickRef
Declarations
- xsl:attribute-set
- xsl:character-map
- xsl:decimal-format
- xsl:function
- xsl:import-schema
- xsl:include
- xsl:key
- xsl:namespace-alias
- xsl:output
- xsl:param
- xsl:preserve-space
- xsl:strip-space
- xsl:stylesheet
- xsl:template
- xsl:transform
- xsl:variable
Instructions
- xsl:analyze-string
- xsl:apply-imports
- xsl:apply-templates
- xsl:attribute
- xsl:call-template
- xsl:choose
- xsl:comment
- xsl:copy
- xsl:copy-of
- xsl:document
- xsl:element
- xsl:fallback
- xsl:for-each
- xsl:for-each-group
- xsl:if
- xsl:message
- xsl:namespace
- xsl:next-match
- xsl:number
- xsl:perform-sort
- xsl:processing-instruction
- xsl:result-document
- xsl:sequence
- xsl:text
- xsl:value-of
Functions
- current
- document
- generate-id
- format-date
- format-dateTime
- format-number
- format-time
- key
- system-property
- xsl:is-schema-aware
- xsl:product-name
- xsl:product-version
- xsl:supports-backwards- compatibility
- xsl:supports-serialization
- xsl:vendor
- xsl:vendor-url
- xsl:version
- unparsed-entity-public-id
- unparsed-entity-uri
- unparsed-text
- unparsed-text-available
Namespaces
XPath 2.0
Paths
Axes
▶️ forward, ◀️ backward
- ◀️ ancestor
- ◀️ ancestor-or-self
- ▶️ attribute @
- ▶️ child
- ▶️ descendant
- ▶️ descendant-or-self //
- ▶️ following
- ▶️ following-sibling
- ▶️ namespace
- ◀️ parent ..
- ◀️ preceding
- ◀️ preceding-sibling
- ▶️ self .
Node Tests
- * ns:* *:name
- attribute()
- attribute(name)
- attribute(name,attribute-type)
- comment()
- document-node()
- document-node(element(...))
- document-node( schema-element( element-type ) )
- element()
- element(name)
- element(name,element-type)
- processing-instruction()
- processing-instruction(name)
- node()
- schema-element(element-type)
- text()
Accessors
Nodes
Sequences
- ,
- [ filter ]
- avg
- boolean
- collection
- count
- deep-equal
- distinct-values
- doc-available
- doc
- empty
- every $var in sequence satisfies expression
- every $var1 in sequence1, $var2 in sequence2, ... satisfies expression
- exactly-one
- except
- exists
- for $var in sequence return expression
- for $var1 in sequence1, $var2 in sequence2, ... return expression
- id
- idref
- index-of
- insert-before
- intersect
- max
- min
- one-or-more
- remove
- reverse
- some $var in sequence satisfies expression
- some $var1 in sequence1, $var2 in sequence2, ... satisfies expression
- subsequence
- sum
- to
- union |
- unordered
- zero-or-one
Context
- position
- last
- current-dateTime
- current-date
- current-time
- implicit-timezone
- default-collation
- static-base-uri
Numeric
String
- codepoint-equal
- codepoints-to-string
- compare
- concat
- contains
- encode-for-url
- ends-with
- escape-html-uri
- iri-to-uri
- lower-case
- matches
- normalize-space
- normalize-unicode
- replace
- starts-with
- string-join
- string-length
- string-to-codepoints
- substring-after
- substring-before
- substring
- tokenize
- translate
- upper-case
Durations,
Dates & Times
Arithmetic Operators
- xs:dayTimeDuration
- xs:yearMonthDuration
- dayTimeDuration + dayTimeDuration
- dayTimeDuration + date
- dayTimeDuration + dateTime
- dayTimeDuration + time
- yearMonthDuration + yearMonthDuration
- yearMonthDuration + date
- yearMonthDuration + dateTime
- date - date
- dateTime - dateTime
- dayTimeDuration - date
- dayTimeDuration - dateTime
- dayTimeDuration - time
- dayTimeDuration - dayTimeDuration
- time - time
- yearMonthDuration - date
- yearMonthDuration - dateTime
- yearMonthDuration - yearMonthDuration
- dayTimeDuration * double
- yearMonthDuration * double
- dayTimeDuration div dayTimeDuration
- dayTimeDuration div double
- yearMonthDuration div yearMonthDuration
- yearMonthDuration div double
Comparison Operators
- date: eq ne
- date: gt ge
- date: lt le
- dateTime: eq ne
- dateTime: gt ge
- dateTime: lt le
- dayTimeDuration: gt ge
- dayTimeDuration: lt le
- duration: eq ne
- gDay: eq ne
- gMonthDay: eq ne
- gMonth: eq ne
- gYear: eq ne
- gYearMonth: eq ne
- time: eq ne
- time: gt ge
- time: lt le
- yearMonthDuration: gt ge
- yearMonthDuration: lt le
Functions
- adjust-dateTime-to-timezone
- adjust-date-to-timezone
- adjust-time-to-timezone
- day-from-date
- day-from-dateTime
- days-from-duration
- hours-from-dateTime
- hours-from-duration
- hours-from-time
- minutes-from-dateTime
- minutes-from-duration
- minutes-from-time
- month-from-date
- month-from-dateTime
- months-from-duration
- seconds-from-dateTime
- seconds-from-duration
- seconds-from-time
- timezone-from-dateTime
- timezone-from-date
- timezone-from-time
- year-from-dateTime
- year-from-date
- years-from-duration
Boolean
anyURI
QNames
- eq ne
- in-scope-prefixes
- local-name-from-QName
- namespace-uri-for-prefix
- namespace-uri-from-QName
- prefix-from-QName
- QName
- resolve-QName
Other eq ne
Error & Trace
Type Expressions
Constructors/
Casts
- xs:anyURI
- xs:base64Binary
- xs:boolean
- xs:byte
- xs:date
- xs:dateTime
- dateTime
- xs:dayTimeDuration
- xs:decimal #
- xs:double #
- xs:duration
- xs:ENTITY
- xs:float #
- xs:gDay
- xs:gMonthDay
- xs:gMonth
- xs:gYear
- xs:gYearMonth
- xs:hexBinary
- xs:ID
- xs:IDREF
- xs:integer #
- xs:int
- xs:language
- xs:long
- xs:Name
- xs:NCName
- xs:negativeInteger
- xs:NMTOKEN
- xs:nonNegativeInteger
- xs:nonPositiveInteger
- xs:normalizedString
xs:NOTATION- xs:positiveInteger
- xs:QName
- xs:short
- xs:string
- xs:time
- xs:token
- xs:unsignedByte
- xs:unsignedInt
- xs:unsignedLong
- xs:unsignedShort
- xs:untypedAtomic
- xs:yearMonthDuration