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

RE: difference between xsl:include and xsl:import

Subject: RE: difference between xsl:include and xsl:import
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Wed, 20 Feb 2002 14:50:45 +0100
xsl import include difference


>Hi, can someone tell me how (or is it possible) to separate the xpath
>expression, and whether it is possible to create such so that the end user
>can customerise their own xpath.

>from the xsl stylesheet? also, can somebody tell me what's the difference
>between xsl:import and xsl:include

 without use of extension functions you can't really seperate the xpath, if
what you mean by that is to write something like
<ref xpath="/books/book[name='mybook']"/>
however one could have something like <ref element="book"/>

and have something like
<xsl:template match="ref">
<xsl:variable name="elementName" select="@element"/>
<xsl:for-each select="//*[name()=$elementName]">
do something here
</xsl:for-each>

</xsl:template>

this method can be used, with a bit of string processing to build up complex
xpaths of a particular structure.

the short explanation for the second is that xsl:import one can override the
imported stylesheets templates, and in xsl:include one cannot


 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.