public class ERXSLTWrapper extends ERXNonSynchronizingComponent
Other uses include a simple transformation of the generated front end code to privide for "skinning". As there is only so much you can do with CSS, you might need to structurally change the generated HTML prior to handing it to the client.
Note that XSLT engines vary greatly in speed. The default case of using Xalan which is included by WO is probably not the best choice for a site with a little bit of traffic. Therefore there is an option where you can set the transformer factory name to use, you also need to include the corresponding jar into the classpath.
| Name | Description |
|---|---|
enabled | flag that decides if the transformation is applied. If not set, then only the content will be shown. |
stylesheet | name of the XLST stylesheet (mandatory) |
transformerFactory | name of the class for the XSLT transformer factory (optional, defaults to Xalan) |
framework | name of the XLST stylesheet's framework (optional) |
data | will be set to the transformed data (optional) |
stream | will be set to the transformed data (optional) |
nocache | flag that if set creates a new transformer instead of using the one in the cache. Useful when deleloping the stylesheet. |
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXSLTWrapper.TemplatePool |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Eventcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessorcom.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations| Constructor and Description |
|---|
ERXSLTWrapper(com.webobjects.appserver.WOContext context)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to get use apply the XLST transformation on the content.
|
static Transformer |
getTransformer(String framework,
String filename) |
static com.webobjects.foundation.NSData |
transform(Transformer transformer,
com.webobjects.foundation.NSData data) |
static String |
transform(Transformer transformer,
String xml) |
invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, reset, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic ERXSLTWrapper(com.webobjects.appserver.WOContext context)
context - the contextpublic void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
appendToResponse in class ERXNonSynchronizingComponentresponse - to which we are appendingcontext - context of the responseTransformerExceptionpublic static Transformer getTransformer(String framework, String filename)
public static String transform(Transformer transformer, String xml) throws TransformerException
TransformerExceptionpublic static com.webobjects.foundation.NSData transform(Transformer transformer, com.webobjects.foundation.NSData data) throws TransformerException
TransformerExceptionCopyright © 2002 – 2020 Project Wonder.