KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > style > ExtensionInstruction


1 package net.sf.saxon.style;
2 import net.sf.saxon.style.StyleElement;
3 import net.sf.saxon.trans.XPathException;
4
5 import javax.xml.transform.TransformerConfigurationException JavaDoc;
6
7 /**
8 * Abstract class representing an extension instruction
9 */

10
11 public abstract class ExtensionInstruction extends StyleElement {
12
13     /**
14     * Determine whether this node is an instruction.
15     * @return true - it is an instruction
16     */

17
18     public final boolean isInstruction() {
19         return true;
20     }
21
22     /**
23      * Determine whether this type of element is allowed to contain an xsl:fallback
24      * instruction
25      */

26
27     public final boolean mayContainFallback() {
28         return true;
29     }
30
31     public void validate() throws XPathException {
32         checkWithinTemplate();
33     }
34
35 }
36
37 //
38
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
39
// you may not use this file except in compliance with the License. You may obtain a copy of the
40
// License at http://www.mozilla.org/MPL/
41
//
42
// Software distributed under the License is distributed on an "AS IS" basis,
43
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
44
// See the License for the specific language governing rights and limitations under the License.
45
//
46
// The Original Code is: all this file.
47
//
48
// The Initial Developer of the Original Code is Michael H. Kay.
49
//
50
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
51
//
52
// Additional Contributor(s): Rick Bonnett [rbonnett@acadia.net]
53
//
54
Popular Tags