August 2011
Intermediate to advanced
416 pages
10h 14m
English
Now, let’s learn how to use the XSLT 1.0 features to create useful XSL transformations.
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>
...
Read now
Unlock full access