<xsl:template match="display/textbox/textbox-head/title">
<xsl:variable name="role_title"
select="parent::textbox-body/parent::textbox[(_at_)role]"/>
Well it seems I am going nuts (Time to go home a take a nap). For the sake
brevity I misspelled the textbox-head to textbox-body while preparing a
sample file for post. Apologies for that, my real code do says
select="parent::textbox-head/parent::textbox[(_at_)role]
yet in your code snippet you have no "display" element at all and your
"title" element
Will this will have affect *without display* as I am matching the @role of
grandparent *textbox*. I do not see any necessity to include display
element.
As Praveen has suggested
parent::textbox-head/parent::textbox/@role WORKS
but
parent::textbox-head/parent::textbox[(_at_)role] FAILS. Can't we use
[(_at_)role]
instead of /@role. ??????
Thanks everybody for looking into it.
Pankaj
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--