Hi Eric, thank you for your answer, I've tried some combinations of the
tests you sent, but failed to get the result I expected, which I'll try
to put in words and some diagrams:
(1) projects <- menuitem-selected, shows only the direct
child nodes
>> former
>> undergoing
(2) projects
>> former
>> undergoing <- menuitem-selected, shows direct child nodes
and preceding and following siblings
>> u1
>> u2
>> ...
(3) projects
>> former
>> f1 <- menuitem-selected, shows direct child nodes
and parent's preceding and following siblings
>> f2
>> ...
>> undergoing
I solved (1) by adding this condition:
<xsl:when test="parent::nav:[EMAIL PROTECTED] = 'true']">
<xsl:call-template name="item"/>
</xsl:when>
I solved (2) by adding this condition:
<xsl:when test="(preceding-sibling::nav:[EMAIL PROTECTED] = 'true']) or
(following-sibling::nav:[EMAIL PROTECTED] = 'true'])">
<xsl:call-template name="item"/>
</xsl:when>
I couldn't figure out how to solve 3 since I'm not a very experienced
XPath user. I know is more of an XPath issue rather than Lenya, but
could you give a hand with this?
Thanks once again, regards,
Rolando
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]