| 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | // Copyright (c) 2018 Saxonica Limited. |
| 3 | // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. |
| 4 | // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
| 6 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 7 | |
| 8 | package net.sf.saxon.style; |
| 9 | |
| 10 | import net.sf.saxon.expr.StaticContext; |
| 11 | import net.sf.saxon.trans.XPathException; |
| 12 | |
| 13 | /** |
| 14 | * Extends the standard XPath static context with information that is available for |
| 15 | * XPath expressions invoked from XSLT |
| 16 | */ |
| 17 | |
| 18 | public interface XSLTStaticContext extends StaticContext { |
| 19 | |
| 20 | /** |
| 21 | * Determine if an extension element is available |
| 22 | * |
| 23 | * @throws net.sf.saxon.trans.XPathException |
| 24 | * if the name is invalid or the prefix is not declared |
| 25 | */ |
| 26 | |
| 27 | boolean isElementAvailable(String qname) throws XPathException; |
| 28 | |
| 29 | } |
| 30 | |
| 31 |