/** * Notify an attribute. Attributes are notified after the startElement event, and before any * children. Namespaces and attributes may be intermingled. * * @param nameCode The name of the attribute, as held in the name pool * @param typeCode The type of the attribute, as held in the name pool * @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 attribute</dd> * <dt>NO_SPECIAL_CHARACTERS</dt> <dd>Attribute value contains no special characters</dd> * @throws IllegalStateException: attempt to output an attribute when there is no open element * start tag */ public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException { seq1.attribute(nameCode, typeCode, value, locationId, properties); seq2.attribute(nameCode, typeCode, value, locationId, properties); }
/** * Notify an attribute. Attributes are notified after the startElement event, and before any * children. Namespaces and attributes may be intermingled. * * @param nameCode The name of the attribute, as held in the name pool * @param typeCode The type of the attribute, as held in the name pool * @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 attribute</dd> * <dt>NO_SPECIAL_CHARACTERS</dt> <dd>Attribute value contains no special characters</dd> * @throws IllegalStateException: attempt to output an attribute when there is no open element * start tag */ public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties) throws XPathException { seq1.attribute(nameCode, typeCode, value, locationId, properties); seq2.attribute(nameCode, typeCode, value, locationId, properties); }
for (Iterator ai=see.iterateAttributes(); ai.hasNext();) { NodeInfo att = (NodeInfo)ai.next(); out.attribute(att.getNameCode(), att.getTypeAnnotation(), att.getStringValueCS(), 0, 0);
for (Iterator ai=see.iterateAttributes(); ai.hasNext();) { NodeInfo att = (NodeInfo)ai.next(); out.attribute(att.getNameCode(), att.getTypeAnnotation(), att.getStringValueCS(), 0, 0);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
out.attribute(nameCode, ann, value, locationId, opt); } catch (XPathException err) { throw dynamicError(this, err, context);
context.getReceiver().attribute(nameCode, annotation, value, instruction.getLocationId(), opt);
context.getReceiver().attribute(nameCode, annotation, value, instruction.getLocationId(), opt);