Publications / XML glossary

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Appendix C.)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

 

This glossary briefly explains technical terms and concepts relevant to XML and XSLT. It does not claim completeness. Further links are supplied where possible.

A

Abbreviated syntax

→ Abbreviated notation (Axes)

Abbreviated notation (axes)

Within a → location step, direction (→ axis) can use full or abbreviated syntax. A location step targeting attributes of any name is written attribute::* in full or @* in abbreviated form. Other abbreviations are . for self::, .. for parent:: and // for descendant-or-self::. Omitting child:: before the → NameTest abbreviates that axis, making the child axis the implicit default direction.

Absolute location path

→ Location path, absolute

Axis

XPath axes define directions for traversing document trees. Thirteen axes exist. From a context node, three go downward (Child, Descendant, Descendant-Or-Self), three upward (Parent, Ancestor, Ancestor-Or-Self), and Self contains only the context node. Two follow or oppose document order among siblings (Following-Sibling, Preceding-Sibling), and two include all preceding or following nodes (Following, Preceding). Further axes cover attributes (→ attribute axis) and namespaces (→ namespace axis). The → child axis is default.

Current node

→ Current node

Current node-set

→ Node-set, current

Ancestor axis

The ancestor axis (ancestor::) includes all ancestors of the → context node, but not itself. It goes against → document order (document order) toward and including the → document node. It has no → abbreviated syntax.

Ancestor-Or-Self axis

Ancestor-Or-Self (ancestor-or-self::) includes all ancestors of the → current node and itself. It goes against → document order toward and including the → document node. It has no → abbreviated syntax.

Attribute

→ Attribute node

Attribute axis

The attribute axis (attribute::) targets all attributes of an element. Unlike element → node sequences, attribute sequences have no defined, predictable order. Convention processes them in their source start-tag order. The → abbreviation is @.

Attribute node

An element attribute is represented by an attribute node whose → QName corresponds to its name and whose string value is the attribute value. Unlike other node types except → namespace nodes, it is not its parent element’s child. It is therefore reached through the → attribute axis rather than → child axis. Nevertheless, the element is the attribute’s → parent. Attribute values may be typed, associated through a → schema with a → data type.

Attribute set

An attribute set is a collection of attributes that can be attached by the → XSLT processor to an output element as one unit. Define it with xsl:attribute-set and invoke it through the identifier assigned by its name attribute. Several sets may be applied together, adding their attributes. Pass their identifiers as a → token list.

Attribute value template

→ Attribute value template

Attribute value template

An attribute value template (AVT) lets the → XSLT processor evaluate an XPath expression (→ expression) at runtime, standing for an attribute value in a → literal result element or certain XSLT instruction attributes. Braces delimit it but are not part of the evaluated XPath expression: attributname="{expression}".

Expression, XPath expression

→ Expression

AVT, AWT

→ Attribute value template

Axis

→ Axis

back to top

B

Base64

Base64 encodes binary data, originally email message bodies, using only 64 characters (A-Z, a-z, 0-9, +, /), a US-ASCII subset. As base64Binary, it is among the → XML Schema built-in data types.

Base URI

→ Base URI

Basic XSLT processor

→ XSLT processor

Base URI

A base URI is a node’s absolute address reference. For an element node it is the absolute address of its containing document entity, usually the document’s address, though it can be set freely by “xml:base-Attributs” (W3C XML Base Recommendation).

An element in an included external entity uses that entity’s base URI. Attributes inherit the base URI of their element.

Base URIs are fundamental to resolving URIs for external → unparsed Entities through unparsed-entity-uri(). It uses the base URI to establish a usable document/resource relationship. Relative XLinks also use the base URI.

Tree

→ Document tree

boolean

→ Boolean value

Boolean expressions

A Boolean expression is an XPath expression yielding true or false. Logical and and or can combine operands that are themselves Boolean values.

Boolean negation

XPath negates expressions with not(), passing the expression as argument, equivalent to unary ! in other languages. Distinguish not(a = b) from a != b: they differ when an operand does not exist.

Boolean value

Boolean or truth values are primitive data types, taking only true or false, both immutable literals. XPath expressions cannot use these values directly but obtain them as return values of fn:true() and fn:false(). The function fn:boolean() converts any type to Boolean. XPath results are converted implicitly in suitable contexts, such as the test attribute of xsl:if or xsl:when. → Predicates inside location steps always yield Boolean values.

Built-in template rule

→ Template rules, built-in

back to top

C

CDATA

CDATA (Character Data) comprises all Unicode characters permitted in text nodes and attributes. Which characters the XML parser permits also depends on encoding. In → DTDs, CDATA is the most permissive attribute → content model, allowing strings of all permitted characters including → whitespace characters.

CDATA sections

CDATA sections, also called CDATA blocks, mark XML text that must not be parsed. Control characters become ordinary text: entities are not expanded and markup is not recognized. No declaration is needed; fixed delimiters open and close it, like a comment: <[CDATA[ ... der CDATA-Bereich ... ]]>.

As with → comments, the closing sequence ]]> must not occur inside, preventing nesting. CDATA can embed source or program code that would otherwise violate well-formedness.

Character Data

→ CDATA

Character reference

Like an entity reference, a character reference permits XML characters outside the character set declared by encoding (→ encoding). It uses entity-reference syntax, replacing the entity name with the decimal or hexadecimal Unicode number: &#169; or &#xA9; for ©.

Child axis

From a context node, child:: contains all → child nodes but not the context itself. Abbreviation omits the axis from the location step: write beispiel instead of child::beispiel to select all <beispiel> children of the context.

Collation

A collation explicitly controls XSLT string comparisons. When default behavior is unsuitable, for example for a particular language, collation rules can be supplied. Many XPath string functions from XPath 2.0 offer an optional argument accepting a collation identifier, normally a URI.

Collations define comparison outcomes underlying string sorting or equality, such as “Jäger” = “Jaeger”. Without one, functions use the environment’s default or Unicode Codepoint Collation, identified by W3C as www.w3.org/2003/11/xpath-functions/collation/codepoint (like any namespace URI, it does not point to an actual resource).

Comment node

→ Comment node

Current destination node

The current destination node is the element currently receiving serialized output. A created result-tree node becomes its child. If no destination node exists when writing, a document node for a new result tree is created.

Current node

The current node is the node being processed by XSLT from a sequence assembled through xsl:apply-templates or xsl:for-each. Its position in the → current node list is obtained through fn:position(). The current node, or more generally current item, is reached through → Self using self::node() or . . Usually it equals the context node except within XPath predicates; distinguish it using current().

