Last time I was doing playing with XML, I wanted to be able to,  
basically, add methods on to the nodes matching xpaths. It didn't  
seem to be very easy. I wondered at the time if some kind of  
transform idea would work better.