Skip to content

Commit

Permalink
cda narrative support tfoot
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Nov 13, 2019
1 parent 82eb76b commit b963f85
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ private void processContent(Element e, XhtmlNode xn) throws FHIRException {
}

private void processFootNote(Element e, XhtmlNode xn) {
throw new Error("element "+e.getNodeName()+" not handled yet");
XhtmlNode xc = xn.addTag("tfoot");
processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign");
processChildren(e, xc);
}

private void processFootNodeRef(Element e, XhtmlNode xn) {
Expand Down Expand Up @@ -222,7 +224,9 @@ private void processTd(Element e, XhtmlNode xn) throws FHIRException {
}

private void processTFoot(Element e, XhtmlNode xn) {
throw new Error("element "+e.getNodeName()+" not handled yet");
XhtmlNode xc = xn.addTag("tfoot");
processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign");
processChildren(e, xc);
}

private void processTh(Element e, XhtmlNode xn) throws FHIRException {
Expand Down Expand Up @@ -509,8 +513,11 @@ private void processTd(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRExce
xml.exit("td");
}

private void processTFoot(IXMLWriter xml, XhtmlNode n) {
throw new Error("element "+n.getName()+" not handled yet");
private void processTFoot(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {
processAttributes(n, xml, "id", "language", "styleCode", "align", "char", "charoff", "valign");
xml.enter("tfoot");
processChildren(xml, n);
xml.exit("tfoot");
}

private void processTh(IXMLWriter xml, XhtmlNode n) throws IOException, FHIRException {
Expand Down

0 comments on commit b963f85

Please sign in to comment.