// Locate the decorator page
StandardFragment fragment = StandardFragmentProcessor.computeStandardFragmentSpec(
arguments.getConfiguration(), arguments, element.getAttributeValue(attributeName),
DIALECT_PREFIX_LAYOUT, PROCESSOR_NAME_FRAGMENT);
Template decoratortemplate = arguments.getTemplateRepository().getTemplate(new TemplateProcessingParameters(
arguments.getConfiguration(), fragment.getTemplateName(), arguments.getContext()));
element.removeAttribute(attributeName);
Document decoratordocument = decoratortemplate.getDocument();
Element decoratorrootelement = decoratordocument.getFirstElementChild();