Package net.sf.saxon.value

Examples of net.sf.saxon.value.TextFragmentValue


                        if (item==null) break;
                        sb.append(item.getStringValueCS());
                    }
                    textValue = sb.condense();
                }
                root = new TextFragmentValue(textValue, getBaseURI());
                ((TextFragmentValue)root).setConfiguration(controller.getConfiguration());
            } else {
                try {
                    XPathContext c2 = context.newMinorContext();
                    c2.setOrigin(this);
View Full Code Here


                try {
                    Reader reader = new FileReader(file);
                    NameChecker checker = pipe.getConfiguration().getNameChecker();
                    CharSequence content = UnparsedText.readFile(checker, reader);
                    String uri = file.toURI().toString();
                    TextFragmentValue doc = new TextFragmentValue(content, uri);
                    doc.setSystemId(file.toURI().toString());
                    doc.setConfiguration(pipe.getConfiguration());
                    return SingletonIterator.makeIterator(doc);
                } catch (IOException err) {
                    if (onError == URIQueryParameters.ON_ERROR_IGNORE) {
                        return null;
                    } else if (onError == URIQueryParameters.ON_ERROR_WARNING) {
View Full Code Here

                        if (item==null) break;
                        ((StringBuffer)textValue).append(item.getStringValue());
                    }
                }
            }
            root = new TextFragmentValue(textValue, baseURI);
            root.setConfiguration(controller.getConfiguration());
        } else {
            XPathContext c2 = context.newMinorContext();
            c2.setOrigin(this);
View Full Code Here

                        if (item==null) break;
                        sb.append(item.getStringValueCS());
                    }
                    textValue = sb.condense();
                }
                root = new TextFragmentValue(textValue, getBaseURI());
                ((TextFragmentValue)root).setConfiguration(controller.getConfiguration());
            } else {
                try {
                    XPathContext c2 = context.newMinorContext();
                    c2.setOrigin(this);
View Full Code Here

TOP

Related Classes of net.sf.saxon.value.TextFragmentValue

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.