" + result + "
"; + } + else if(node.isAnon()) { + return StringEscapeUtils.escapeHtml(node.toString()); + } + + throw new RuntimeException("Should not happen"); + } + + @Override + public void write(Model model, Writer out, String base) + { + try { + _write(model, out, base); + } catch(Exception e) { + throw new RuntimeException(e); + } + } + + //@Override + public void _write(Model model, Writer out, String base) + throws IOException + { + // Create the reverse map for mapping namespaces to prefixes + Map| " + nodeToString(subject, nsToPrefix, "class='heading'") + " | |
| " + predField + " | " + nodeToString(o, nsToPrefix, "class='content'") + " |