/** * Notify character data. Note that some receivers may require the character data to be * sent in a single event, but in general this is not a requirement. * * @param chars The characters * @param locationId an integer which can be interpreted using a LocationMap to return * information such as line number and system ID. If no location information is available, * the value zero is supplied. * @param properties Bit significant value. The following bits are defined: * <dt>DISABLE_ESCAPING</dt> <dd>Disable escaping for this text node</dd> * <dt>USE_CDATA</dt> <dd>Output as a CDATA section</dd> */ public void characters(CharSequence chars, int locationId, int properties) throws XPathException { seq1.characters(chars, locationId, properties); seq2.characters(chars, locationId, properties); }
/** * Notify character data. Note that some receivers may require the character data to be * sent in a single event, but in general this is not a requirement. * * @param chars The characters * @param locationId an integer which can be interpreted using a LocationMap to return * information such as line number and system ID. If no location information is available, * the value zero is supplied. * @param properties Bit significant value. The following bits are defined: * <dt>DISABLE_ESCAPING</dt> <dd>Disable escaping for this text node</dd> * <dt>USE_CDATA</dt> <dd>Output as a CDATA section</dd> */ public void characters(CharSequence chars, int locationId, int properties) throws XPathException { seq1.characters(chars, locationId, properties); seq2.characters(chars, locationId, properties); }
/** * Process this instruction, sending the resulting text node to the current output destination * @param context the dynamic evaluation context * @return Always returns null * @throws XPathException */ public TailCall processLeavingTail(XPathContext context) throws XPathException { SequenceReceiver out = context.getReceiver(); Item item = select.evaluateItem(context); if (item != null) { out.characters(item.getStringValueCS(), locationId, options); } return null; }
/** * Process this instruction, sending the resulting text node to the current output destination * @param context the dynamic evaluation context * @return Always returns null * @throws XPathException */ public TailCall processLeavingTail(XPathContext context) throws XPathException { // TODO: allow the output of value-of to be streamed to the serializer SequenceReceiver out = context.getReceiver(); Item item = select.evaluateItem(context); if (item != null) { out.characters(item.getStringValueCS(), locationId, options); } return null; }
out.characters(((Orphan)event).getStringValueCS(), 0, 0); } else if (event instanceof DocumentInfo && level > 0) { AxisIterator kids = ((DocumentInfo)event).iterateAxis(Axis.CHILD); } else { out.characters("", 0, 0); } else { out.characters("", 0, 0);
out.characters(((Orphan)event).getStringValueCS(), 0, 0); } else if (event instanceof DocumentInfo && level > 0) { AxisIterator kids = ((DocumentInfo)event).iterateAxis(Axis.CHILD); } else { out.characters("", 0, 0); } else { out.characters("", 0, 0);
if (item instanceof AtomicValue || item instanceof ExternalObject) { if (previousAtomic) { characters(" ", locationId, 0); characters(item.getStringValueCS(), locationId, 0); previousAtomic = true; } else if (item instanceof ArrayItem) { if (node instanceof Orphan && ((Orphan) node).isDisableOutputEscaping()) { characters(item.getStringValueCS(), locationId, ReceiverOptions.DISABLE_ESCAPING); previousAtomic = false; } else if (node.getNodeKind() == Type.DOCUMENT) {
if (item instanceof AtomicValue || item instanceof ExternalObject) { if (previousAtomic) { characters(" ", locationId, 0); characters(item.getStringValueCS(), locationId, 0); previousAtomic = true; } else if (item instanceof ArrayItem) { if (node instanceof Orphan && ((Orphan) node).isDisableOutputEscaping()) { characters(item.getStringValueCS(), locationId, ReceiverOptions.DISABLE_ESCAPING); previousAtomic = false; } else if (node.getNodeKind() == Type.DOCUMENT) {
context.getReceiver().characters(node.getStringValueCS(), locationId, 0); return; case Type.COMMENT:
context.getReceiver().characters(node.getStringValueCS(), locationId, 0); return; case Type.COMMENT:
out.characters(source.getStringValueCS(), locationId, 0); break;
out.characters(source.getStringValueCS(), locationId, 0); break;
out.characters(source.getStringValueCS(), locationId, 0); break;
out.characters(source.getStringValueCS(), locationId, 0); break;
out.characters(source.getStringValueCS(), locationId, 0); break;