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

"Instantiating a template" ?

Subject: "Instantiating a template" ?
From: Sony Antony <santony@xxxxxxxxxxxxx>
Date: 30 Nov 2003 14:22:29 -0500
instantiating a template
Following are a bunch of questions I had while reading XSLT books.

1. I saw a mention about "data driven" vs "template driven" paradigms
for XSLT transformations. But I could not see any detailed description
of these 2 fundamentally different strategies. I thought XSLT is
essentially data driven with the input XML solely deciding which
templates to pick for execution.

2. I also saw a lot of mention about "Instantiating" a template. What
exactly is "Instantiating". I thought its just "executing" the template
like a subroutine.

3. Is there a technique/function that will show me the type of a node (
Element vs Attribute vs text ) at run time.

4. What s the difference between the following 3 template defs
<xsl:template match="*">
<xsl:template match="node()">
<xsl:template match="//*">

5. If I have the following 2 templates
<xsl:template match="*"> stuff1 </xsl:template>
<xsl:template match="a/b/c"> stuff2 </xsl:template>

which one will get executed if I have a nested  element c inside element
b which is nested inside a ( a is not the document element )



Thanks in advance
--sony



-- 
Sony Antony <santony@xxxxxxxxxxxxx>


 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.