01: /*
02: * This file is part of PFIXCORE.
03: *
04: * PFIXCORE is free software; you can redistribute it and/or modify
05: * it under the terms of the GNU Lesser General Public License as published by
06: * the Free Software Foundation; either version 2 of the License, or
07: * (at your option) any later version.
08: *
09: * PFIXCORE is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public License
15: * along with PFIXCORE; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: */
19:
20: package de.schlund.pfixxml;
21:
22: import com.icl.saxon.Context;
23:
24: import de.schlund.pfixxml.util.XsltContext;
25: import de.schlund.pfixxml.util.xsltimpl.XsltContextSaxon1;
26:
27: /**
28: * @author mleidig@schlund.de
29: */
30: public class IncludeDocumentExtensionSaxon1 {
31:
32: public static Object get(Context context, String path_str,
33: String part, String targetgen, String targetkey,
34: String parent_part_in, String parent_theme_in,
35: String computed_inc) throws Exception {
36: XsltContext xsltContext = new XsltContextSaxon1(context);
37: return IncludeDocumentExtension.get(xsltContext, path_str,
38: part, targetgen, targetkey, parent_part_in,
39: parent_theme_in, computed_inc);
40: }
41:
42: public static String makeSystemIdRelative(Context context) {
43: XsltContext xsltContext = new XsltContextSaxon1(context);
44: return IncludeDocumentExtension.makeSystemIdRelative(
45: xsltContext, "dummy");
46: }
47:
48: public static String makeSystemIdRelative(Context context,
49: String dummy) {
50: XsltContext xsltContext = new XsltContextSaxon1(context);
51: return IncludeDocumentExtension.makeSystemIdRelative(
52: xsltContext, dummy);
53: }
54:
55: public static boolean isIncludeDocument(Context context) {
56: XsltContext xsltContext = new XsltContextSaxon1(context);
57: return IncludeDocumentExtension.isIncludeDocument(xsltContext);
58: }
59:
60: }
|