Subject: Re: [xsl] Context Assignment Question and New to list. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 15 Apr 2004 15:12:21 -0400 |
I am adding features to some existing sets of template functions. One of these functions (funcA for example) assume a context node .
My new template function (fucB) is fairly generic and takes in a node (say $cur_node), that it uses since I cannot depend on the context of the call to the template.
FuncB needs to make a call to FuncA.
Is there anyway to give $cur_node as the context for A? Is there a function to "assign" context?
<xsl:template name="FuncB"> <xsl:param name="cur-node" select="."/> ... whatever you do ... <xsl:for-each select="$cur_node"> <xsl:call-template name="FuncA"/> </xsl:for-each> ... whatever else ... </xsl:template>
I hope that helps, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Context Assignment Question a, Blaine Garrett | Thread | [xsl] how i can use 'table' in fo i, Roberta Granata |
RE: [xsl] how do you determine if a, Wendell Piez | Date | RE: [xsl] how do you determine if a, David Buddrige |
Month |