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

Calling a template before any other templates

Subject: Calling a template before any other templates
From: Peter Desjardins <peter.desjardins.us@xxxxxxxxx>
Date: Wed, 11 Apr 2012 13:29:16 -0400
 Calling a template before any other templates
Hi. I am trying to do something in XSLT 2.0 that requires that some of
my templates know what the result of other templates is (or will be).
I want to run a process that writes a file before any other templates
run and then be able to refer to that file during the rest of the
processing.

If I call a template from the first template like the following, can I
rely on it being completed before any other templates are applied? Is
there a reliable way to perform an operation before any templates are
applied?

<xsl:template match="/">
  <xsl:call-template name="this.template.must.be.first" />
  <xsl:apply-templates/>
</xsl:template>

Thanks for your help.

Peter Desjardins

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.