Package gnu.kawa.xslt
Class XSLT
- java.lang.Object
-
- gnu.expr.Language
-
- gnu.xquery.lang.XQuery
-
- gnu.kawa.xslt.XSLT
-
public class XSLT extends XQuery
New Kawa language XSLT (XML Stylesheet Language Tranformations).
-
-
Field Summary
Fields Modifier and Type Field Description static XSLT
instance
static Symbol
nullMode
-
Fields inherited from class gnu.xquery.lang.XQuery
DEFAULT_ELEMENT_PREFIX, DEFAULT_FUNCTION_PREFIX, defaultFunctionNamespacePath, extensionsEnvEnv, falseExp, falseFunction, KAWA_FUNCTION_NAMESPACE, kawaFunctionNamespace, LOCAL_NAMESPACE, PARSE_WITH_FOCUS, QEXO_FUNCTION_NAMESPACE, qexoFunctionNamespace, SCHEMA_INSTANCE_NAMESPACE, SCHEMA_NAMESPACE, trueExp, trueFunction, VARIADIC_FUNCTION_NAMESPACE, XHTML_NAMESPACE, xqEnvironment, XQUERY_FUNCTION_NAMESPACE, xqueryFunctionNamespace
-
Fields inherited from class gnu.expr.Language
current, environ, FUNCTION_NAMESPACE, global, NAMESPACE_PREFIX_NAMESPACE, PARSE_CURRENT_NAMES, PARSE_EMIT_MAIN, PARSE_EXPLICIT, PARSE_FOR_APPLET, PARSE_FOR_EVAL, PARSE_FOR_LINT, PARSE_FOR_SERVLET, PARSE_IMMEDIATE, PARSE_INTERACTIVE_MODULE, PARSE_ONE_LINE, PARSE_PROLOG, requirePedantic, userEnv, VALUE_NAMESPACE
-
-
Constructor Summary
Constructors Constructor Description XSLT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
defineApplyTemplate(String pattern, double priority, Symbol mode, Procedure template)
static void
defineCallTemplate(Symbol name, double priority, Procedure template)
static void
defineTemplate(Symbol name, String pattern, double priority, Symbol mode, Procedure template)
Lexer
getLexer(gnu.kawa.io.InPort inp, SourceMessages messages)
String
getName()
static XSLT
getXsltInstance()
boolean
parse(Compilation comp, int options)
static void
process(TreeList doc, Focus pos, CallContext ctx)
static void
registerEnvironment()
The compiler insert calls to this method for applications and applets.static void
runStylesheet()
-
Methods inherited from class gnu.xquery.lang.XQuery
applyWithFocus, applyWithFocus, applyWithFocus, applyWithFocus, applyWithFocus$X, asChar, asNumber, define, define_method, eval_with_focus$X, eval_with_focus$X, evalToFocusProc, evalToFocusProc, evalWithFocus, evalWithFocus, evalWithFocus, evalWithFocus, formatType, getCompilation, getExternal, getInstance, getNamespaceOf, getOutputConsumer, getPrimaryPrompt, getSecondaryPrompt, getStandardType, getSymbol, getTypeFor, getTypeFor, hasNamespace, hasSeparateFunctionNamespace, isTrue, makeClassName, mangle, namespaceForFunctions, resolve
-
Methods inherited from class gnu.expr.Language
asType, booleanObject, booleanValue, coerceFromObject, coerceToObject, declFromField, decodeType, defAliasStFld, defineFunction, defineFunction, defProcStFld, defProcStFld, defProcStFld, defProcStFldAs, detect, detect, detect, encodeType, eval, eval, eval, eval, eval, eval, eval, eval, eval, getCompilation, getCompilation, getCompilationClass, getDefaultLanguage, getEnvironment, getEnvPropertyFor, getEnvPropertyFor, getExtensions, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLangTypeFor, getLanguages, getNamedType, getNewEnvironment, getTypeFor, getTypeFor, getTypeFor, isValidJavaName, loadClass, lookup, lookupBuiltin, mangleName, noValue, parse, parse, parse, parse, registerLanguage, restoreCurrent, runAsApplication, setCurrentLanguage, setDefaults, setSaveCurrent, unionType
-
-
-
-
Method Detail
-
getXsltInstance
public static XSLT getXsltInstance()
-
getLexer
public Lexer getLexer(gnu.kawa.io.InPort inp, SourceMessages messages)
-
parse
public boolean parse(Compilation comp, int options) throws IOException, SyntaxException
- Overrides:
parse
in classXQuery
- Throws:
IOException
SyntaxException
-
registerEnvironment
public static void registerEnvironment()
The compiler insert calls to this method for applications and applets.
-
defineCallTemplate
public static void defineCallTemplate(Symbol name, double priority, Procedure template)
-
defineApplyTemplate
public static void defineApplyTemplate(String pattern, double priority, Symbol mode, Procedure template)
-
defineTemplate
public static void defineTemplate(Symbol name, String pattern, double priority, Symbol mode, Procedure template)
-
process
public static void process(TreeList doc, Focus pos, CallContext ctx) throws Throwable
- Throws:
Throwable
-
-