gnu.kawa.xslt
Class XSLT

java.lang.Object
  extended by gnu.expr.Language
      extended by gnu.xquery.lang.XQuery
          extended by gnu.kawa.xslt.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, 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, env_counter, environ, FUNCTION_NAMESPACE, NAMESPACE_PREFIX_NAMESPACE, PARSE_IMMEDIATE, PARSE_ONE_LINE, PARSE_PROLOG, requirePedantic, userEnv, VALUE_NAMESPACE
 
Constructor Summary
XSLT()
           
 
Method Summary
static void applyTemplates(java.lang.String select, Symbol mode)
           
static void defineApplyTemplate(java.lang.String pattern, double priority, Symbol mode, Procedure template)
           
static void defineCallTemplate(Symbol name, double priority, Procedure template)
           
static void defineTemplate(Symbol name, java.lang.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)
           
 java.lang.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_method, define, eval_with_focus$X, eval_with_focus$X, evalToFocusProc, evalToFocusProc, evalWithFocus, evalWithFocus, evalWithFocus, evalWithFocus, getExternal, getInstance, getNamespaceOf, getOutputConsumer, getPrompter, getStandardType, getSymbol, getTypeFor, getTypeFor, hasNamespace, hasSeparateFunctionNamespace, isTrue, makeClassName, mangle, namespaceForFunctions, resolve
 
Methods inherited from class gnu.expr.Language
asType, booleanObject, coerceFromObject, coerceToObject, coerceToObject, declFromField, defAliasStFld, defineFunction, defineFunction, defProcStFld, defProcStFld, detect, detect, detect, emitCoerceToBoolean, emitPushBoolean, eval, eval, eval, eval, eval, eval, eval, eval, eval, getDefaultLanguage, getEnvironment, getEnvPropertyFor, getEnvPropertyFor, getFormat, getInstance, getInstance, getInstanceFromFilenameExtension, getLangEnvironment, getLangTypeFor, getLanguages, getNewEnvironment, getTypeFor, getTypeFor, getTypeFor, loadClass, lookup, lookupBuiltin, noValue, parse, parse, parse, registerLanguage, runAsApplication, setDefaultLanguage, setDefaults, string2Type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static XSLT instance

nullMode

public static Symbol nullMode
Constructor Detail

XSLT

public XSLT()
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class XQuery

getXsltInstance

public static XSLT getXsltInstance()

getLexer

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

getCompilation

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

Overrides:
getCompilation in class XQuery

parse

public boolean parse(Compilation comp,
                     int options)
              throws java.io.IOException,
                     SyntaxException
Overrides:
parse in class XQuery
Throws:
java.io.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(java.lang.String pattern,
                                       double priority,
                                       Symbol mode,
                                       Procedure template)

defineTemplate

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

process

public static void process(TreeList doc,
                           Focus pos,
                           CallContext ctx)
                    throws java.lang.Throwable
Throws:
java.lang.Throwable

runStylesheet

public static void runStylesheet()
                          throws java.lang.Throwable
Throws:
java.lang.Throwable

applyTemplates

public static void applyTemplates(java.lang.String select,
                                  Symbol mode)
                           throws java.lang.Throwable
Throws:
java.lang.Throwable