Context node

→ Context node

Context position

→ Context position

Context size

→ Context size

Current node list

→ Node list, current

Current output destination

The current output destination is the tree being written to, or an open element in it (→ current destination node). Usually it is the → result document tree, but evaluating a variable’s template body in xsl:variable may create a temporary tree (→ result tree fragment) not immediately included in output. From XSLT 2.0, xsl:result-document supports multiple result trees, possible in XSLT 1.0 only through extensions.

Current template rule

The current template rule is the template whose match attribute matches a node offered by xsl:apply-templates. While processing this node, which becomes current, that template remains current. Calling a named template through xsl:call-template does not change the current template or current node.

back to top

D

Data types

Unlike XPath 1.0, XPath 2.0 is strongly typed. Functions and operators expect specific input types and abort with a → type error when those expectations are violated.

XPath 2.0 types match → XML Schema types: xs:anySimpleType, xs:string, xs:float, xs:double, xs:decimal, xs:duration, xs:yearMonthDuration, xs:dayTimeDuration, xs:dateTime, xs:time, xs:date, xs:gYearMonth, xs:gYear, xs:gMonthDay, xs:gDay, xs:gMonth, xs:boolean, xs:base64Binary, xs:hexBinary, xs:anyURI, xs:QName and xs:NOTATION. Additional types beyond XML Schema, originally defined in XPath with the prefix xdt, are xs:anyAtomicType, xs:untyped, xs:untypedAtomic.

The xs prefix identifies XML Schema types and binds to its namespace URI: xmlns:xs="http://www.w3.org/2001/XMLSchema"

Default namespace

In XML, the default namespace applies to elements without an explicit → namespace prefix associated with a → namespace URI. The URI of the default namespace is declared by xmlns="defaultnamensraum-URI", applying to that element and contained unprefixed elements, not its attributes. Usually declare it on the → root element.

Descendant axis

Descendant (descendant::) includes all children, grandchildren and further descendants of context, all branches in → document order except attribute and namespace nodes. Context itself is excluded. No → abbreviated syntax exists.

Descendant-Or-Self axis

Descendant-Or-Self (descendant-or-self::) includes context and all descendants, all branches in → document order except attribute and namespace nodes. Its → abbreviation is //.

Deserialization

Deserialization builds a → document tree from source text, converting tag containers in → document order into hierarchical nodes.

Default value

A default value is an often implicit preset. Attribute defaults, for example, are declared in the → DTD. XSLT defaults are used with parameters declared through xsl:param, normally receiving external values, for example from xsl:with-param. Without a passed value, they use the select attribute’s XPath-defined default.

DocBook

The established standard DocBook specification  comprises DTD and DSSSL/XSL stylesheets for modeling and converting manuals and other large print publications. Originally owned by the Davenport Group, DocBook is now owned by → OASIS.

Declarations, XSLT declarations

→ Top-level element

Document element

→ Root element

Document node

The document node, also called root node, is the unnamed root of each XML tree and represents the document itself. In well-formed documents it has exactly one child, the → root element, also called document element. Its → base URI is the document’s reference URI during processing.

Document Object Model

→ DOM

Document order

→ Document order

Document type declaration

An XML → prolog may contain at most one document type declaration naming a → DTD to bind. The DTD appears as an internal subset in the declaration or an external subset referenced by URI. General syntax: <!DOCTYPE dtd-name SYSTEM "dtd-URI" [ ... internal Subset ... ]>. The DTD name, here dtd-name, usually matches the document’s → root element.

Document type definition

→ DTD

Document tree

The document tree metaphor in DOM-based XML is topologically a directed acyclic graph. A single root originates every branch; otherwise there would be multiple separate trees. No branch can loop back after branching. This creates unambiguous parent-child relationships, ideal for document hierarchy.

Diagrams conventionally put the root above downward branches. Connections are edges; terminal nodes are leaves or leaf nodes.

Document element

→ Root element

Document node

→ Document node

Document order

Document order transfers source reading order to the tree, following element start tags. First comes the root, then its first child, then that child’s first child, down to the leaf. Next comes the sibling at the last branch point, again followed to its end. All nodes are traversed this way until returning to the root.

DOM

DOM is an object-oriented interface model for reading, changing, deleting or adding document parts, represented as a → tree. Its universal design supports different languages (Java, C++, Visual Basic, etc.). DOM parsers such as Xerces create it from XML. See the W3C DOM specifications.

DSSSL

DSSSL means Document Style Semantics and Specification Language, a complex stylesheet language for SGML documents. It inspired stylesheet languages such as CSS and → XSL-FO.

DTD

A DTD restrictively defines a markup language’s vocabulary and grammar, declaring permitted elements and attributes (→ valid). Declarations specify names and → content models, controlling permitted content, order and frequency. DTD syntax is not XML-compatible; this and other shortcomings led to XML Schema, covering the same purpose. DTDs nevertheless remain in use for their prevalence and sometimes simpler application. External DTDs normally use .dtd.

back to top

E

EDI

EDI (Electronic Data Interchange) exchanges data between companies over intranet or Internet. EDIFACT (ISO 9735) is an e-commerce EDI standard.

Element, element node

An XML element becomes an element node merging its start and end tags. Its node name is the element name; content forms descendant branches with text, comment, processing-instruction and element children. Associated attribute and namespace nodes are not children and do not count as element content.

Element axes

Element axes have element as → principal node type: Child, Descendant, Descendant-Or-Self, Parent, Ancestor, Ancestor-Or-Self, Self, Following-Sibling, Preceding-Sibling, Following and Preceding. Only attribute and namespace axes are excluded.

Embedded stylesheet

Besides separate XML stylesheets, an xsl:stylesheet element and its template rules can be embedded in the source XML. Not all processors support embedded stylesheets. Give it an ID, e.g. id="mein_style", referenced by a fragment identifier from the XML <?xml-stylesheet> processing instruction, e.g. href="#mein_style". Besides being hard or impossible to reuse on other XML, the stylesheet must avoid accidentally processing itself.

Encoding

An XML encoding declaration tells the parser the → Unicode character encoding through encoding in the opening → XML declaration. Without an explicit value, the parser assumes → UTF-8 or UTF-16. An XML declaration’s initial <?xml sequence helps identify the encoding: its first four bytes distinguish UTF-8 and UTF-16. In Western Europe, use → ISO-8859-1 for reliable umlaut display.

External entities

