private void processCaption(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("h2"); processAttributes(e, xc, "ID", "language", "styleCode"); processChildren(e, xc); }
public XhtmlNode getDocumentElement() { for (XhtmlNode n : getChildNodes()) { if (n.getNodeType() == NodeType.Element) return n; } return null; } }
private void composeDoc(XhtmlDocument doc) throws IOException { // headers.... // dst.append("<html>" + (pretty ? "\r\n" : "")); for (XhtmlNode c : doc.getChildNodes()) writeNode(" ", c, false); // dst.append("</html>" + (pretty ? "\r\n" : "")); }
public TableModel initGridTable(String prefix) { TableModel model = new TableModel(); model.getTitles().add(new Title(null, model.getDocoRef(), translate("sd.head", "Name"), translate("sd.hint", "The name of the element (Slice name in brackets). Mouse-over provides definition"), null, 0)); model.getTitles().add(new Title(null, model.getDocoRef(), translate("sd.head", "Card."), translate("sd.hint", "Minimum and Maximum # of times the the element can appear in the instance. Super-scripts indicate additional constraints on appearance"), null, 0)); model.getTitles().add(new Title(null, model.getDocoRef(), translate("sd.head", "Type"), translate("sd.hint", "Reference to the type of the element"), null, 100)); model.getTitles().add(new Title(null, model.getDocoRef(), translate("sd.head", "Constraints and Usage"), translate("sd.hint", "Fixed values, length limits, vocabulary bindings and other usage notes"), null, 0)); return model; }
public void compose(Element div, XhtmlNode x) { for (XhtmlNode child : x.getChildNodes()) { appendChild(div, child); } }
private void processSup(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("sup"); processChildren(e, xc); }
private void processChildren(IXMLWriter xml, XhtmlNode x) throws IOException, FHIRException { for (XhtmlNode n : x.getChildNodes()) processChildNode(xml, n); }
private XhtmlNode addStyle(XhtmlNode node, Piece p) { if (p.getStyle() != null) node.setAttribute("style", p.getStyle()); return node; }
private void processColGroup(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("colgroup"); processAttributes(e, xc, "ID", "language", "styleCode", "span", "width", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processContent(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("span"); processAttributes(e, xc, "ID", "language", "styleCode"); // todo: do something with revised..., "revised" processChildren(e, xc); }
private void processParagraph(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("p"); processAttributes(e, xc, "ID", "language", "styleCode"); processChildren(e, xc); }
private void processlinkHtml(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("a"); processAttributes(e, xc, "name", "href", "rel", "rev", "title", "ID", "language", "styleCode"); processChildren(e, xc); }
private void processItem(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("li"); processAttributes(e, xc, "ID", "language", "styleCode"); processChildren(e, xc); }
private void processTable(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("table"); processAttributes(e, xc, "ID", "language", "styleCode", "summary", "width", "border", "frame", "rules", "cellspacing", "cellpadding"); processChildren(e, xc); }
private void processTd(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("td"); processAttributes(e, xc, "ID", "language", "styleCode", "abbr", "axis", "headers", "scope", "rowspan", "colspan", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processTHead(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("thead"); processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processCol(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("col"); processAttributes(e, xc, "ID", "language", "styleCode", "span", "width", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processTBody(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("tbody"); processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processTh(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("th"); processAttributes(e, xc, "ID", "language", "styleCode", "abbr", "axis", "headers", "scope", "rowspan", "colspan", "align", "char", "charoff", "valign"); processChildren(e, xc); }
private void processTr(Element e, XhtmlNode xn) throws FHIRException { XhtmlNode xc = xn.addTag("tr"); processAttributes(e, xc, "ID", "language", "styleCode", "align", "char", "charoff", "valign"); processChildren(e, xc); }