Examples of registerExtensionFunction()


Examples of net.sf.saxon.Configuration.registerExtensionFunction()

    List<RelationshipDelta> deltas = new LinkedList<RelationshipDelta>();
    try {
      SaxonXQDataSource data = new SaxonXQDataSource();
      Configuration config = data.getConfiguration();
      XQConnection conn = data.getConnection();
      config.registerExtensionFunction(new TypeComparisonDefinition(types));

      for (String query : queryStrings) {
        RelationshipDelta result;
        String complete = localStr + query;
        StringReader reader = new StringReader(complete);
View Full Code Here

Examples of net.sf.saxon.Configuration.registerExtensionFunction()

   
    try {
      SaxonXQDataSource data = new SaxonXQDataSource();
      Configuration config = data.getConfiguration();
      XQConnection conn = data.getConnection();
      config.registerExtensionFunction(new TypeComparisonDefinition(types));

      String complete = localStr + topStr;
      StringReader reader = new StringReader(complete);
       
      XQPreparedExpression exp = conn.prepareExpression(reader);
View Full Code Here

Examples of net.sf.saxon.Configuration.registerExtensionFunction()

      {
        Configuration configuration = ((TransformerFactoryImpl) factory).getConfiguration();
        XPathStaticContext xpathContext = new IndependentContext(configuration);
        if (!xpathContext.getFunctionLibrary().isAvailable(LineNumberFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new LineNumberFunction());
        }
        if (!xpathContext.getFunctionLibrary().isAvailable(ColumnNumberFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new ColumnNumberFunction());
        }
View Full Code Here

Examples of net.sf.saxon.Configuration.registerExtensionFunction()

        {
          configuration.registerExtensionFunction(new LineNumberFunction());
        }
        if (!xpathContext.getFunctionLibrary().isAvailable(ColumnNumberFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new ColumnNumberFunction());
        }
        if (!xpathContext.getFunctionLibrary().isAvailable(SystemIdFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new SystemIdFunction());
        }
View Full Code Here

Examples of net.sf.saxon.Configuration.registerExtensionFunction()

        {
          configuration.registerExtensionFunction(new ColumnNumberFunction());
        }
        if (!xpathContext.getFunctionLibrary().isAvailable(SystemIdFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new SystemIdFunction());
        }
      }
    }
  }
View Full Code Here

Examples of net.sf.saxon.s9api.Processor.registerExtensionFunction()

      roots.add(path.getFirstSegment());
    }
    Processor proc = new Processor(false);
    ItemTypeFactory fact = new ItemTypeFactory(proc);
    GetAstNodeFunction func = new GetAstNodeFunction(fact);
    proc.registerExtensionFunction(func);
    proc.registerExtensionFunction(new AstTextExtensionFunction(fact));
    AnalysisPluginsManager.initialiseExtensions();
    ExtensionFunctions extFuncs = new ExtensionFunctions(fact, proc);
   
//    XPathCompiler xpath = proc.newXPathCompiler();
View Full Code Here

Examples of net.sf.saxon.s9api.Processor.registerExtensionFunction()

    }
    Processor proc = new Processor(false);
    ItemTypeFactory fact = new ItemTypeFactory(proc);
    GetAstNodeFunction func = new GetAstNodeFunction(fact);
    proc.registerExtensionFunction(func);
    proc.registerExtensionFunction(new AstTextExtensionFunction(fact));
    AnalysisPluginsManager.initialiseExtensions();
    ExtensionFunctions extFuncs = new ExtensionFunctions(fact, proc);
   
//    XPathCompiler xpath = proc.newXPathCompiler();
//    xpath.declareNamespace("cs", FunctionUtils.NAMESPACE);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.