Replace nodes with CSS-like selectors in aster.