gnu.kawa.xslt

Class XSLT


public class XSLT
extends XQuery

New Kawa language XSLT (XML Stylesheet Language Tranformations).

Field Summary

static XSLT
instance
static Symbol
nullMode

Fields inherited from class gnu.xquery.lang.XQuery

DEFAULT_ELEMENT_PREFIX, DEFAULT_FUNCTION_PREFIX, KAWA_FUNCTION_NAMESPACE, LOCAL_NAMESPACE, PARSE_WITH_FOCUS, QEXO_FUNCTION_NAMESPACE, SCHEMA_INSTANCE_NAMESPACE, SCHEMA_NAMESPACE, VARIADIC_FUNCTION_NAMESPACE, XHTML_NAMESPACE, XQUERY_FUNCTION_NAMESPACE, defaultFunctionNamespacePath, extensionsEnvEnv, falseExp, falseFunction, instance, kawaFunctionNamespace, qexoFunctionNamespace, trueExp, trueFunction, xqEnvironment, xqueryFunctionNamespace

Fields inherited from class gnu.expr.Language

FUNCTION_NAMESPACE, NAMESPACE_PREFIX_NAMESPACE, PARSE_IMMEDIATE, PARSE_ONE_LINE, PARSE_PROLOG, VALUE_NAMESPACE, current, env_counter, environ, requirePedantic, userEnv

Constructor Summary

XSLT()

Method Summary

static void
applyTemplates(String select, Symbol mode)
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)
Compilation
getCompilation(Lexer lexer, SourceMessages messages)
Override XQuery implementation to get Language default.
Lexer
getLexer(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, evalToFocusProc, evalToFocusProc, evalWithFocus, evalWithFocus, evalWithFocus, evalWithFocus, eval_with_focus$X, eval_with_focus$X, formatType, getCompilation, getExternal, getInstance, getLexer, getName, getNamespaceOf, getOutputConsumer, getPrompter, getStandardType, getSymbol, getTypeFor, getTypeFor, hasNamespace, hasSeparateFunctionNamespace, isTrue, makeClassName, mangle, namespaceForFunctions, parse, registerEnvironment, resolve

Methods inherited from class gnu.expr.Language

asType, booleanObject, coerceFromObject, coerceToObject, coerceToObject, declFromField, defAliasStFld, defProcStFld, defProcStFld, define, defineFunction, defineFunction, detect, detect, detect, emitCoerceToBoolean, emitPushBoolean, eval, eval, eval, eval, eval, eval, eval, eval, eval, formatType, getCompilation, getDefaultLanguage, getEnvPropertyFor, getEnvPropertyFor, getEnvironment, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLangTypeFor, getLanguages, getLexer, getName, getNamespaceOf, getNewEnvironment, getOutputConsumer, getPrompter, getSymbol, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeFor, hasNamespace, hasSeparateFunctionNamespace, isTrue, loadClass, lookup, lookupBuiltin, noValue, parse, parse, parse, parse, registerLanguage, resolve, runAsApplication, setDefaultLanguage, setDefaults, string2Type

Field Details

instance

public static XSLT instance

nullMode

public static Symbol nullMode

Constructor Details

XSLT

public XSLT()

Method Details

applyTemplates

public static void applyTemplates(String select,
                                  Symbol mode)
            throws Throwable

defineApplyTemplate

public static void defineApplyTemplate(String pattern,
                                       double priority,
                                       Symbol mode,
                                       Procedure template)

defineCallTemplate

public static void defineCallTemplate(Symbol name,
                                      double priority,
                                      Procedure template)

defineTemplate

public static void defineTemplate(Symbol name,
                                  String pattern,
                                  double priority,
                                  Symbol mode,
                                  Procedure template)

getCompilation

public Compilation getCompilation(Lexer lexer,
                                  SourceMessages messages)
Override XQuery implementation to get Language default.
Overrides:
getCompilation in interface XQuery

getLexer

public Lexer getLexer(InPort inp,
                      SourceMessages messages)
Overrides:
getLexer in interface XQuery

getName

public String getName()
Overrides:
getName in interface XQuery

getXsltInstance

public static XSLT getXsltInstance()

parse

public boolean parse(Compilation comp,
                     int options)
            throws java.io.IOException,
                   SyntaxException
Overrides:
parse in interface XQuery

process

public static void process(TreeList doc,
                           Focus pos,
                           CallContext ctx)
            throws Throwable

registerEnvironment

public static void registerEnvironment()
The compiler insert calls to this method for applications and applets.
Overrides:
registerEnvironment in interface XQuery

runStylesheet

public static void runStylesheet()
            throws Throwable