本文整理汇总了Java中org.apache.xalan.transformer.TransformerImpl.getParameter方法的典型用法代码示例。如果您正苦于以下问题:Java TransformerImpl.getParameter方法的具体用法?Java TransformerImpl.getParameter怎么用?Java TransformerImpl.getParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.xalan.transformer.TransformerImpl
的用法示例。
在下文中一共展示了TransformerImpl.getParameter方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: annotation
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void annotation(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
int start = getAttributeIntValue(ctx, call, START_ATTRNAME);
int end = getAttributeIntValue(ctx, call, END_ATTRNAME);
String layers0 = getAttributeStringValue(ctx, call, "xpath-layers", "layers");
//System.err.println("a: " + start + "-" + end + " (" + layers0 + ")");
if (layers0 == null)
return;
layers0 = layers0.trim();
if (layers0.isEmpty())
return;
String[] layers = WHITESPACE.split(layers0);
String ref = getAttributeStringValue(ctx, call, "xpath-ref", "ref");
xrctx.startAnnotation(start, end, layers, ref);
transformer.executeChildTemplates(call, false);
xrctx.endAnnotation();
}
示例2: document
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void document(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
String id = getAttributeStringValue(ctx, call, "xpath-id", "id");
xrctx.startDocument(id);
transformer.executeChildTemplates(call, false);
xrctx.endDocument();
}
示例3: section
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void section(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
String contents = getAttributeStringValue(ctx, call, "xpath-contents", "contents");
boolean referenceScope = getAttributeBooleanValue(ctx, call, "references", true);
xrctx.startSection(name, contents);
if (referenceScope)
xrctx.startRefScope();
transformer.executeChildTemplates(call, false);
if (referenceScope)
xrctx.endRefScope();
xrctx.endSection();
}
示例4: relation
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void relation(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
xrctx.startRelation(name);
transformer.executeChildTemplates(call, false);
xrctx.endRelation();
}
示例5: tuple
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void tuple(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
xrctx.startTuple();
transformer.executeChildTemplates(call, false);
xrctx.endTuple();
}
示例6: arg
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static final void arg(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
String role = getAttributeStringValue(ctx, call, "xpath-role", "role");
String ref = getAttributeStringValue(ctx, call, "xpath-ref", "ref");
xrctx.setArgument(role, ref);
}
示例7: feature
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void feature(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
String name = getAttributeStringValue(ctx, call, "xpath-name", "name");
String value = getAttributeStringValue(ctx, call, "xpath-value", "value");
xrctx.setFeature(name, value);
transformer.executeChildTemplates(call, false);
}
示例8: references
import org.apache.xalan.transformer.TransformerImpl; //导入方法依赖的package包/类
public static void references(XSLProcessorContext ctx, ElemExtensionCall call) throws TransformerException {
TransformerImpl transformer = ctx.getTransformer();
XMLReaderContext xrctx = (XMLReaderContext) transformer.getParameter(XML_READER_CONTEXT_PARAMETER);
xrctx.startRefScope();
transformer.executeChildTemplates(call, false);
xrctx.endRefScope();
}