XSLT 1.0 Reference |
Node Tests |
Specifiers |
Node Set Functions |
String Functions |
name |
ancestor:: |
number last() |
string string(object?) |
node() |
following-sibling:: |
number position() |
string concat(string, string, string*) |
prefix:name |
ancestor-or-self:: |
number count(node-set) |
boolean starts-with(string, string) |
text() |
namespace:: |
node-set id(object) |
boolean contains(string, string) |
* |
attribute:: |
string local-name(node-set?) |
string substring-before(string, string) |
comment() |
parent:: |
string namespace-uri(node-set?) |
string substring-after(string, string) |
prefix:* |
child:: |
string name(node-set?) |
string substring(string, number, number?) |
processing-instruction() |
preceding:: |
|
number string-length(string?) |
processing-instruction(literal) |
descendant:: |
|
string normalize-space(string?) |
|
preceding-sibling:: |
|
string translate(string, string, string) |
|
descendant-or-self:: |
|
|
|
self:: |
|
|
|
following:: |
|
|
Boolean Functions |
Number Functions |
XSLT Functions |
Booleans and Numbers |
boolean boolean(object) |
number number(object?) |
node-set document(object, node-set?) |
<=,<, >=, > =, != (don't forget to replace < with < and > with >) |
boolean not(object) |
number sum(node-set) |
node-set key(string, object) |
and |
boolean true() |
number floor(number) |
string format-number(number, string, string?) |
or |
boolean false() |
number ceiling(number) |
node-set current() |
-expr |
boolean lang(string) |
number round(number) |
string unparsed-entity-uri(string) |
*, div, mod |
|
|
string generate-id(node-set?) |
+, - |
|
|
object system-property(string) |
|
|
|
boolean element-available(string) |
|
|
|
boolean function-available(string) |
|
Stylesheet Element |
Combining Stylesheets |
Whitespace Stripping |
Defining Template Rules |
<xsl:stylesheet
|
<xsl:include
href="uri-reference"/> |
<xsl:strip-space
elements="tokens"/> <xsl:preserve-space
|
<xsl:template
|
Applying Template Rules |
Overriding Template Rules |
Named Templates |
Namespace Alias |
<xsl:apply-templates
|
<xsl:apply-imports/> |
<xsl:call-template
name="qname"/> |
<xsl:namespace-alias
|
Creating Elements |
Creating Attributes |
Named Attribute Sets |
Creating Text |
<xsl:element
|
<xsl:attribute
|
<xsl:attribute-set
|
<xsl:text
|
Processing Instructions |
Creating Comments |
Copying |
Generating Text |
<xsl:processing-instruction
name="{ncname}"> |
<xsl:comment> |
<xsl:copy
|
<xsl:value-of
|
Attribute Value Templates |
Numbering |
Repetition |
Conditional Processing |
<element attribute="{expr}"/> |
<xsl:number
|
<xsl:for-each
|
<xsl:if
test="boolean-expr"> |
Sorting |
Variables and Parameters |
Using Values |
Passing Parameters |
<xsl:sort
|
<xsl:variable
|
<xsl:copy-of select="expr"/> |
<xsl:with-param
|
Keys |
Number Formatting |
Messages |
Fallback |
<xsl:key name="qname" match="pattern" use="expr"/> |
<xsl:decimal-format
|
<xsl:message |
<xsl:fallback> |
Output |
|
|
|
<xsl:output
|
|
|
|