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

Re: executing template at stylesheet end

Subject: Re: executing template at stylesheet end
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 25 Mar 2002 07:06:11 +0100
templates for chores
There is not such "open" and "close" in XSLT. XSLT works on the XML-tree.
Where do you want to know what the last node is?

But you found already the workaround for "open". Why not doing "close" in
the same way?

<xsl:template match="/">
    <xsl:call-template name="open"/>

    <!-- process all nodes -->
    <xsl:apply-templates/>

    <xsl:call-template name="close"/>
</xsl:template>

Regards,

Joerg

> Greetings all,
>
>     Is there any XPath expression so that I can put my code in a template
> matching that expression. I am using Xalan with File extensions.
>
>     I have a call called "open" that I make to my Xalan extension in a
named
> template that gets called on matching the pattern "/". Similarly I have to
> make the call "close" after processing the Stylesheet.
>
> Most of the languages permit calls during Start up and Finishing chores.
but
> strangely I could not find any in XSLT.
>
> Thanks,
> Suresh


 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.