DOMOutputBuffer buffer = new DOMOutputBuffer();
buffer.initialise();
// Initialise our protocol attributes with an id attribute.
String idValue = "the identifier value";
ImageAttributes attributes = new ImageAttributes();
attributes.setStyles(StylesBuilder.getInitialValueStyles());
attributes.setId(idValue);
attributes.setSrc("required");
// Create the expected value for the name attribute output.
String expectedNameValue = null;
if (protocol.enableNameIdentification) {
expectedNameValue = idValue;