<<

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

Mulberry Mulberry Mulberry Technologies, Inc. © 2000 Mulberry Technologies, Inc. Technologies, Inc.© 2000 Mulberry Technologies, Inc. (20011011) Technologies, Inc. © 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] any { and } is evaluated as an Transform"> xsl:import*, top-level elements xsl:attribute* expression. Attribute value must ... Creating Text [§7.2] evaluate to indicated attribute type. xsl:transform is a synonym for xsl:stylesheet … Anything allowed in a template ... Combining Stylesheets [§2.6] #PCDATA | Separates alternative values Processing Instructions [§7.3] Using Values [§11.3] ? Zero or one occurrences * Zero or more occurrences ... Whitespace Stripping [§3.4] Passing Parameters [§11.6] + One or more occurrences Creating Comments [§7.4] #PCDATA Character data ... ... Attribute Value Types Copying [§7.5] Keys [§12.2] Defining Template Rules [§5.3] 1.0 Literal value use="expr"/> boolean-expr Expression returning boolean value priority="number" mode="qname"> char Single character xsl:param* followed by text, literal result elements Generating Text [§7.6.1] Number Formatting [§12.3] expr Expression and/or XSL elements decimal-separator="char" grouping-separator="char" infinity="string" ncname XML name not containing a colon (:) node-set-expr Expression returning a node set percent="char" per-mille="char" pattern XSLT pattern (xsl:sort | xsl:with-param)* prefix Namespace prefix count="pattern" from="pattern" Messages [§13] Overriding Template Rules [§5.6] qname Namespace-qualified XML name value="number-expr" format="{string}" comprising local part and optional lang="{nmtoken}" ... prefix Named Templates [§6] letter-value="{alphabetic|traditional}" Fallback [§15] qname-but-not- Namespace-qualified name comprising grouping-separator="{char}" ... ncname local part and prefix grouping-size="{number}"/> xsl:with-param* Repetition [§8] Output [§16] token Meaning varies with context. See Rec. uri-reference Reference to Universal Resource Namespace Alias [§7.1.1] version="nmtoken" encoding="string" stylesheet-prefix="prefix|#default"/> Conditional Processing [§9] omit--declaration="yes|no" Creating Elements [§7.1.2] ... doctype-public="string" doctype-system="string" standalone="yes|no" indent="yes|no" namespace="{uri-reference}" ...+ cdata-section-elements="qnames" use-attribute-sets="qnames">... ...? media-type="string"/>

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