Examples of characters()


Examples of client.net.sf.saxon.ce.event.Receiver.characters()

    public void processMatchingSubstring(XPathContext context, OnGroup action) throws XPathException {
        Receiver out = context.getReceiver();
        int c = matcher.getParenCount()-1;
        if (c == 0) {
            out.characters(current.toString());
        } else {
            // Create a map from positions in the string to lists of actions.
            // The "actions" in each list are: +N: start group N; -N: end group N.
            IntHashMap<List<Integer>> actions = new IntHashMap<List<Integer>>(c);
            for (int i=1; i<=c; i++) {
View Full Code Here

Examples of client.net.sf.saxon.ce.event.Receiver.characters()

            FastStringBuffer buff = new FastStringBuffer(current.length());
            for (int i=0; i < current.length()+1; i++) {
                List<Integer> events = actions.get(i);
                if (events != null) {
                    if (buff.length() > 0) {
                        out.characters(buff);
                        buff.setLength(0);
                    }
                    for (Integer group : events) {
                        if (group > 0) {
                            action.onGroupStart(context, group);
View Full Code Here

Examples of client.net.sf.saxon.ce.event.Receiver.characters()

                if (i < current.length()) {
                    buff.appendWideChar(current.charAt(i));
                }
            }
            if (buff.length() > 0) {
                out.characters(buff);
            }
        }

    }
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

            out.append(StringValue.EMPTY_STRING, 0);
            boolean empty = true;
            for (int i=0; i<numArgs; i++) {
                AtomicValue val = (AtomicValue)argument[i].evaluateItem(context);
                if (val!=null) {
                    out.characters(val.getStringValueCS());
                    empty = false;
                }
            }
            if (!empty) {
                out.append(StringValue.EMPTY_STRING, 0);
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

                        } catch (NoOpenStartTagException err) {
                            dynamicError(err.getMessage(), err.getErrorCodeLocalPart(), context);
                        }
                        break;
                    case Type.TEXT:
                        out.characters(source.getStringValueCS());
                        break;

                    case Type.PROCESSING_INSTRUCTION:
                        if (copyBaseURI) {
                            out.setSystemId(source.getBaseURI());
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

                    prevText = true;
                }

            } else {
                if (prevText) {
                    out.characters(fsb);
                }
                prevText = false;
                fsb.setLength(0);
                out.append(item, options);
            }
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

                fsb.setLength(0);
                out.append(item, options);
            }
        }
        if (prevText) {
            out.characters(fsb);
        }
    }


    /**
 
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

            if (it == null) {
                return;
            }

            CharSequence first = it.getStringValueCS();
            out.characters(first);

            it = iter.next();
            if (it == null) {
                out.append(StringValue.EMPTY_STRING, 0);
                return;
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

                return;
            }

            // Type checking ensures that the separator is not an empty sequence
            if (argument.length == 1) {
                out.characters(it.getStringValueCS());

                while (true) {
                    it = iter.next();
                    if (it == null) {
                        break;
View Full Code Here

Examples of client.net.sf.saxon.ce.event.SequenceReceiver.characters()

                while (true) {
                    it = iter.next();
                    if (it == null) {
                        break;
                    }
                    out.characters(it.getStringValueCS());
                }
            } else {
                CharSequence sep = argument[1].evaluateItem(context).getStringValueCS();
                out.characters(sep);
                out.characters(it.getStringValueCS());
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.