1. /*
  2. * Copyright 2001-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * $Id: DOMCache.java,v 1.8 2004/02/16 20:54:58 minchau Exp $
  18. */
  19. package com.sun.org.apache.xalan.internal.xsltc;
  20. /**
  21. * @author Morten Jorgensen
  22. */
  23. public interface DOMCache {
  24. /**
  25. * This method is responsible for:
  26. *
  27. * (1) building the DOMImpl tree
  28. *
  29. * Parser _parser = new Parser();
  30. * DOMImpl _dom = new DOMImpl();
  31. * _parser.setDocumentHandler(_dom.getBuilder());
  32. * _parser.setDTDHandler(_dom.getBuilder());
  33. * _parser.parse(uri);
  34. *
  35. * (2) giving the translet an early opportunity to extract anything from
  36. * the DOMImpl that it would like
  37. *
  38. * translet.documentPrepass(_dom);
  39. *
  40. * (3) setting the document URI:
  41. *
  42. * _dom.setDocumentURI(uri);
  43. *
  44. * @param baseURI The base URI used by the document call.
  45. * @param href The href argument passed to the document function.
  46. * @param translet A reference to the translet requesting the document
  47. */
  48. public DOM retrieveDocument(String baseURI, String href, Translet translet);
  49. }