01: /*
02: * Copyright 2001-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
20: package org.apache.xalan.xsltc;
21:
22: /**
23: * @author Morten Jorgensen
24: */
25: public interface DOMCache {
26:
27: /**
28: * This method is responsible for:
29: *
30: * (1) building the DOMImpl tree
31: *
32: * Parser _parser = new Parser();
33: * DOMImpl _dom = new DOMImpl();
34: * _parser.setDocumentHandler(_dom.getBuilder());
35: * _parser.setDTDHandler(_dom.getBuilder());
36: * _parser.parse(uri);
37: *
38: * (2) giving the translet an early opportunity to extract anything from
39: * the DOMImpl that it would like
40: *
41: * translet.documentPrepass(_dom);
42: *
43: * (3) setting the document URI:
44: *
45: * _dom.setDocumentURI(uri);
46: *
47: * @param baseURI The base URI used by the document call.
48: * @param href The href argument passed to the document function.
49: * @param translet A reference to the translet requesting the document
50: */
51: public DOM retrieveDocument(String baseURI, String href,
52: Translet translet);
53:
54: }
|