XML Tutorials - Herong's Tutorial Examples
∟XPath (XML Path) Language
∟Built-in Functions
This section describes built-in functions provided by XPath, like concate(), count(), name(), position(), string(), etc.
XPath also supports built-in functions.
Commonly used build-in functions are:
- boolean(number): Returns true, if the number is not a zero.
- boolean(string): Returns true, if the length of the string is great than zero.
- boolean(node_set): Returns true, if the set is not empty.
- concat(string, string, ...): Returns the concatenation of all given string objects.
- contains(string_1, string_2): Returns true if the first string object contains the second string object.
- count(node_set): Returns the number of nodes in the given node set object.
- last(): Returns the context size of the evaluation context.
- name(): Returns the qualified name of the context node.
- name(node_set): Returns the qualified name of the first node in the given node set object.
- not(boolean): Returns true, if the given boolean object is false.
- position(): Returns the context position of the evaluation context.
- string(): Returns the string value of the context node.
- string(boolean): Returns true or false based on the given boolean object.
- string(number): Returns the string presentation of the given number object.
- string(node_set): Returns the string value of the first node in the given node set object.
Last update: 2014.
Table of Contents
About This Book
Introduction of XML (eXtensible Markup Language)
XML File Syntax
XML File Browsers
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
DTD (Document Type Definition) Introduction
Syntaxes of DTD Statements
Validating an XML Document against the Specified DTD Document Type
XSD (XML Schema Definition) Introduction
Syntaxes of XSD Statements
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
Java Implementation of XSLT
►XPath (XML Path) Language
What is XPath (XML Path)?
Data Types, Literals and Variables
Evaluation Context
►Built-in Functions
Expressions and Location Paths
Using XPath in XSLT Templates
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
XML Notepad - XML Editor
XML Tools Plugin for Notepad++
XML 1.1 Changes and Parsing Examples
Outdated Tutorials
References
PDF Printing Version