本文整理汇总了Java中org.apache.xalan.templates.ElemTemplateElement.setDOMBackPointer方法的典型用法代码示例。如果您正苦于以下问题:Java ElemTemplateElement.setDOMBackPointer方法的具体用法?Java ElemTemplateElement.setDOMBackPointer怎么用?Java ElemTemplateElement.setDOMBackPointer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.xalan.templates.ElemTemplateElement
的用法示例。
在下文中一共展示了ElemTemplateElement.setDOMBackPointer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: appendAndPush
import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
* Append the current template element to the current
* template element, and then push it onto the current template
* element stack.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param elem non-null reference to a {@link org.apache.xalan.templates.ElemText}.
*
* @throws org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
*/
protected void appendAndPush(
StylesheetHandler handler, ElemTemplateElement elem)
throws org.xml.sax.SAXException
{
// Don't push this element onto the element stack.
ProcessorCharacters charProcessor =
(ProcessorCharacters) handler.getProcessorFor(null, "text()", "text");
charProcessor.setXslTextElement((ElemText) elem);
ElemTemplateElement parent = handler.getElemTemplateElement();
parent.appendChild(elem);
elem.setDOMBackPointer(handler.getOriginatingNode());
}
示例2: appendAndPush
import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
* Must include; super doesn't suffice!
*/
protected void appendAndPush(
StylesheetHandler handler, ElemTemplateElement elem)
throws SAXException
{
//System.out.println("ProcessorFunction appendAndPush()" + elem);
super.appendAndPush(handler, elem);
//System.out.println("originating node " + handler.getOriginatingNode());
elem.setDOMBackPointer(handler.getOriginatingNode());
handler.getStylesheet().setTemplate((ElemTemplate) elem);
}
示例3: appendAndPush
import org.apache.xalan.templates.ElemTemplateElement; //导入方法依赖的package包/类
/**
* Append the current template element to the current
* template element, and then push it onto the current template
* element stack.
*
* @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
* @param elem Must be a non-null reference to a {@link org.apache.xalan.templates.ElemTemplate} object.
*
* @throws org.xml.sax.SAXException Any SAX exception, possibly
* wrapping another exception.
*/
protected void appendAndPush(
StylesheetHandler handler, ElemTemplateElement elem)
throws org.xml.sax.SAXException
{
super.appendAndPush(handler, elem);
elem.setDOMBackPointer(handler.getOriginatingNode());
handler.getStylesheet().setTemplate((ElemTemplate) elem);
}