Professional Documents
Culture Documents
XSLT 2 0 Cheat Sheet
XSLT 2 0 Cheat Sheet
0 Cheat Sheet
Selectors
Context Functions
nodename
position()
apply-
imports
style sheet
apply-tem
plates
..
attribute
Adds an attribute
attribute-
set
Calls a named template
choose
copy
copy-of
decimal-f
ormat
element
fallback
for-each
if
import
include
key
message
ace-alias
number
otherwise
output
@*
codepoints-to-string(int,int,...)
Returns a string from a sequence of code points
//node[1]
element.
string-to-codepoints(string)
Returns a sequence of code points from a string
codepoint-equal(comp1,comp2)
Returns true if the value of comp1 is equal to the
value of comp2, according to the Unicode code
point collation, otherwise it returns false
compare(comp1,comp2)
Returns -1 if comp1 is less than comp2, 0 if comp1
is equal to comp2, or 1 if comp1 is greater than
comp2 (according to the rules of the collation that is
used)
string-join((string,string,...),sep)
Returns a string created by concatenating the string
arguments and using the sep argument as the
separator
substring(string,start,len)
Returns the substring from the start position to the
specified length. Index of the first character is 1. If
Accessor Functions
node-name(node)
Returns the node-name of the argument node
nilled(node)
Returns a Boolean value indicating whether the
argument node is nilled
data(item.item,...)
Takes a sequence of items and returns a sequence
of atomic values
base-uri() fn:base-uri(node)
document-uri(node)
Returns the value of the document-uri property for
the specified node
report errors)
Replaces a namespace in the style sheet
string(arg)
Matches any element node
namesp
ate()
Functions on Strings
timezone)
current-d
Selects attributes
ateTime()
ime()
current-d
current-t
emplate
nodes
call-t
last()
Elements
Functions on Nodes
name()
local-
name()
namesp
ace-uri()
lang(lang)
document
param
preserve-
space
processin
g-inst
output
ruction
sort
strip-
space
stylesheet
template
lang(lang)
root()
(arg)
abs(num)
it returns false
substring-before(str1,str2)
Returns the start of string1 before string2 occurs in
it
substring-after(str1,str2)
occurs in it
g(num)
floor(num)
value-of
variable
when
Aggregate Functions
element
count((item,item,...))
ceilin
transform
param
it returns false
ends-with(string1,string2)
argument
text
with-
starts-with(string1,string2)
round(num)
matches(string,pattern)
replace(string,pattern,replace)
Returns a string that is created by replacing the
given pattern with the replace argument
tokenize(string,pattern)
Functions on Boolean Values
boolea
n(arg)
string, or node-set
not(arg)
min((arg,arg,...))
true()
false()
jinlei.me
Cheat Sheet
Sponsor
cheatography.com/univer/
Try it free!
http://www.FeedbackFair.com