DTDs declare external entities as file pointers referenced during XML processing. Text files with or without markup are parsed and expanded at the → entity reference without violating → well-formedness. Binary files are → unparsed entities: their pointers remain and their content cannot be inserted into the document.

Entity

Entities are named DTD replacement rules or external-file references used through → entity references. Internal and external text entities are parsed, while binary unparsed entities must not be. Five predefined entities need no declaration and always allow control-character notation.

Entity reference

Entity references name a DTD entity using & plus its declared identifier and ;, e.g. &mein_entity;. Parsed replacement text expands at the reference. Unparsed entities can only be referenced in an attribute of type ENTITY; the value is just its identifier, without & or semicolon.

Result tree

XSLT builds a result tree by creating its → document node, then attaching nodes through template rules: → literal result elements or elements and attributes created by xsl:element or xsl:attribute. The tree is the → current output destination, and the node being written the → current destination node.

Result document

→ Serializing the result tree to a file creates the result document. Depending on output method it is XML, HTML 4.0 or arbitrary text such as plain text, CSV, RTF or LaTeX. XSLT 2.0 adds XHTML as direct output, previously possible only as XML.

Extension function

Predefined XPath 1.0 or XPath 2.0/XQuery functions can be extended by user functions implemented in processors and identified by a namespace. Check runtime availability with function-available(). EXSLT  also supplies extension packages. XSLT 2.0 additionally uses the new → top-level element xsl:function to declare runtime → stylesheet functions within the stylesheet.

Extension instruction

Vendors can extend XSLT instructions with proprietary stylesheet instructions. They require a namespace different from → XSLT and the → null namespace. Register it with extension-element-prefixes on xsl:stylesheet or xsl:extension-element-prefixes on the instruction itself. Check runtime availability with element-available(). EXSLT supplies widely usable extensions, many incorporated into XSLT 2.0.

Expanded name

