if (key.equals("@@") || key.equals("@*")) {
return new NodeListModel(node.getAttributes(), this);
}
if (key.equals("@@start_tag")) {
NodeOutputter nodeOutputter = new NodeOutputter(node);
return new SimpleScalar(nodeOutputter.getOpeningTag((Element) node));
}
if (key.equals("@@end_tag")) {
NodeOutputter nodeOutputter = new NodeOutputter(node);
return new SimpleScalar(nodeOutputter.getClosingTag((Element) node));
}
if (key.equals("@@attributes_markup")) {
StringBuffer buf = new StringBuffer();
NodeOutputter nu = new NodeOutputter(node);
nu.outputContent(node.getAttributes(), buf);
return new SimpleScalar(buf.toString().trim());
}
if (StringUtil.isXMLID(key.substring(1))) {
Attr att = getAttribute(key.substring(1));
if (att == null) {
return new NodeListModel(this);