Code example for DOMSource

Methods: getNode, getSystemId

    if (source instanceof DOMSource)
      DOMSource dsource = (DOMSource) source;
      node = dsource.getNode();
      baseID = dsource.getSystemId();
      isource = SAXSource.sourceToInputSource(source);
      baseID = isource.getSystemId();
    // What I try to do here is parse until the first startElement 
    // is found, then throw a special exception in order to terminate  
    // the parse. 
    StylesheetPIHandler handler = new StylesheetPIHandler(baseID, media,
                                    title, charset);
    // Use URIResolver. Patch from Dmitri Ilyin