<<

Location Paths [XPath §2] XPath Operators XSLT Functions [§12, §15] -set document(object, node-set?) Optional ‘/’, zero or more location steps, separated by ‘/’ Parentheses may be used for grouping. node-set key(string, object) Location Steps [XPath §2.1] Node-sets [XPath §3.3] string format-number(number, string, string?) Axis specifier, node test, zero or more predicates | [expr] / // node-set current() Axis Specifiers [XPath §2.2] XSLT 1.0 string unparsed-entity-uri(string) Booleans [XPath §3.4] string generate-id(node-set?) ancestor:: following-sibling:: <=, <, >=, > =, != and or ancestor-or-self:: namespace:: & object system-property(string) attribute:: parent:: Numbers [XPath §3.5] boolean element-available(string) child:: preceding:: -expr *, div, mod +, - XPath 1.0 boolean function-available(string) descendant:: preceding-sibling:: Node Types [XPath §5] descendant-or-self:: self:: Quick Reference following:: XPath Core Function Root Element Comment Node Tests [XPath §2.3] Node Set Functions [XPath §4.1] Attribute Text name node() number last() Namespace prefix:name text() number position() * comment() number count(node-set) Object Types [§11.1, XPath §1] prefix:* processing-instruction() node-set id(object) boolean True or false processing- string local-name(node-set?) instruction(literal) string namespace-uri(node-set?) number Floating-point number string name(node-set?) Abbreviated Syntax for Location Paths string UCS characters String Functions [XPath §4.2] node-set Set of nodes selected by a path (nothing) child:: string string(object?) Result XSLT only. Fragment of the result tree @ attribute:: string concat(string, string, string*) boolean starts-with(string, string) fragment // /descendant-or-self::node()/ boolean contains(string, string) . self::node() string substring-before(string, string) Expression Context [§4, XPath §1] string substring-after(string, string) Context node (a node) .. parent::node() string substring(string, number, number?) Context position (a number) / Node tree root number string-length(string?) Mulberry Technologies, Inc. Context size (a number) Predicate [XPath §2.4] string normalize-space(string?) 17 West Jefferson Street, Suite 207 Variable bindings in scope string translate(string, string, string) [expr] Rockville, MD 20850 USA Namespace declarations in scope Phone: +1 301/315-9631 Function library Variable Reference [XPath §3.7] Boolean Functions [XPath §4.3] boolean boolean(object) Fax: +1 301/315-8285 $qname [email protected] Built-in Template Rules [§5.8] boolean not(object) http://www.mulberrytech.com Literal Result Elements [§7.1.1] boolean true() Any element not in the xsl: namespace and not an extension boolean false() element boolean lang(string) Number Functions [XPath §4.4] number number(object?) XSLT number sum(node-set) http://www.w3.org/TR/xslt number floor(number) XPath number ceiling(number) number round(number) http://www.w3.org/TR/xpath http://www.mulberrytech.com/xsl/xsl-list/ Built-in template rule for namespaces is to do nothing

© 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. (20051123) © 2000 Mulberry Technologies, Inc.

XSLT Elements Creating Attributes [§7.1.3] Sorting [§10] Key ... data-type="{text|number|qname-but-not- version= Optional attribute exclude-result-prefixes="tokens" Variables and Parameters [§11] Attribute value template. Text between Transform"> xsl:import*, top-level elements xsl:attribute* any { and } is evaluated as an Creating Text [§7.2] ... expression. Attribute value must evaluate to indicated attribute type. xsl:transform is a synonym for xsl:stylesheet #PCDATA ... … Anything allowed in a template Combining Stylesheets [§2.6] | Separates alternative values Processing Instructions [§7.3] Using Values [§11.3] ? Zero or one occurrences ... Passing Parameters [§11.6] * Zero or more occurrences Whitespace Stripping [§3.4] Creating Comments [§7.4] + One or more occurrences ... ... param> Copying [§7.5] Attribute Value Types Defining Template Rules [§5.3] Keys [§12.2] use="expr"/> boolean-expr Expression returning boolean value xsl:param* followed by text, literal result elements Generating Text [§7.6.1] Number Formatting [§12.3] char and/or XSL elements minus-sign="char" NaN="string" ncname XML name not containing a colon (:) zero-digit="char" digit="char" count="pattern" from="pattern" pattern-separator="char"/> pattern XSLT pattern Overriding Template Rules [§5.6] value="number-expr" format="{string}" Messages [§13] prefix Namespace prefix lang="{nmtoken}" letter-value="{alphabetic|traditional}" ... qname Namespace-qualified XML name Named Templates [§6] grouping-separator="{char}" Fallback [§15] comprising local part and optional grouping-size="{number}"/> prefix ... Repetition [§8] qname-but-not- Namespace-qualified name comprising xsl:with-param* Output [§16] ncname local part and prefix token Meaning varies with context. See Rec.

© 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc.