match="//title" means almost the same as match="title", but not quite. The first matches any title element in a document (a tree rooted at a document node), while the second matches any title anywhere. Of course, many stylesheets never process elements that aren't part of a document, and in this case both are equivalent, except for two little details: (a) match="title" is faster, because it doesn't have to check what's at the root of the tree, and (b) match="title" has lower default priority, which only matters if you have several template rules that match the same node.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|