com.jclark.xsl.tr
class SheetImpl extends Object implements SheetDetails, LoadContext, NamespaceConstants
Constructor Summary | |
---|---|
SheetImpl(Node node, XMLProcessor omBuilder, ExtensionHandler extensionHandler, LoadContext sheetLoadContext, NameTable nameTable)
The constructor builds (compiles) a stylesheet |
Method Summary | |
---|---|
Action | addParams(ParamAction action, Node node) |
void | clearOutputMethodProperties()
resets the output method to just those properties which were
set in the stylesheet and/or defaults |
ExtensionContext | createExtensionContext(String namespace) |
static Name | expandSourceElementTypeName(String nameString, Node node) |
Action | getAttributeSet(Name name) |
String | getData(Node node) |
ActionDebugTarget | getDebugger()
gets the xrap processor for use during processing |
VariableInfo | getGlobalVariableInfo(Name name) |
boolean | getIncludeComments() |
boolean | getIncludeProcessingInstructions() |
KeyDefinition | getKeyDefinition(Name keyName)
obtain the definition of the named key |
TemplateRuleSet | getModeTemplateRuleSet(Name modeName)
obtain the collection of templates which may be
applied in a named Mode |
String | getNamespaceAlias(String ns) |
NumberListFormatTemplate | getNumberListFormatTemplate(Node node) |
String | getOptionalAttribute(Node node, Name name, String dflt) |
OutputMethod | getOutputMethod()
returns the current values set either by client code,
the stylesheet, or defaulted for the output method properties |
Properties | getOutputMethodProperties()
returns the current values set either by client code,
the stylesheet, or defaulted for the output method properties
see java.xml.transform.Transform.getOutputMethodProperties() |
String | getOutputMethodProperty(String encodedPropertyNamespace, String encodedPropertyName)
returns the current value of the named property |
String | getPrefixNamespace(Node node, String prefix) |
String | getRequiredAttribute(Node node, Name name) |
SaxFilterMaker | getSaxExtensionFilter()
gets the xrap processor for use during processing |
NodeSetExpr | getSortNodeSetExpr(Node node, NodeSetExpr expr) |
LoadContext | getSourceLoadContext() |
boolean | getStripSource(Name elementTypeName) |
Variant | getSystemProperty(Name name) |
VariantExpr | getVariantExpr(Node defNode)
gets the value (an expression to be evaluated later) to be bound for a variable or parameter |
boolean | haveNamespaceAliases() |
Action | parseActions(Node node, Action ifEmpty) |
Action | parseActions(Node node, Action ifEmpty, AppendAction sequence) |
Action | parseAttributesAndActions(Node node)
Parse the attributes on node as literal attributes and then
parse the actions. |
void | parseTopLevel(Node sheetNode)
come here if we have a "xsl:stylesheet" root element
expect XSLT elements permitted at the top level ... params,
templates, keys, etc. |
AppendAction | parseUseAttributeSets(Node node, boolean literal, AppendAction sequence) |
Action | parseUseAttributeSetsAndActions(Node node) |
Result | process(Node node, XMLProcessor omBuilder, ParameterSet params, Result root)
process an XML input document against this stylesheet |
void | setDebugger(ActionDebugTarget debugger)
sets the xrap processor for use during processing |
void | setOutputMethodProperty(String encodedPropertyNamespace, String encodedPropertyName, String value)
override the stylesheet's or default value for an
output method property |
void | setSaxExtensionFilter(SaxFilterMaker xrap)
sets the xrap processor for use during processing |
Parameters: node the (xslt D) OM root Node of the loaded stylesheet omBuilder a (xslt D) OM builder we can use for included/imported sheets extensionHandler for extensions? sheetLoadContext ?? nameTable ??
Returns: true
Returns: true
Returns: the namespace URI reference for the given prefix in scope at the given Node
Parameters: node the source document omBuilder an object model builder we can (re-)use for e.g. "document()" params the XSLT run-time parameters root the destination for thetransformation results