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

Basic XSLT Features

Now, let’s learn how to use the XSLT 1.0 features to create useful XSL transformations.

Multiple XML Inputs

XSLT inputs must be XML documents, but there is no limit on how many XML documents can be used. The XSL document() function allows XSLT to have multiple XML documents as the inputs.

A typical example is to use XSLT to merge XML documents (contact_resume_merge.xsl):

Listing 7-5 Merging XML Documents with XSLT

<xsl:stylesheet version=“1.0” xmlns:xsl=“http://www.w3.org/1999/XSL/Transform”

                                        xmlns:book=“http://xmlbook.com/sample/contact.xsd”>

     <xsl:output method=“xml” omit-xml-declaration=“no” indent=“yes”/>

     <xsl:template match=“@*|node()”>

          <xsl:choose>

                ...

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