O'Reilly logo

Oracle Database 11g: Building Oracle XML DB Applications by Jinyu Wang

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

Understanding XSLT Processing

XSLT is template-based processing, which operates on the tree-structured XML infoset (source tree). For example, let’s run XSLT on this simple XML document (john_smith.xml):

<?xml version=“1.0” encoding=“UTF-8”?>

<contact xmlns=“http://xmlbook.com/sample/contact.xsd” id=“1”>

     <category>customer</category>

     <first_name>John</first_name>

     <last_name>Smith</last_name>

     <email>john.smith@hfarm.com</email>

</contact>

The transformation traverses the document source tree, starting from the <contact> element and followed by its child nodes including the XML elements, attributes, text nodes, and others.

An XSL stylesheet is an XML document. In an XSL stylesheet, there are one or multiple templates defined ...

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