A node’s expanded QName is what XSLT actually uses, unlike the source prefix/→ local name combination. Expansion replaces the prefix with its URI. Prefixes sharing one URI become indistinguishable; name() may therefore choose any declared prefix during namespace fixup. There is no universal notation: James Clark’s form is {http://www.example.org/beispielnamensraum}beispiel; another is "http://www.example.org/beispielnamensraum^beispiel", with beispiel as local name.

Expression

An XPath expression follows XPath syntax, yielding a string, number, Boolean or sequence (XPath 1.0: node-set). Certain XSLT attributes evaluate it, such as select in xsl:value-of, xsl:for-each or test in xsl:if or xsl:when, e.g. select="$ausdruck". At runtime its result replaces it. Expressions also occur in attribute value templates on → literal result elements, e.g. mein_attribut="{$ausdruck}". Braces delimit rather than belong to the expression; escape an internal { as {{.

Extension element

→ Extension instruction

Extension function

→ Extension function

External entities

→ External entities

back to top

F

Fallback

If XSLT cannot evaluate an expression or instruction in a template rule, fallback executes an otherwise skipped alternative block inside xsl:fallback. This occurs for missing → extensions or higher-version elements. element-available() or function-available() can test availability instead. Fallback excludes unknown → top-level elements, which are simply ignored.

Filter expression

→ Predicate

Following axis

Following (following::) includes nodes after context in → document order, excluding context and descendants. In source terms, elements whose start tags follow the context’s end tag and their contents, including text and comments. No → abbreviation exists.

Following-Sibling axis

Following-Sibling (following-sibling::) includes nodes of the same level after context in → document order, excluding context. No → abbreviation exists.

XSL Formatting Objects (FO)

XSL Formatting Objects, or XSL-FO, is an XML language for print-page output of XML. It follows CSS and → DSSSL, borrowing “flow objects”, but more universal language and writing-direction support makes its specification  extensive. It continues original XSL, which combined what became XSLT and output formatting. An XSLT transformation produces XSL-FO, then an output application processes it further, e.g. to PDF. One FO processor is FOP by James Tauber.

Forward-compatible processing

Forward-compatible processing aims to process stylesheets even when their version, wholly or for some instructions, exceeds processor support. Ignore unknown → top-level elements and attributes, and execute → fallback for unknown instructions. Only if that fails should a dynamic/runtime error be reported.

Fragment identifier

A fragment identifier is the URI part referencing an identified document region, as with HTML named anchors: <a name="mein_anker"> and <a href="#mein_anker">. In XML, it is described by XPointer, an extension of XPath.

Function

XPath expressions may call functions defined in XPath or XSLT. Since XPath 2.0, XPath functions are specified together with XQuery, XPath’s new superset. Functions can also be declared as → stylesheet functions or supplied as processor → extensions. A call’s return value replaces it in the expression. XPath 1.0 returns strings, Booleans, numbers or node-sets. In XPath 2.0, → sequences replace node-sets and all data types from → XML Schema are supported.

back to top

G

Mixed content

→ Mixed content

Global parameters

→ Parameter

Global variables

→ Variable

Glyphs

A glyph is a character’s visual representation, whether letter, number or symbol defined in ASCII, Unicode or another system. Different fonts, sizes or styles represent one character with different glyphs.

XML document validity

→ Validity

Variable and parameter scope

Scope follows the position of xsl:variable or xsl:param declarations. Both global and local values are referenced within following siblings after declaration. Global declarations are → top-level elements and apply to subsequent → template rules; locals apply only within their declaring rule. Local names shadow equal global names, making the global value inaccessible there.

back to top

H

HTML

HTML, like XML, derives from SGML but is not an XML application. It is a common XSLT output, selected implicitly by an <html> → root element or explicitly with method on xsl:output as method="html". → XHTML recasts and extends HTML as XML; XSLT 2.0 supplies method="xhtml" as a separate output.

back to top

I

IANA

The IANA (Internet Assigned Numbers Association) initially supervised Internet addresses, domains and protocol parameters such as TCP and UDP ports, Ethernet numbers and service names. These tasks passed to ICANN (Internet Corporation for Assigned Names and Numbers, since 1998). Registering → language codes and → MIME types remains important.

ID

An identifier (ID) attribute uniquely identifies an element instance. Its value must be unique document-wide, even across different attribute names and elements. The name need not be id, although this is common. DTD or schema declaration is decisive, e.g. <!ATTLIST beispiel id-attribut ID #REQUIRED>, declaring a mandatory ID attribute named id-attribut on <beispiel>. XPath id() finds elements by ID values.

Import precedence

In modular stylesheets, import precedence resolves conflicts between the main stylesheet and modules imported through xsl:import. Conflicts involve identically named → templates or identical → template rules. Main rules have higher precedence; imported rules lower, and their imports lower again. Included modules share main precedence, effectively overriding it because the xsl:include instruction makes their rules count as preceding main rules.

Content model

An element content model specifies allowed content (content). DTD element-only models specify child names, sequence and, imperfectly, cardinality. Alternatively allow text only #PCDATA (→ PCDATA) or mixed content (→ mixed content). XML Schema overcomes DTD model limitations at the price of substantially more complex definitions.

Instantiation

Instantiating a template rule copies its → literal result elements into output and executes its other XSLT instructions.

Instruction

Instructions are XSLT elements used inside template rules (xsl:tem¬plate containers), not as top-level or root elements. XSLT 1.0 has 21 instructions, XSLT 2.0 has 29. xsl:param and xsl:variable can also be top-level elements.

ISO

The ISO (International Organization for Standardization) independently defines international standards, representing 145 countries, Germany through DIN. It manages about 14,000 standards. Character sets (ISC field 35.040, “Character sets and information coding”) matter for XML/XSLT; subsets determine XML → encoding (→ ISO-8859).

ISO-8859

ISO-8859 groups several character sets usable for XML → encoding. ISO-8859-1 (Latin-1) covers Western Europe, the most relevant here. Others are ISO-8859-2 (Eastern Europe, Latin-2), ISO-8859-3 (Southern/other European languages, Latin-3), ISO-8859-4 (Scandinavia/Baltic, Latin-4), ISO-8859-5 (Cyrillic), ISO-8859-6 (Arabic), ISO-8859-7 (Greek), ISO-8859-8 (Hebrew), ISO-8859-9 (Turkish) and ISO-8859-10 (Lappish, Eskimo).

Item

In XPath 2.0, an item is a → sequence member: an atomic string, number, → Boolean or date, or a node. A single-item sequence is a singleton.

back to top

J

JAXP

JAXP, Sun’s Java API for XML Processing, formerly Project-X (XDOM), handles XML parsing and transformation and supports → SAX 2.0, → DOM Level 2 and XSLT.

JDK

From JDK 1.4 (Java 2), Sun’s Java Development Kit includes all Java classes required for XML/XSLT parsing and processing.

back to top

K

Cardinality

Cardinality is occurrence frequency, for example a node in a content model. A suffix indicates ? for zero or one, + for one or more, and * for zero, one or more occurrences.

Key definition

A key defines relations among element nodes in one or more XML documents processed together, like a lookup table. Declare and name it with the top-level xsl:key, then reference its identifier in XPath through key(). Precomputed relations make processing faster than direct XPath queries.

Child nodes

Child nodes are subordinate content: elements, text, comments and processing instructions between an element’s start/end tags, reached through → Child. Attributes and namespace nodes are not children and require separate → attribute or → namespace axes.

KindTest

XQuery/XPath KindTest is a → node-test subtype in a → location step. It tests node kind regardless of name, usually for → unnamed nodes but also usable on named nodes. The other subtype is → NameTest.

Node

→ Node

Node list, current

→ Node sequence, current

Node kind

→ Node type

Comment

XML and → SGML comments start with <!-- and end with -->: <!-- Dies ist ein XML-Kommentar -->. They may occur in element content or the → prolog but not inside tags to comment out attributes. They cannot nest or contain --, but may span any number of lines. In the → tree they become → comment nodes.

XPath 2.0 also permits comments delimited by (: and :): (: Dies ist ein XPath-Kommentar :). They annotate complex expressions or disable code. Unlike XML comments, XPath comments can nest and occur wherever whitespace is permitted.

Comment node

A comment node represents a comment as a child of its containing element, reached through → Child. → Built-in rules neither copy it to output nor evaluate it without an explicit rule. It has no name but is recognized by comment(); its string value is the commented text.

Context size

Context size is the number of items in the → current sequence, always an integer obtained through last().

Context node

The context node anchors XPath evaluation. It usually equals → current node except in → predicates, where each node under test becomes context.

Context position

Context position is the → current item’s place in the → current sequence, obtained by position() as an integer. First is 1; last equals → context size.

back to top

L

Language code

A language code identifies element content language, set by the xml:lang-Attributs for the element and its descendants. Codes have a two-letter main group and optional hyphenated subgroup: fr-CA means French fr and Canadian CA. ISO 639 or → IANA defines codes; user-defined ones are also possible.

Reading order

→ Document order

Literal

A literal denotes a value. "Hallo!" is the string literal for Hallo! without delimiters. It is an elementary expression that cannot or need not be split further. Primitive values appear as string literals or the two Boolean literals true and false. Numeric literals are more precisely numerals: 17.5 denotes 17,5.

Literal result element

Literal result elements in → template bodies copy unchanged to output with their non-XSLT content. They must be well-formed within the template, outside XSLT or extension namespaces but may use any other or → default namespace, copied too unless excluded. Text nodes also copy and are often grouped here, but are properly “Literal Data Characters”.

Local name

A local name is the → QName part after the → namespace prefix. It must be an XML name, but not necessarily an → NCName. local-name() returns element/attribute names, empty strings for unnamed nodes, a prefix for namespace nodes, and the target application name for → processing instructions.

Location path

A location path describes one or more nodes in a document. → Absolute and → relative paths comprise → steps separated by /. All nodes reachable from → document or → context node form the result, which can contain one or several nodes or be empty.

Location path, absolute

An absolute path starts at the → document node, represented by / before the first step. Its result is context-independent: /element1/element2.

Location path, relative

A relative path starts at context, directly with the first step. Its result depends on current context: element1/element2.

Location path

→ Location path

Location step

A location step builds a path of at least one step: an → axis defines direction; a → node test selects nodes on it, adding successful ones to the result. → Predicates add filters candidates must also satisfy. Example: descendant::node()[name()='beispiel'], where descendant:: is the axis, node() the node test, [name()='beispiel'] a predicate.

Local variable

→ Variable

Local parameter

→ Parameter

back to top

M

Metadata

Metadata describe data types and properties, without concrete usable values. This higher abstraction improves information-system structures. XML element names describe container content and thus provide metainformation.

Metainformation

→ Metadata

MIME type

MIME (Multipurpose Internet Mail Extension) defines file types. Originating in Sendmail (RFC2045, RFC2046), it is now used in HTTP. Examples are text/html, text/css and text/xml. Proposed text/xsl was rejected; application/xslt+xml was adopted instead.

A list of valid MIME values is maintained by → IANA, where registration is required. text/xslt is unregistered and invalid. An XML example is <?xml-stylesheet type="text/xml" href="notiz.xsl"?>. Registered XML types are text/xml, application/xml, application/xslt+xml, text/xml-external-parsed-entity, application/xml-external-parsed-entity and application/xml-dtd (RFC 3023).

Mixed content

Mixed content allows text and named elements in an → element model, but without precise order or frequency requirements. DTDs use a repeatable alternatives group starting with #PCDATA: <!ELEMENT beispiel (#PCDATA | xxx | yyy | zzz)*>. → XML Schema uses complex types. Pure PCDATA, called “mixed content” in DTDs, is a simple type there.

Mode

→ Template mode

Modularization

XML modules or fragments connect to a main document through → entity references. XSLT modules normally connect through xsl:import or xsl:include. document() can introduce further content modules during processing.

back to top

N

Named template

→ Template, named

Unnamed nodes

Three node types lack individual names: document, text and comment nodes. name() and local-name() return empty strings for them. Processing instructions have names: their target application identifiers.

Namespace

Namespaces  prevent XML name clashes, especially when combining sources using equal names for different concepts, e.g. table as furniture or a data table. Namespaces also unambiguously identify commands such as XSLT instructions. A unique URI string identifies each namespace without requiring a resource. It maps to a → QName → prefix because URI characters cannot necessarily appear in XML names.

Namespace, default

→ Default namespace

Namespace declaration

A namespace declaration binds a namespace to an element through xmlns for the default or xmlns:mein_prefix for prefix mein_prefix:. Bind a URI with xmlns="http://www.defaultnamensraum.org/default" or xmlns:mein_prefix="http://www.mein_namensraum.net/ns". The URI is a string, not an address. Prefix names as mein_prefix:beispiel; with local name beispiel this forms the → QName. Scope includes the declaring element and all descendants.

Namespace node

A namespace node represents the namespace valid for its element alone, not descendants, unlike namespace scope. Its string value is the namespace URI and local name the prefix. Only the → namespace axis reaches it.

Namespace prefix

The prefix stands for a → namespace URI bound by declaration. Processing expands QName prefixes into URIs (→ expanded name). Prefixes must be → NCNames without colons. Any case variant beginning xml, such as Xml, XML or xMl, is reserved for W3C.

Namespace URI

The namespace URI, or namespace name, is the actual namespace; prefixes are placeholders. Multiple prefixes for one URI are indistinguishable to XSLT, which uses the → expanded name. XSLT uses 'http://www.w3.org/1999/XSL/Transform' as the exact command-identifying string; changing it prevents recognition. Microsoft formerly used 'http://www.w3.org/TR/WD-xsl', requiring namespace changes for other processors, but has since aligned.

Namespace

→ Namespace

Namespace axis

namespace::node() contains context’s namespace nodes if context is an element, otherwise none. It includes directly bound namespaces and in-scope inherited namespaces from ancestors. No → abbreviation exists. XPath 2.0/XQuery abolishes this axis; applications may optionally support it without obligation.

NameTest

XQuery/XPath NameTest is a → node-test subtype checking names, usable only on named nodes such as elements and attributes. It tests a → QName or → wildcard. The other subtype is → KindTest.

NaN

NaN, “Not a Number”, results from numeric operations on nonnumeric operands. It counts as numeric but lies outside the number sequence, so comparisons even with itself fail. XPath 1.0 commonly produces it when converting nonnumeric strings through number fails.

NCName

An NCName has no colon and cannot contain a namespace prefix. A full → QName instead consists of two NCNames, the → prefix and → local name. Although XML names allow colons in local names, avoid this: XSLT would mistake the first part for an undeclared prefix.

Node

A node represents an information-bearing XML component in its tree. Hierarchy makes subordinate nodes content of their parents. Different component → types are accessed through → axes.

Current node sequence

xsl:apply-templates or xsl:for-each creates the current node sequence from the XPath pattern selected by select. → Document order applies unless changed by xsl:sort. Processing follows that order, making each node → current in turn.

Node-set

XPath 1.0 node-sets are unordered node collections assembled by XPath pattern from one or more → trees. They may be homogeneous, heterogeneous or empty. XPath 2.0’s nearest equivalent is a node-only sequence, ordered and potentially allowing duplicates, which processing removes for XPath 1.0 compatibility.

Node test

A node test checks nodes on a step’s → axis, adding successful ones to results. It is either a name test (→ NameTest) or kind test (→ KindTest).

A name test uses a → QName, e.g. child::beispiel selects <beispiel> children, or a → wildcard replacing names by *: child::* selects all child elements regardless of name.

Unnamed nodes use function-like kind tests: comment() for comments, processing-instruction() for PI, text() for text and node() for any type. Namespace nodes have no dedicated kind test.

XPath 2.0 adds document-node(), general element() and attribute() tests. Arguments refine name or schema/content type through element(bezeichner) and element(bezeichner, typangabe).

Node type

XPath has seven node types: document, element, attribute, text, comment, processing instruction and namespace. Attributes and namespaces require their own axes; the rest use element axes. → Node tests distinguish kinds within location steps.

Non-colonized name

→ NCName

Normalization

Normalization removes leading/trailing whitespace and reduces internal runs to one space. normalize-space() performs string normalization. Removing whole whitespace-only text nodes between elements is instead → whitespace stripping.

Null namespace

A null namespace has an empty URI. The W3C namespace specification  allows this only for default xmlns, not prefixed namespaces. xmlns="" is allowed, xmlns:mein_prefix="" is not. A null default namespace undeclares the default.

Number

XPath 1.0 number uses IEEE 754 floating point. XPath 2.0’s specification XML Schema Datatypes distinguishes xs:decimal (derived: xs:integer), xs:float and xs:double. The collective label numeric is not a separate type name.

back to top

O

OASIS

OASIS stands for Organisation for the Advancement of Structured Information Standards, which develops XML standards and initiated and owns → DocBook.

Output method

The xsl:output-Deklaration sets output properties: method selects xml, html, text or, from XSLT 2.0, xhtml; encoding selects → encoding, with many other properties available. XSLT 2.0 xsl:result-document creates multiple documents, each referencing a named xsl:output-Deklaration.

back to top

P

Parameter

xsl:param declares local parameters within templates or global parameters at top level. Usage and scope resemble xsl:variable, but values can be supplied externally: globals at stylesheet invocation, e.g. query string, locals through xsl:with-param. Otherwise select defines the default.

XSLT 2.0 tunnel parameters use xsl:with-param with tunnel="yes" in calls to subordinate rules. Their stream is quasi-global to all descendant calls without explicit forwarding. Equal names can overwrite values in the stream, effectively reassigning them.

Parent axis

Parent (parent::) is an element axis selecting the parent opposite → document order. The parent is always an element, since only elements have children. Elements also parent attributes and namespaces, although those are not children or on element axes. → Abbreviation: “..”.

Parser

→ XML parser

Validating parser

→ XML parser

Path expression

A path expression selects a node sequence from source. Its anchor is context for relative paths or document node for absolute paths. One or more → location steps produce the result sequence.

Pattern

XPath patterns are an expression subset matching nodes by value, name or document position. They select the → template rule for a pending node during sequence processing, using the rule’s match attribute.

PCDATA

PCDATA (#PCDATA, Parsed Character Data) is parsed text where → entity references expand. XSLT processes already-parsed documents with replacement text or characters. This includes stylesheets and XPath expressions, which may therefore contain entities.

Placeholder

→ Wildcard

Portability

Portability means moving programs across platforms. XSLT stylesheets are highly portable across any platform offering XML parsers and XSLT processors.

Prefix

→ Namespace prefix

Precedence

→ Import precedence

Precedence

→ Import precedence

Preceding axis

Preceding (preceding::) contains nodes whose end tags precede context’s start tag, counted opposite → document order. Context and ancestors are excluded. No → abbreviation exists.

Preceding-Sibling axis

Preceding-Sibling (preceding-sibling::) includes context’s predecessors at the same level, not context. It is a → preceding-axis subset, without → abbreviation.

Predicate

Predicates filter a location step’s results: achsenbezeichner::node-test[predicate]* permits one or more. Evaluation returns Boolean; true includes the candidate. During predicate evaluation that node becomes → context; otherwise context is also → current node.

Prefix

→ Namespace prefix

Principal node type

Principal node type is the predominant type on an → axis: attribute for → attribute, namespace for → namespace, and element for all others. Other kinds on element axes, such as text, comments or PI, can be selected through → kind tests.

Template rule priority

When several rules match a node, only one can be → instantiated. More specific match patterns normally outrank general rules or → wildcards; → built-in rules rank lowest. Explicit priority numbers override this through priority; higher numbers mean higher priority.

Priority

→ Template rule priority

Processing instruction

PIs pass document information to applications, opening with <? and closing with ?>. The name normally identifies the target, followed by optional space-separated data. Parsers pass them through rather than process them. Like comments they are not informational content, but unlike comments are always forwarded. General form: <?zielanwendung datenstring?>. Data may contain spaces or resemble attributes, as in <?xml-stylesheet type="text/xsl" href="mein_stylesheet.xsl"?>. The similar → XML declaration is not a PI. PI nodes are children of their containing elements; the name is the target and → string value the data.

Processing instruction

→ Processing instruction

XML prolog

The prolog precedes the → root element; root plus content is the body. Optional, it should at least contain an → XML declaration and may include a → document type declaration, → comments and → processing instructions.

PSVI

PSVI (Post Schema Validation Infoset) is the tree extended after parsing and → schema validation with node type bindings. It bridges node instances accessible to applications and schema-type classes in the schema’s object-oriented model.

Xerces 2’s XNI (Xerces Native Interface) has an initial internal PSVI interface: org.apache.xerces.xni.psvi.

back to top

Q

QName

A QName (Qualified Name) combines local name and optional namespace prefix. Both are → NCNames, separated by a colon: prefix:local_name. XSLT uses expanded QNames (→ expanded name).

Qualified name

→ QName

Source document

The source is the XML instance processed by XSLT, logically combining all entities parsed together rather than necessarily one file. A source is required even when its information is unused. Documents added by document() or XPath 2.0 fn:doc() do not count as source.

back to top

R

Result tree

→ Result tree

Result tree fragment

XSLT/XPath 1.0 result tree fragments come from variable template blocks. Although resembling node-sets, XPath cannot process them as such, only copy them as-is. “Temporary tree” is clearer. Extensions such as node-set() in Saxon convert fragments to real node-sets.

XPath 2.0 integrates comparable functions and abolishes result tree fragments.

Reverse document order

Reverse order opposes default → document order, applying to → ancestor, → parent, → preceding and derived axes.

Root elements

In XSLT, xsl:stylesheet and xsl:transform alone can be stylesheet → root elements. Do not confuse with → root node.

Root node

Root originally meant → document node in XSLT, but also commonly means XML → root element. They differ; use document node consistently in XSLT to prevent confusion.

back to top

S

Scalable Vector Graphics

→ SVG

Schema

Schema covers XML structure/content descriptions such as DTD and XML Schema. Other approaches, including Microsoft XML-Data Reduced, are obsolete or proprietary.

Schema-aware XSLT processor

→ XSLT processor

Key definition

→ Key definition

Scope

→ Variable scope

Self axis

Self (self::) contains only context; → abbreviation “.”. Usually it equals → current node returned by current(), except in → predicates, where the tested node becomes context.

Sequence

XPath 2.0 expressions yield ordered sequences of zero or more → items: atomic strings, numbers, Booleans or nodes. Heterogeneous sequences mix nodes and values. XPath 1.0 → node-sets are the node-only special case. Literal ParenthesizedExpr uses commas: (1, 2, 3, 4, 5). RangeExpr (1 to 5) is equivalent. Empty sequence: ().

Sequence constructor

→ Template body

Serialization

Serialization outputs a result tree as file text, splitting element nodes into start/end tags in → document order and writing contents and attributes sequentially. A defined order is required, as usual in XML. Rebuilding a tree from that file is → deserialization.

XSLT/XQuery serialization has a separate W3C specification, “XSLT 2.0 and XQuery 1.0 Serialization”.

SGML

SGML (Standardized General Markup Language) began as GML at IBM in 1969 through Ch. Goldfarb, E. Mosher and R. Lorie, a prototype of modern markup. Standardized as ISO 8879, it describes complex information structures. Extremely powerful and complex, it underlies HTML as an SGML application and XML as a simplified meta-markup subset largely taking over its role.

Simplified stylesheet

→ Simplified stylesheet

SMIL

SMIL (Synchronized Multimedia Integration Language) is a W3C XML multimedia standard. Versions are SMIL 1.0 (June 1998), SMIL 2.0 (January 2005) and SMIL 3.0 (December 2008).

Source document

→ Source document

Element-content language

→ Language

Standalone

standalone in the → XML declaration indicates whether an external DTD subset must be sought. Values are "no" by default or "yes". standalone="yes" additionally forbids relevant external parameter entities. standalone="no" allows but does not require external DTD declarations.

Step

→ Location step

String

Strings are primitive data types containing arbitrary Unicode sequences. Whitespace counts as ordinary characters and → significant whitespace. In XSLT/XPath 2.0, strings are → atomic → items in → sequences.

String value

→ String value

String value

String value depends on node kind: commented text for comments, target data for → PIs, URI for → namespaces, contained text for → text nodes and attribute value for → attributes. An element’s value concatenates descendant text in → document order, ignoring markup.

Stylesheet

Stylesheets define independent presentation instructions applied to data documents, separating information and display. Languages include DSSSL with SGML or Cascading Style Sheets (CSS). CSS Level 2 presents XML but cannot transform documents.

XSLT transformations are also called stylesheets, though they transform rather than present. Their results may be directly displayable HTML or XSL-FO. The metaphor appears in xsl:stylesheet, with the more accurately named alternative xsl:transform.

Stylesheet function

XSLT 2.0 xsl:function declares custom functions usable at runtime like XPath functions. They require prefixed QNames bound to nonempty namespaces. Fallback should allow older processors to run the stylesheet.

SVG

SVG is a W3C XML application for two-dimensional vector graphics. Besides continuous scaling, effects include shadows, lighting, blur and distortion. Browser display of embedded SVG currently needs plugins such as Adobe SVG-Viewer.

System properties

System properties describe processor capabilities. system-properties('property-name') reads a named property as a string. Required properties are version ('xsl:version'), vendor ('xsl:vendor') and vendor URL ('xsl:vendor-url'); processors may expose others.

back to top

T

Tag

A tag marks a section’s beginning and end and assigns meaning. XML tags are logical metadata about content.

Template

→ Template rule

Named template

Named templates use name instead of ordinary matching and are called through xsl:call-template. The caller’s → current node remains valid.

Template body

A template body is primarily the content of an xsl:template element; in XSLT 1.0 more broadly any instruction content producing output. It consists of → literal result elements and instructions ultimately creating → result document content.

XSLT 2.0 formally calls it a sequence constructor, producing a sequence to serialize rather than immediate document content; “template” described this too narrowly.

Template mode

A matching rule can have mode. That mode must be requested when assembling its node sequence; only then is the corresponding rule activated.

Template rule

A template rule is an xsl:template element with match. Its XPath pattern tests current sequence nodes. For each, the best matching rule with highest → priority is instantiated, and the node becomes → current for that template’s duration.

With name instead of match, it is a → named template.

Built-in template rules

Built-in rules act as if written explicitly. General element/document rules process children without explicit rules. Text and attributes copy their content to output; comments and PI are ignored. Higher-priority custom rules override built-ins.

Template rule

→ Template rule

Temporary tree

→ Result tree fragment

Text declaration

Parsed external entities that are not standalone well-formed documents can declare encoding with an XML-like text declaration. Unlike XML declarations, version may be omitted: <?xml encoding="ISO-8885-1"?>.

Text node

A text node is uninterrupted CDATA within an element, a → child reached through Child and copied unchanged to output. Whitespace-only nodes can be removed by → whitespace stripping. Attribute, comment and PI string values are not text nodes.

Text node

→ Text node

Token

Tokens are indivisible symbols of formal languages: operators, keywords, predefined commands or rule-defined identifiers. They may be strings subject to production rules, as XML names, and cannot contain spaces.

Token list

Token lists separate → tokens with spaces or general → whitespace, hence individual tokens cannot contain spaces. Examples include values of IDREFS or NMTOKEN attributes.

Top-level element

Top-level XSLT declarations are direct children of xsl:stylesheet. The key example is xsl:template defining rules. XSLT 1.0 has thirteen, XSLT 2.0 fifteen; other elements are → instructions.

Tree

→ Document tree

Tunnel parameter

→ Parameter

Type error

XPath 2.0 type errors arise from function arguments of unexpected types. They are non-recoverable: processing must abort to preserve result type integrity. Explicit conversion or casting may prevent them or report a failed cast statically before transformation.

Loosely typed XPath 1.0 has no type errors.

Validity

Validity means conformance to a DTD or schema, distinct from well-formedness. A document without a DTD or violating it can still attain well-formedness by following its → rules.

Type conversion

Type conversion turns a value into another type, often needed in XSLT. XPath 1.0 normally converts implicitly for required inputs. XPath 2.0 instead reports a → type error and aborts, unless explicitly converted with fn:boolean(), fn:number(), fn:string() or corresponding casting functions.

back to top

U

UNICODE

Original ASCII used seven bits for 128 characters, extended to eight bits for 256, sufficient only in Anglo-American contexts. XML’s universal approach supports the Unicode standard, using 16-bit patterns for 65,000 characters per encoding. All Unicode 2.1 characters, corresponding to ISO/IEC 10646, can therefore occur in XML.

Unparsed entity

Parsing normally expands entity references. Binary entities cannot be inserted as XML/text without likely violating well-formedness and must not be parsed. Their references occur only in attributes declared ENTITY or ENTITIES, using just the entity name without & or ;. Declare one as <!ENTITY bild SYSTEM "/img/bild.gif" NDATA GIF>. NDATA tells the parser this external entity must remain unparsed.

URI

URI means Universal Resource Identifier, covering URL or URN for Internet resources through addresses (URI) or fixed names (URN).

URL

URL means Universal Resource Locator, a unique Internet resource address: protokoll://servername/pfad/resourcenbezeichner. Usual protocols are HTTP and FTP.

URN

URN means Uniform Resource Name, naming rather than addressing a resource, like an XML resource’s PUBLIC identifier. People or programs are assumed able to locate it by name, e.g. in a local repository, without an absolute address.

UTF-8, UTF-16

UTF-8 uses variable bits per character and is XML’s default encoding. Unlike ISO-8859, it does not permit direct umlaut use; character entities are required unless another encoding is specified. UTF-16 is a UTF-8 variant using 16 bits (2 bytes) per character. Parsers distinguish them from initial XML-declaration characters even without encoding.

back to top

V

Valid

→ Validity

Validating parser

→ Validating parser

Validation

Validation checks a document against its DTD or schema through a validating XML parser. Passing makes it valid (→ validity).

Variable

xsl:variable declares template-local or top-level global variables, scoped to the template or whole stylesheet. Values come from select or an optional template body. name gives the name; XPath references add $: $meine_variable.

Variable binding

→ Variable

Simplified stylesheet

Fixed HTML output can simplify stylesheets by omitting xsl:stylesheet and using <html> as root, declaring version and xsl: namespace: <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">. It contains XSLT instructions but no top-level declarations, hence no xsl:template rules, only inline instructions extracting source information into HTML.

Matching pattern

→ Pattern

Default value

→ Default value

back to top

W

Truth value

→ Boolean value

Well-balanced

An external parsed XML fragment need not be well-formed: no single root is required, so it may form multiple trees. Elements must still close and nest correctly without compromising main-document well-formedness. Such fragments are well-balanced and may carry a → text declaration specifying encoding.

Well-formed

Well-formed XML follows → well-formedness rules, prerequisite to DTD validity. Parsers always reject documents failing these rules as incorrect XML.

Whitespace

→ Whitespace

Whitespace

XML 1.0 whitespace is space (SPC, #20), linefeed (LF, #0A), tab (TAB, #09) and carriage return (CR, #0D). Source whitespace is significant and passed to applications for their own handling, except possible source → line-end normalization.

XML 1.1 adds mainframe NEL (Newline, U+0085 or #x85) and Unicode line separator #x2028. Previously forbidden characters mean XML 1.1 documents are not strictly well-formed XML 1.0.

Whitespace text nodes

These contain only whitespace, created by source line breaks (C→ or LF), spaces (SPC) or tabs (TAB). Removing them is → whitespace stripping, distinct from → normalization.

Whitespace stripping

Whitespace stripping removes inter-element text nodes containing only SPC, LF, TAB or CR. Removing leading/trailing whitespace within mixed-content elements is instead → normalization.

Wildcard

Wildcards replace unknown names in XPath → name tests with *. attribute::* selects any context attribute, child::* any child element, abbreviated @* or *. They can replace a whole QName or either part: mein_prefix:* means that prefix with any local name; *:mein_name any prefix with local name mein_name.

Well-formedness

→ Well-formed

Well-formedness rules

XML must follow well-formedness rules; otherwise it is not XML. Four core rules are:

  1. Exactly one → root contains all content; the → prolog does not count here.

  2. Elements must nest correctly; overlap would make content assignment ambiguous.

  3. All elements require opening and closing tags; empty elements use <leeres_element/>.

  4. All attribute values must be quoted.

Meeting these plus DTD rules makes XML valid. Well-formedness is prerequisite to → validity.

External parsed entities follow relaxed rules without requiring one root element. They are XML fragments, not standalone documents, called well-balanced rather than well-formed.

Root element

Exactly one root element contains all other XML content. With a DTD, its name normally also names the DTD in the → document type declaration.

back to top

X

XML database

XML databases optimize XML storage, suited to data whose embedded structure is not fully predictable. Structure may be hierarchical or relational, allowing RDBS, but variable designs challenge older relational databases. Vendors are adapting XML support; whether XML databases form a separate category is disputed. Tamino is a known example.

XML declaration

The optional prolog declaration should be used to specify encoding other than default UTF-8. It must be first, with no preceding whitespace or comments. Required version gives XML version; optional encoding and standalone follow strictly in that order. Example: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>. Despite appearance it is not a PI. On parsed external entities it is a → text declaration.

XML parser

XML distinguishes parser and downstream application, whose behavior is unspecified by W3C. The parser first checks → well-formedness, rejecting violations, aborting and reporting critical errors. It may also unify source → line endings.

Passing documents undergo entity expansion: internal/external replacement text is parsed and inserted, character entities replaced, then the tree built. Nonvalidating parsers check only well-formedness even with DTD; validating parsers also check → validity.

XML Schema

XML Schema alternatively describes structures, content models and element/attribute types. Its two parts describe structure and data types. It surpasses DTD in many ways at substantially greater complexity. Definition files normally use .xsd.

XPath

XPath addresses XML parts and is used by XSLT and XPointer. It uses patterns as addressing paths and general expressions yielding strings, numbers, Booleans or node collections. XSLT 1.0 uses XPath 1.0, XSLT 2.0 the expanded XPath 2.0. XPath 3.0.

XPath expression

→ Expression

XPath pattern

→ Pattern

XPointer

XPointer is part of the XLL standard specifying address structure in XLink expressions. It specifies a fragment identifier after # in a URL, referencing an XML subset.

XQuery

The language XQuery  extends XPath with SQL-like querying. Initially developed separately, specifications merged as XQuery 1.0/XPath 2.0, making XPath 2.0 effectively an XQuery 1.0 subset. They share operators, functions and models. SQL-like syntax deliberately eases migration.

XSL-FO

→ Formatting Objects

XSLT namespace

The W3C XSLT namespace identifies instructions. Correct URI binding matters, not prefix alone; alternatives to xsl: are legal. Declare it on xsl:stylesheet or xsl:transform exactly as xmlns:xsl="http://www.w3.org/1999/XSL/Transform". Different prefixes are legal but uncommon and reduce readability.

Microsoft temporarily used "http://www.w3.org/TR/WD-xsl" with xsl, preventing other processors from running such stylesheets without namespace and other changes. It now supports the common standard.

XSLT processor

XSLT processors transform XML. XSLT 2.0 distinguishes schema-aware and basic processors.

Basic processors support all mandatory XSLT/XPath 2.0 features except schema concepts. They should reject schema-dependent stylesheets using xsl:import-schema, type, validation or default-validation not set to "strip", or user-defined types. Built-in types remain supported.

A schema-aware processor such as Saxon-SA supports mandatory XSLT/XPath 2.0 plus schema concepts, importing schemas, validating and using custom types.

Optional features beyond mandatory specifications are implementation choices, so stylesheets relying on them are not universally portable.

back to top

Z

Character string

→ String

Character encoding

→ Encoding

Source line ending

Parsers normalize line endings to UNIX-style LF (#0A), retained by processors such as Saxon. Mac OS uses CR (#0D); Windows/DOS NLF uses #0D #0A. Windows editors such as Notepad may display source poorly; choose a suitable editor.

Mainframe line ends #x85 (NEL, next line) and #x2028 (LS, line separator; Unicode General Punctuation Block) are forbidden in XML 1.0 but allowed as whitespace in XML 1.1. Parsing replaces NEL and LS with LF, shielding downstream applications such as XSLT processors.

back to top

   

back to top