xsl-list
[Top] [All Lists]

Re: Parent of context node

2003-05-22 14:05:34

Am I wrong that
"../sg" should be true if the immediate parent of the context node is
<sg>? 


yes.

If you were in directory etym on unix and went cd ../sg (or cd ..\sg on 
windows/dos)
you wouldn't end up at your parent directory but in a sibling directory.

Same is true of xpath. .. is your parent and ../sg is its sg child (ie
your sg sibling)

You want parent::sg

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>