01: package net.sf.saxon.style;
02:
03: import net.sf.saxon.style.StyleElement;
04: import net.sf.saxon.trans.XPathException;
05:
06: import javax.xml.transform.TransformerConfigurationException;
07:
08: /**
09: * Abstract class representing an extension instruction
10: */
11:
12: public abstract class ExtensionInstruction extends StyleElement {
13:
14: /**
15: * Determine whether this node is an instruction.
16: * @return true - it is an instruction
17: */
18:
19: public final boolean isInstruction() {
20: return true;
21: }
22:
23: /**
24: * Determine whether this type of element is allowed to contain an xsl:fallback
25: * instruction
26: */
27:
28: public final boolean mayContainFallback() {
29: return true;
30: }
31:
32: public void validate() throws XPathException {
33: checkWithinTemplate();
34: }
35:
36: }
37:
38: //
39: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
40: // you may not use this file except in compliance with the License. You may obtain a copy of the
41: // License at http://www.mozilla.org/MPL/
42: //
43: // Software distributed under the License is distributed on an "AS IS" basis,
44: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
45: // See the License for the specific language governing rights and limitations under the License.
46: //
47: // The Original Code is: all this file.
48: //
49: // The Initial Developer of the Original Code is Michael H. Kay.
50: //
51: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
52: //
53: // Additional Contributor(s): Rick Bonnett [rbonnett@acadia.net]
54: //
|