Hi,

I would like to hide a parent node of a input-element.

For example, I would like to get the parent node of the node './/
input[@id="field-projectplugin"]', because I would like to hide the
label as well. Currently I need two Transformer-operations:
stream |= Transformer('.//input[@id="field-
projectplugin"]').attr('style', 'display: none')
stream |= Transformer('.//label[@for="field-
projectplugin"]').attr('style', 'display: none')

The current solution isn't very nice, because there is still an empty
row.

I tried X-Path expression ".//input[@id="field-projectplugin"]/
parent::*", but this didn't work with Genshi. Is there any other trick
or method to get to the parent node?

Thanks in advance,
Franz

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to