Package net.sf.saxon.sxpath

Examples of net.sf.saxon.sxpath.XPathStaticContext


    {
      super.initTransformerFactory(factory);
      if (factory instanceof TransformerFactoryImpl)
      {
        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());
        }
        if (!xpathContext.getFunctionLibrary().isAvailable(SystemIdFunction.QNAME, -1))
        {
          configuration.registerExtensionFunction(new SystemIdFunction());
        }
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.sxpath.XPathStaticContext

Copyright © 2018 www.massapicom. 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.