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

Re: xsl:template having both name and match

Subject: Re: xsl:template having both name and match
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 03 Mar 2005 12:42:00 +0000
Re:  xsl:template having both name and match
>>>>> "Mukul" == Mukul Gandhi <mukul_gandhi@xxxxxxxxx> writes:

    Mukul> This means that we can write a xsl:template having *both*
    Mukul> name and match attributes..

    Mukul> I want to know in which circumstances such a template
    Mukul> definition is useful.. Can somebody please provide an
    Mukul> example where this has real practical use..?

This is used extensively in FXSL for XSLT2.

Where a test does not require any source document, then the initial
template is defined like:

<xsl:template match="/" name="initial"> etc.

Then you can invoke the test from the command line, without having to
supply a source XML document.

But this is not convenient for Dmitre, as he uses some development
environment, which makes it awkward (I don't know the details). So the
matxh ="/" is retained for this purpose.
-- 
Colin Paul Adams
Preston Lancashire

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.