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

Re: [xslt 2.0] Difference betwen functions and templat

Subject: Re: [xslt 2.0] Difference betwen functions and templates
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Mon, 23 Jul 2007 17:00:59 +0200 (CEST)
Re:  [xslt 2.0] Difference betwen functions and templat
Justin Johansson wrote:

  Hi

> Has is also be explained in this thread already that another
> difference is that xsl:functions do not receive any initial
> focus?

  The context node is cleared when a function is called.  Other context
component that are affected by a call to a stylesheet function are:

    - current template rule (cleared)
    - current mode (cleared)
    - current group and grouping key (cleared)
    - current captured substrings (cleared)
    - output state (set to temporary output)

  The two first are related to applying template rules from within a
funciton (apply imports, next match, or in current mode).  The third
one is related to accessing grouping info from with a function called
from within xsl:for-each-group (the current group and grouping key are
not accessible from the context).  Same thing for the captured
substrings within an xsl:analyze-string.  And the last one is important
when writing to result document for instance (I don't know the other
implications of the output state).

  See http://www.w3.org/TR/xslt20/#additional-dynamic-context.

  Regards,

--drkm






















      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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.