test="not(B)" this should work perfect. All Elements which are not B.
test="not(B)" returns true if the current node has no element children called B. Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list