O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating XSLT Stylesheets

XSLT transformations accept a document tree as input and produce a tree as output. From the XSLT point of view, documents are trees built of nodes. XSLT recognizes seven types of nodes XSLT; here are those nodes, along with how XSLT processors treat them:

  • The document root— This is the very start of the document.

  • Attribute— This node holds the value of an attribute after entity references have been expanded and surrounding whitespace has been trimmed.

  • Comment— This node holds the text of a comment, not including <!-- and -->.

  • Element— This node consists of all character data in the element, including character data in any of the children of the element.

  • Namespace— This node holds the namespace's URI.

  • Processing instruction ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required