[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|