Subject: Re: [xsl] [XSLT2] setting context inside funcdefs From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx> Date: Fri, 14 Feb 2003 20:14:01 +0100 |
apply-templates would also effectively re-establish the context but in
that case the code that uses the context isn't explictitly in the function body but rather in the template that gets applied.
so probably just xsl:for-each or within an xpath2 expression of the form <xsl:value-of select="$callers_context-node/a/b/*[localname()....
<t:function name="dx:default_class_values"> <t:param name="context"> <t:result> <value-of select="local-name($context)"/> <t:if test="string($context/@role)"> <t:text> </t:text> <t:value-of select="$context/@role"/> </t:if> </t:result> </t:function>
-- http://www.pinkjuice.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XSLT2] setting context i, David Carlisle | Thread | Re: [xsl] [XSLT2] setting context i, Jeni Tennison |
Re: xslt core and intuition was RE:, Wendell Piez | Date | [xsl] ANN: nxslt - .NET XSLT Comman, Oleg Tkachenko |
Month |