Package net.sf.saxon.style

Examples of net.sf.saxon.style.StyleNodeFactory


     * @return the StyleNodeFactory used in this Configuration
     */

    public StyleNodeFactory getStyleNodeFactory() {
        if (styleNodeFactory == null) {
            styleNodeFactory = new StyleNodeFactory(this);
        }
        return styleNodeFactory;
    }
View Full Code Here


        try {
            if (styleNodeFactory==null) {
                NamePool instructionNamePool = new NamePool();
                styleNodeFactory =
                    new StyleNodeFactory (
                            instructionNamePool,
                            context.getController().getConfiguration().isAllowExternalFunctions());
            }
            return styleNodeFactory.isElementAvailable(uri, localname);
        } catch (Exception err) {
View Full Code Here

    protected TemplatesHandlerImpl(Configuration config) {

        setConfiguration(config);

        nodeFactory = new StyleNodeFactory(config.getNamePool(), config.isAllowExternalFunctions());

        StylesheetStripper styleStripper = new StylesheetStripper();
        styleStripper.setStylesheetRules(config.getNamePool());

        builder = new TreeBuilder();
View Full Code Here

     * @exception TransformerConfigurationException if compilation of the
     *     stylesheet fails for any reason
     */

    protected void prepare(Source styleSource) throws TransformerConfigurationException {
        nodeFactory = new StyleNodeFactory(config.getNamePool(), config.isAllowExternalFunctions());
        DocumentImpl doc = loadStylesheetModule(styleSource, config, config.getNamePool(), nodeFactory);
        setStylesheetDocument(doc, nodeFactory);

        if (errorCount > 0) {
            throw new TransformerConfigurationException(
View Full Code Here

    protected TemplatesHandlerImpl(Configuration config) {

        setPipelineConfiguration(config.makePipelineConfiguration());

        nodeFactory = new StyleNodeFactory(config, getPipelineConfiguration().getErrorListener());

        builder = new TreeBuilder();
        builder.setPipelineConfiguration(getPipelineConfiguration());
        builder.setNodeFactory(nodeFactory);
        builder.setLineNumbering(true);
View Full Code Here

        // changing if we ever want to build a run-time JAR file.

        try {
            if (styleNodeFactory==null) {
                Configuration config = context.getConfiguration();
                styleNodeFactory = new StyleNodeFactory(config, context.getController().getErrorListener());
            }
            return styleNodeFactory.isElementAvailable(uri, localname);
        } catch (Exception err) {
            //err.printStackTrace();
            return false;
View Full Code Here

TOP

Related Classes of net.sf.saxon.style.StyleNodeFactory

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.