|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: executing template at stylesheet end
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
|
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
|

Cart








