Merge pull request #99 from ahdis/oliveregger_cdanarrative_xhtmlnsfordiv
add xhtml namespace to div for CDA section narrative
This commit is contained in:
commit
3d24088171
|
@ -43,6 +43,7 @@ public class CDANarrativeFormat {
|
||||||
*/
|
*/
|
||||||
public XhtmlNode convert(Element ed) throws FHIRException {
|
public XhtmlNode convert(Element ed) throws FHIRException {
|
||||||
XhtmlNode div = new XhtmlNode(NodeType.Element, "div");
|
XhtmlNode div = new XhtmlNode(NodeType.Element, "div");
|
||||||
|
div.setAttribute("xmlns", XhtmlNode.XMLNS);
|
||||||
processAttributes(ed, div, "ID", "language", "styleCode");
|
processAttributes(ed, div, "ID", "language", "styleCode");
|
||||||
processChildren(ed, div);
|
processChildren(ed, div);
|
||||||
return div;
|
return div;
|
||||||
|
|
|
@ -88,8 +88,8 @@ public class XhtmlNode implements IBaseXhtml {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String NBSP = Character.toString((char)0xa0);
|
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 Location location;
|
||||||
private NodeType nodeType;
|
private NodeType nodeType;
|
||||||
|
|
Loading…
Reference in New Issue