return new NodeSet(e);
}
private void buildResult( Node n, Element result ) {
AnnotatedPattern p = (AnnotatedPattern)psvi.get(n);
if( p==null ) return;
for( Iterator itr=p.getAnnotations().iterator(); itr.hasNext(); ) {
Node o = document.importNode( (Node)itr.next(), true );
if( o instanceof Attr )
result.setAttributeNodeNS((Attr)o);
else
result.appendChild( o );