add xhtml ns to div

This commit is contained in:
Oliver Egger 2019-10-24 22:28:09 +02:00
parent 9b8ae8a9c8
commit 4dde732718
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@ public class CDANarrativeFormat {
*/
public XhtmlNode convert(Element ed) throws FHIRException {
XhtmlNode div = new XhtmlNode(NodeType.Element, "div");
div.setAttribute("xmlns", XhtmlNode.XMLNS);
processAttributes(ed, div, "ID", "language", "styleCode");
processChildren(ed, div);
return div;

View File

@ -88,8 +88,8 @@ public class XhtmlNode implements IBaseXhtml {
}
public static final String NBSP = Character.toString((char)0xa0);
private static final String DECL_XMLNS = " xmlns=\"http://www.w3.org/1999/xhtml\"";
public static final String XMLNS = "http://www.w3.org/1999/xhtml";
private static final String DECL_XMLNS = " xmlns=\""+XMLNS+"\"";
private Location location;
private NodeType nodeType;