xsl-list
[Top] [All Lists]

RE: [XSLT2] setting context inside funcdefs

2003-02-15 01:08:30

I just got confused by the "initially" in

   "Within the body of a stylesheet function, the focus is initially
   undefined"

which seemed to imply the possibility of setting the focus/context, 
possibly to that of the function call.


Yes, I don't like the "initially" - I've generally tried to avoid words
in the spec that have a temporal connotation.

What it means is that you are allowed to write things like

<xsl:function...
<xsl:variable...
   <xsl:for-each select="$param">

and inside the for-each (or inside a predicate in a filter expression)
the context item is well defined.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list