Index

Found 56 pages:

# Page Tags and summary
1 XPath CSS Selectors, DOM, JXON, Landing, Path, XML, XPath, XSLT
XPath stands for XML Path Language. It uses a non-XML syntax to provide a flexible way of addressing (pointing to) different parts of an XML document. It can also be used to test addressed nodes within a document to determine whether they match a pattern or not.
2 Axes Transforming_XML_with_XSLT, XPath, XPath_Reference, XSLT, XSLT_Reference
There are thirteen different axes in the XPath specification. An axis represents a relationship to the context node, and is used to locate nodes relative to that node on the tree.
3 ancestor-or-self Axe, XPath
The ancestor-or-self axis indicates the context node and all of its ancestors, including the root node.
4 ancestor Axe, XPath
The ancestor axis indicates all the ancestors of the context node beginning with the parent node and traveling through to the root node.
5 attribute Axe, XPath
The attribute axis indicates the attributes of the context node. Only elements have attributes. This axis can be abbreviated with the at sign (@).
6 child Axe, XPath
The child axis indicates the children of the context node. If an XPath expression does not specify an axis, the child axis is understood by default. Since only the root node or element nodes have children, any other use will select nothing.
7 descendant-or-self Axe, XPath
The descendant-or-self axis indicates the context node and all of its descendants. Attribute and namespace nodes are not included - the parent of an attribute node is an element node, but attribute nodes are not the children of their parents.
8 descendant Axe, XPath
The descendant axis indicates all of the children of the context node, and all of their children, and so forth. Attribute and namespace nodes are not included - the parent of an attribute node is an element node, but attribute nodes are not the children of their parents.
9 following-sibling Axe, XPath
The following-sibling axis indicates all the nodes that have the same parent as the context node and appear after the context node in the source document.
10 following Axe, XPath
The following axis indicates all the nodes that appear after the context node, except any descendant, attribute, and namespace nodes.
11 namespace Axe, XPath
(not supported)
12 parent Axe, XPath
The parent axis indicates the single node that is the parent of the context node. It can be abbreviated as two periods (..).
13 preceding-sibling Axe, XPath
The preceding-sibling axis indicates all the nodes that have the same parent as the context node and appear before the context node in the source document.
14 preceding Axe, XPath
The preceding axis indicates all the nodes that precede the context node in the document except any ancestor, attribute and namespace nodes.
15 self Axe, XPath
The self axis indicates the context node itself. It can be abbreviated as a single period (.).
16 Comparison of CSS Selectors and XPath CSS, Draft, NeedsContent, Reference, Selectors, XPath
This article seeks to document the difference between CSS Selectors and XPath for web developers to be able to better choose the right tool for the right job.
17 Functions Transforming_XML_with_XSLT, XPath, XPath_Reference, XSLT, XSLT_Reference
The following is an annotated list of core XPath functions and XSLT-specific additions to XPath, including a description, syntax, a list of arguments, result-type, source in the appropriate W3C Recommendation. For further information on using XPath/XSLT functions, please see the For Further Reading page.
18 boolean XSLT, XSLT_Reference
The boolean function evaluates an expression and returns true or false.
19 ceiling XSLT, XSLT_Reference
The ceiling function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number.
20 choose Function, XPath, XSLT
The choose function returns one of the specified objects based on a boolean parameter.
21 concat XSLT, XSLT_Reference
The concat function concatenates two or more strings and returns the resulting string.
22 contains XSLT, XSLT_Reference
The contains function determines whether the first argument string contains the second argument string and returns boolean true or false.
23 count XSLT, XSLT_Reference
The count function counts the number of nodes in a node-set and returns an integer.
24 current XSLT, XSLT_Reference
The current function can be used to get the context node in an XSLT instruction.
25 document XSLT, XSLT_Reference
The document finds a node-set in an external document, or multiple external documents, and returns the resulting node-set.
26 element-available XSLT, XSLT_Reference
The element-available function determines if an element is available and returns true or false.
27 false XSLT, XSLT_Reference
The false function returns boolean false.
28 floor XSLT, XSLT_Reference
The floor function evaluates a decimal number and returns the largest integer less than or equal to the decimal number.
29 format-number XSLT, XSLT_Reference
The format-number function evaluates a number and returns a string representing the number in a given format.
30 function-available XSLT, XSLT_Reference
The function-available function determines if a given function is available and returns boolean true or false.
31 generate-id XSLT, XSLT_Reference
The generate-id function generates a unique id for the first node in a given node-set and returns a string containing that id.
32 id XSLT, XSLT_Reference
The id function finds nodes matching the given ids and returns a node-set containing the identified nodes.
33 key XSLT, XSLT_Reference
The key function returns a node-set of nodes that have the given value for the given key.
34 lang XSLT, XSLT_Reference
The lang function determines whether the context node matches the given language and returns boolean true or false.
35 last XSLT, XSLT_Reference
The last function returns a number equal to the context size from the expression evaluation context.
36 local-name XSLT, XSLT_Reference
The local-name function returns a string representing the local name of the first node in a given node-set.
37 name XSLT, XSLT_Reference
The name function returns a string representing the QName of the first node in a given node-set.
38 namespace-uri XSLT, XSLT_Reference
The namespace-uri function returns a string representing the namespace URI of the first node in a given node-set.
39 normalize-space XSLT, XSLT_Reference
The normalize-space function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string.
40 not XSLT, XSLT_Reference
The not function evaluates a boolean expression and returns the opposite value.
41 number XSLT, XSLT_Reference
The number function converts an object to a number and returns the number.
42 position XSLT, XSLT_Reference
The position function returns a number equal to the context position from the expression evaluation context.
43 round XSLT, XSLT_Reference
The round function returns a number that is the nearest integer to the given number.
44 starts-with XSLT, XSLT_Reference
The starts-with checks whether the first string starts with the second string and returns true or false.
45 string-length XSLT, XSLT_Reference
The string-length function returns a number equal to the number of characters in a given string.
46 string XSLT, XSLT_Reference
The string function converts the given argument to a string.
47 substring-after XSLT, XSLT_Reference
The substring-after function returns a string that is the rest of a given string after a given substring.
48 substring-before XSLT, XSLT_Reference
The substring-before function returns a string that is the part of a given string before a given substring.
49 substring XSLT, XSLT_Reference
The substring function returns a part of a given string.
50 sum XSLT, XSLT_Reference
The sum function returns a number that is the sum of the numeric values of each node in a given node-set.
51 system-property XSLT, XSLT_Reference
The system-property function returns an object representing the given system-property.
52 translate XSLT, XSLT_Reference
The translate function evaluates a string and a set of characters to translate and returns the translated string.
53 true XSLT, XSLT_Reference
The true function returns a boolean value of true.
54 unparsed-entity-url XSLT, XSLT_Reference
The unparsed-entity-url() function returns the URI of the unparsed entity with the given name. This is non-XML data referenced in the DTD of the source document.
55 Introduction to using XPath in JavaScript Add-ons, DOM, Extensions, JavaScript, Transforming_XML_with_XSLT, Web Development, XML, XPath, XSLT
This document describes the interface for using XPath in JavaScript internally, in extensions, and from websites. Mozilla implements a fair amount of the DOM 3 XPath, which means that XPath expressions can be run against both HTML and XML documents.
56 XPath snippets Example, Snippets, XML, XPath, XSLT
This article provides some XPath code snippets — simple examples of how to a few simple utility functions based on standard interfaces from the DOM Level 3 XPath specification that expose XPath functionality to JavaScript code. The snippets are functions you can use in the real world in your own code.