Examples of XIncludeFilter


Examples of org.exist.storage.serializers.XIncludeFilter

                serializer.reset();
                Receiver receiver = new ReceiverToSAX(handler);
                try {
                    serializer.setProperties(serializationProps);
                    if (expandXIncludes) {
                        XIncludeFilter xinclude = new XIncludeFilter(serializer, receiver);
                        String xipath = serializationProps.getProperty(EXistOutputKeys.XINCLUDE_PATH);
                        if (xipath != null) {
                            final File f = new File(xipath);
                            if (!f.isAbsolute())
                                {xipath = new File(context.getModuleLoadPath(), xipath).getAbsolutePath();}
                        } else
                            {xipath = context.getModuleLoadPath();}
                        xinclude.setModuleLoadPath(xipath);
                        receiver = xinclude;
                    }
                    serializer.setReceiver(receiver);
                    serializer.toSAX(inputNode, 1, inputNode.getItemCount(), false, false);
                } catch (final Exception e) {
View Full Code Here

Examples of org.exist.storage.serializers.XIncludeFilter

            final Serializer serializer = broker.getSerializer();
            serializer.reset();
           
            Receiver receiver = new ReceiverToSAX(handler);
            try {
                XIncludeFilter xinclude = new XIncludeFilter(serializer, receiver);
                receiver = xinclude;
                String moduleLoadPath;

                final String base = (String) request.getAttribute(REQ_ATTRIBUTE_BASE);
                if (base != null) {
                    moduleLoadPath = getServletContext().getRealPath(base);
                } else if (stylesheet.startsWith("xmldb:exist://")) {
                  moduleLoadPath = XmldbURI.xmldbUriFor(stylesheet).getCollectionPath();
                } else {
                    moduleLoadPath = getCurrentDir(request).getAbsolutePath();
                }

                xinclude.setModuleLoadPath(moduleLoadPath);

                serializer.setReceiver(receiver);
                if (inputNode != null){
                    serializer.toSAX((NodeValue)inputNode);
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.