|I've been learning the use of axis in transformations and I stumbled on
|something that didn't seem to make sense...
|local-name( */* )
|local-name( */child::* )
|return the same values. I would have thought...
|local-name( */child::* )
|local-name( */*/* )
|would be the same (which they aren't).
|Could somebody help me reason out why it is this way?
this one's probably the result of a misconception you're having about the
axes in general.
in effect, when you specify '*/*' in your example, you're saying
'child::*/child::*' because the child:: axis is implicit.
the best way to think of it is that the axis will always be 'child::' unless
you specifically state otherwise (e.g. by specifying parent:: or @ as your
axis).
this is why */* and child::*/child::* return the same value.
hope that helps,
b
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list