A-M

 
xslt for dummies
Glossary
XSLT For Dummies
by Richard Wagner
Hungry Minds 2002
  

Glossary

attribute value template:
Refers to the use of an XPath expression as the value of an attribute in a result tree. This expression is located inside a template and surrounded by curly braces ({}). For example, in the following code snippet, {saleprice} is the attribute value template:
 <xsl:template match="book"> <book price="{saleprice}" <xsl:apply-templates/> </xsl:template> 
axis:
Part of an XPath location step, the axis specifies the relationship of the selected node to the context node. For example, parent is the axis in the following location step: parent::book . The 13 possible axes are as follows : child , descendant , parent , ancestor , following-sibling , preceding -sibling , following-sibling , following , preceding , attribute , namespace , descendant-or-self , and ancestor-or-self .
built-in template rules:
Used to process any node that is not matched with an explicitly defined template rule in your stylesheet. Each of the node types has a specific built-in template rule that is applied to it.
context node:
The node in the source tree that the XSLT processor is handling. For example, in a template rule, the context node is typically the node that is returned by the pattern. You can think of the context node as the selected node, except when you are using an axis value (other than self) that redirects the selection elsewhere.
current node:
See context node.
document tree:
See tree .
element:
XSLT elements are the core building blocks of the XSLT language. There are 35 built-in elements, such as xsl:template and xsl:apply-templates .
expression:
An XSLT statement that represents a value or is used to calculate a value. The result of an expression can be a number, string, Boolean value, or a set of nodes. The following are valid expressions: 8-5 , 'Text' , and round(5.129) .
extension:
An element or function that you include in your XSLT stylesheet but that is not part of the standard XSLT language specification. Extensions come in handy when you need XSLT to do something that the language doesnt already support.
HTML:
The publishing language of the Web and the format of Web pages.
instantiate:
A techno- term that means to add an instance of a template to the result tree.
instruction:
A term for an XSLT element that is used within a template rule for creating parts of the result tree.
key:
You use a key to implicitly cross-reference documents. The xsl:key element declares a key.
leaf:
A node that has no children (nodes underneath it) in a tree structure.
literal result element:
Within a template, any elements that are not part of its namespace ( xsl: ) are treated as literal text when added to the result tree. The XSLT processor takes no action on the element and so it comes through unchanged. For example, <h1> is considered a literal result element in the following snippet:
 <xsl:template match="book"> <h1> <xsl:apply-templates/> </h1> </xsl:template> 
location path :
An XPath expression that is composed of one or more location steps separated by slashes . For example, child:book/sibling:chapter is a location path with two location steps ( child:book and sibling:chapter ).
location step:
The basic building block for XPath patterns. It is an XPath expression used by XSLT to tell the processor what node set to bring back from a source tree. Each location step consists of an axis, a node test, and an optional predicate and takes the following form: axis::nodetest[predicate] .
markup language:
A language, such as HTML, XML, or XSLT, that uses labels enclosed in angle brackets to describe elements of a document.
match pattern:
An XPath expression that declares the conditions that a node must meet in order for an action to take place on it. A match pattern always returns a node set. By far, the most common use of patterns is in an xsl:template , in which the value of its match attribute is a pattern. For example, in <xsl:template match="child:book"> , the child:book expression inside of the quotes is the pattern. In an XSLT template rule, a pattern contains a location path.
  
 
 
2000-2002    Feedback


XSLT For Dummies
XSLT for Dummies
ISBN: 0764536516
EAN: 2147483647
Year: 2002
Pages: 148

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net