|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Context Assignment Question and New to list.
Hi Blaine,
At 02:21 PM 4/15/2004, you wrote: I am adding features to some existing sets of template functions. One of these functions (funcA for example) assume a context node . Sort of, though not a function, exactly. But if you can't rewrite FuncA to be context-neutral, you can work around it by switching context ad hoc, with a for-each (or even an apply-templates with a mode): <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
|
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








