|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [XSLT2] setting context inside funcdefs
David Carlisle wrote:
apply-templates would also effectively re-establish the context but in so probably just xsl:for-each or within an xpath2 expression of the form <xsl:value-of select="$callers_context-node/a/b/*[localname().... I see, thanks for the explanation. Here's what I have now: (I had the $context before, but wasn't sure if I could eliminate redundant references by setting the focus to its context.) <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>Tobi
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








