The current() function isn't always easy to understand -- not the function itself, but what it represents. The current() function represents the node that you are currently prossessing in the XSL. But it is sometimes confusing what node that is.
Typically if you are using current() within a repeating node, it will represent the specific instance of that repeating node being displayed/workd with. And if you are using it within a particular node, it represents that specific node. Sometimes its not as straight forward as that, and I often get confused myself. I typically use trial and error, though I guess I could open the XSL file and see exactly where I'm at when I'm using it.
One you have your current node, then you following it with a regular XPath just like you would if you were using the dot node (i.e. "." -- which is another representation of current() used in different circumstances).
Have I confused you yet? Hopefully not.
So if you have a schema like:
myFields
group1
group2
field1
field2
group3
field4
and current() represents group2, and you want to reach field2 you would use:
current()/field2
if current() represents field4 and you want to reach field2, you would use:
current()/../../field2
Make sense? Hopefully. Good luck!

Signature
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com
Greg,
Thanks so much for your help. Your tutorials are very well constructed. I
created the form with the three hierarchical listboxes and it works great.
Now I'm trying to apply the concept to my own form. I think I'm getting
mired in how to refer to a particular node of the data source.
The way I got my list boxes to work one-time-only was to make a reference
from my dependent listbox (which uses a secondary datasource) to the parent
field in my main datasource (a datafield from main, since my form is used for
submitting to a database).
I'm trying to apply the current() function, but I'm not sure how to refer to
the main datasource, group and target node. Can you provide any further
direction?
"Greg Collins [InfoPath MVP]" wrote:
> Check out my tutorials on repeating cascading lists:
>
[quoted text clipped - 3 lines]
> Create a Repeating Cascading List from a Hierarchical Data Source
> http://www.infopathdev.com/howto/tutorials/default.aspx?i=9f6fda3a14c14ac4924cf0
a382928432