Use p[styleName=...] rather than p[name=...]