/** * Output a processing instruction * * @param name The PI name. This must be a legal name (it will not be checked). * @param data The data portion of the processing instruction * @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 Additional information about the PI. The following bits are * defined: * <dt>CHECKED</dt> <dd>Data is known to be legal (e.g. doesn't contain "?>")</dd> * @throws IllegalArgumentException: the content is invalid for an XML processing instruction */ public void processingInstruction(String name, CharSequence data, int locationId, int properties) throws XPathException { seq1.processingInstruction(name, data, locationId, properties); seq2.processingInstruction(name, data, locationId, properties); }
/** * Output a processing instruction * * @param name The PI name. This must be a legal name (it will not be checked). * @param data The data portion of the processing instruction * @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 Additional information about the PI. The following bits are * defined: * <dt>CHECKED</dt> <dd>Data is known to be legal (e.g. doesn't contain "?>")</dd> * @throws IllegalArgumentException: the content is invalid for an XML processing instruction */ public void processingInstruction(String name, CharSequence data, int locationId, int properties) throws XPathException { seq1.processingInstruction(name, data, locationId, properties); seq2.processingInstruction(name, data, locationId, properties); }
/** * Process this instruction, that is, produce a processing-instruction node in the * result sequence. * @param context the dynamic context of this transformation * @throws XPathException if any non-recoverable dynamic error occurs * @return always returns null in this implementation */ public TailCall processLeavingTail(XPathContext context) throws XPathException { String expandedName = evaluateName(context); if (expandedName != null) { String data = expandChildren(context).toString(); data = checkContent(data, context); SequenceReceiver out = context.getReceiver(); out.processingInstruction(expandedName, data, locationId, 0); } return null; }
/** * Process this instruction, that is, produce a processing-instruction node in the * result sequence. * @param context the dynamic context of this transformation * @throws XPathException if any non-recoverable dynamic error occurs * @return always returns null in this implementation */ public TailCall processLeavingTail(XPathContext context) throws XPathException { String expandedName = evaluateName(context); if (expandedName != null) { String data = expandChildren(context).toString(); data = checkContent(data, context); SequenceReceiver out = context.getReceiver(); out.processingInstruction(expandedName, data, locationId, 0); } return null; }
out.processingInstruction(source.getDisplayName(), source.getStringValueCS(), locationId, 0); break;
out.processingInstruction(source.getDisplayName(), source.getStringValueCS(), locationId, 0); break;
out.processingInstruction(source.getDisplayName(), source.getStringValueCS(), locationId, 0); break;
out.setSystemId(source.getBaseURI()); out.processingInstruction(source.getDisplayName(), source.getStringValueCS(), locationId, 0); break;
out.setSystemId(source.getBaseURI()); out.processingInstruction(source.getDisplayName(), source.getStringValueCS(), locationId, 0); break;