
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Sablotron XSLT processor class.
Object
Sablot.createProcessor()
Sablot.new()
-
creates a new processor.
-
translated document(as String object).
-
output_file as file.
aSablot.runProcessor(sheet, input, result, params, args)
-
runs the existing instance on the given documents.
arguments:
- sheet
-
URI of the XSLT stylesheet
- input
-
URI of the XML document
- result
-
URI of the output document
- params
-
a Hash of strings defining the top-level parameters
- args
-
a Hash of strings defining the named buffer
aSablot.resultArg(resultURI)
-
gets the result string from the last Sablot run.
the string buffer is identified by an URI (to enable output to
multiple documents)
aSablot.setLog(filename, logLevel)
-
sets the logging options. Logging is off by default.
(but logLevel is ignored so far)
aSablot.setBase(base)
-
overrides the default base URI for relative reference
resolution.
aSablot.setBaseForScheme(scheme, base)
-
a softer form of SablotSetBase: the hard base URI will only
be in effect for relative references whose bases have
the given scheme.
Example: assume we call
processor.setBaseForScheme("arg", "http://server" )
and then runs a stylesheet at "arg:/xxx" which contains
but if the stylesheet were at "file:/xxx" it would become
Since 0.5.0, this module support Message Handler.
Message Handler is implemented using template methods.
If you define Sablot#messageLog or Sablot#messageError,
Sablot object call these methods by necessity.
aSablot.messageLog
-
handler method for logging.
aSablot.messageError
-
handler method for reporting error.
You can use constant for handler methods.
Sablot::MH_DEBUG
Sablot::MH_INFO
Sablot::MH_WARN
Sablot::MH_ERROR
Sablot::MH_CRITICAL
-
These constant is used as logging levels for message handler.
|