1 /*
2 * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xalan.internal.xsltc.runtime;
23
38 import java.io.File;
39 import java.io.FileOutputStream;
40 import java.text.DecimalFormat;
41 import java.text.DecimalFormatSymbols;
42 import java.util.ArrayList;
43 import java.util.HashMap;
44 import java.util.List;
45 import java.util.Map;
46 import javax.xml.parsers.DocumentBuilderFactory;
47 import javax.xml.parsers.ParserConfigurationException;
48 import javax.xml.transform.Templates;
49 import org.w3c.dom.DOMImplementation;
50 import org.w3c.dom.Document;
51
52 /**
53 * @author Jacek Ambroziak
54 * @author Santiago Pericas-Geertsen
55 * @author Morten Jorgensen
56 * @author G. Todd Miller
57 * @author John Howard, JohnH@schemasoft.com
58 */
59 public abstract class AbstractTranslet implements Translet {
60
61 // These attributes are extracted from the xsl:output element. They also
62 // appear as fields (with the same type, only public) in Output.java
63 public String _version = "1.0";
64 public String _method = null;
65 public String _encoding = "UTF-8";
66 public boolean _omitHeader = false;
67 public String _standalone = null;
68 //see OutputPropertiesFactory.ORACLE_IS_STANDALONE
69 public boolean _isStandalone = false;
70 public String _doctypePublic = null;
71 public String _doctypeSystem = null;
72 public boolean _indent = false;
73 public String _mediaType = null;
74 public List<String> _cdata = null;
75 public int _indentamount = -1;
76
77 public static final int FIRST_TRANSLET_VERSION = 100;
|
1 /*
2 * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xalan.internal.xsltc.runtime;
22
37 import java.io.File;
38 import java.io.FileOutputStream;
39 import java.text.DecimalFormat;
40 import java.text.DecimalFormatSymbols;
41 import java.util.ArrayList;
42 import java.util.HashMap;
43 import java.util.List;
44 import java.util.Map;
45 import javax.xml.parsers.DocumentBuilderFactory;
46 import javax.xml.parsers.ParserConfigurationException;
47 import javax.xml.transform.Templates;
48 import org.w3c.dom.DOMImplementation;
49 import org.w3c.dom.Document;
50
51 /**
52 * @author Jacek Ambroziak
53 * @author Santiago Pericas-Geertsen
54 * @author Morten Jorgensen
55 * @author G. Todd Miller
56 * @author John Howard, JohnH@schemasoft.com
57 * @LastModified: Oct 2017
58 */
59 public abstract class AbstractTranslet implements Translet {
60
61 // These attributes are extracted from the xsl:output element. They also
62 // appear as fields (with the same type, only public) in Output.java
63 public String _version = "1.0";
64 public String _method = null;
65 public String _encoding = "UTF-8";
66 public boolean _omitHeader = false;
67 public String _standalone = null;
68 //see OutputPropertiesFactory.ORACLE_IS_STANDALONE
69 public boolean _isStandalone = false;
70 public String _doctypePublic = null;
71 public String _doctypeSystem = null;
72 public boolean _indent = false;
73 public String _mediaType = null;
74 public List<String> _cdata = null;
75 public int _indentamount = -1;
76
77 public static final int FIRST_TRANSLET_VERSION = 100;
|