[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

what is the difference between XSL:import and XSL:incl

Subject: what is the difference between XSL:import and XSL:include
From: "Hewko, Doug" <Doug.Hewko@xxxxxxxxxxxxxxx>
Date: Fri, 3 Aug 2001 15:01:05 -0400
difference between xmlns import
What is the difference between XSL:import and XSL:includ and how do they
work?

Let's say I have the following stylesheet (one.xsl):
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:import href="anothersheet.xsl" />
  <xsl:import href="yetanotherone.xsl" />  
  <xsl:template match="/">
   <p align="left">
    <xsl:apply-templates/>
   </p>
  </xsl:template>
</xsl:stylesheet>

Say "anothersheet.xsl" looks like this:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="title">
   <h1>
    <xsl:apply-templates/>
   </h1>
  </xsl:template>
</xsl:stylesheet>

And "yetanotherone.xsl" is thus:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="text">
   <h1>
    <xsl:apply-templates/>
   </h1>
  </xsl:template>
</xsl:stylesheet>

What would the resulting page look like to the XSL processor if you use
<include> vs <import>? For example, would the processor see one large page,
or just links to three?

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.