gpt4 book ai didi

net.sf.saxon.expr.XPathContextMajor.getCurrentMode()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 18:15:40 25 4
gpt4 key购买 nike

本文整理了Java中net.sf.saxon.expr.XPathContextMajor.getCurrentMode()方法的一些代码示例,展示了XPathContextMajor.getCurrentMode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathContextMajor.getCurrentMode()方法的具体详情如下:
包路径:net.sf.saxon.expr.XPathContextMajor
类名称:XPathContextMajor
方法名:getCurrentMode

XPathContextMajor.getCurrentMode介绍

[英]Get the current mode.
[中]获取当前模式。

代码示例

代码示例来源:origin: net.sf.saxon/Saxon-HE

/**
   * Perform the built-in template action for a given item.
   *  @param item         the item to be processed
   * @param parameters   the parameters supplied to apply-templates
   * @param tunnelParams the tunnel parameters to be passed through
   * @param context      the dynamic evaluation context
   * @param locationId   location of the instruction (apply-templates, apply-imports etc) that caused
*                     the built-in template to be invoked     @throws net.sf.saxon.trans.XPathException
   */

  public void process(Item item, ParameterSet parameters,
            ParameterSet tunnelParams, XPathContext context,
            Location locationId) throws XPathException {
    if (item instanceof NodeInfo && ((NodeInfo) item).getNodeKind() == Type.DOCUMENT) {
      XPathContextMajor c2 = context.newContext();
      c2.setOrigin(this);
      c2.trackFocus(((NodeInfo) item).iterateAxis(AxisInfo.CHILD));
      c2.setCurrentComponent(c2.getCurrentMode());
      TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
      while (tc != null) {
        tc = tc.processLeavingTail();
      }
    }
    // otherwise, do nothing
  }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

/**
   * Perform the built-in template action for a given item.
   *  @param item         the item to be processed
   * @param parameters   the parameters supplied to apply-templates
   * @param tunnelParams the tunnel parameters to be passed through
   * @param context      the dynamic evaluation context
   * @param locationId   location of the instruction (apply-templates, apply-imports etc) that caused
*                     the built-in template to be invoked     @throws net.sf.saxon.trans.XPathException
   */

  public void process(Item item, ParameterSet parameters,
            ParameterSet tunnelParams, XPathContext context,
            Location locationId) throws XPathException {
    if (item instanceof NodeInfo && ((NodeInfo) item).getNodeKind() == Type.DOCUMENT) {
      XPathContextMajor c2 = context.newContext();
      c2.setOrigin(this);
      c2.trackFocus(((NodeInfo) item).iterateAxis(AxisInfo.CHILD));
      c2.setCurrentComponent(c2.getCurrentMode());
      TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
      while (tc != null) {
        tc = tc.processLeavingTail();
      }
    }
    // otherwise, do nothing
  }

代码示例来源:origin: net.sf.saxon/Saxon-HE

c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.ATTRIBUTE));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
    c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
c2.setOrigin(this);
c2.trackFocus(members);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
while (tc != null) {
  tc = tc.processLeavingTail();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.ATTRIBUTE));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
    c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
c2.setOrigin(this);
c2.trackFocus(members);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
while (tc != null) {
  tc = tc.processLeavingTail();

代码示例来源:origin: net.sf.saxon/Saxon-HE

c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    pipe.setXPathContext(c2);
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
c2.setOrigin(this);
c2.trackFocus(members);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
while (tc != null) {
  tc = tc.processLeavingTail();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

c2.setOrigin(this);
    c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
    c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
    pipe.setXPathContext(c2);
    TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
    while (tc != null) {
      tc = tc.processLeavingTail();
c2.setOrigin(this);
c2.trackFocus(members);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
while (tc != null) {
  tc = tc.processLeavingTail();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

c2.setOrigin(this);
c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
pipe.setXPathContext(c2);
TailCall tc = context.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
pipe.setXPathContext(c2);
  c2.setOrigin(this);
  c2.trackFocus(attributes);
  TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
  while (tc != null) {
    tc = tc.processLeavingTail();
  TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
  while (tc != null) {
    tc = tc.processLeavingTail();

代码示例来源:origin: net.sf.saxon/Saxon-HE

c2.setOrigin(this);
c2.trackFocus(node.iterateAxis(AxisInfo.CHILD));
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
pipe.setXPathContext(c2);
TailCall tc = context.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
c2.setCurrentComponent(c2.getCurrentMode());  // Bug 3508
pipe.setXPathContext(c2);
  c2.setOrigin(this);
  c2.trackFocus(attributes);
  TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
  while (tc != null) {
    tc = tc.processLeavingTail();
  TailCall tc = c2.getCurrentMode().getActor().applyTemplates(parameters, tunnelParams, c2, locationId);
  while (tc != null) {
    tc = tc.processLeavingTail();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com