" << OFendl; } else { docStream << "
" << OFendl;
docStream << "" << OFendl;
}
paragraphFlag = OFTrue;
}
if (newFlags & HF_XHTML11Compatibility)
docStream << "" << relationshipText << ": ";
else if (flags & DSRTypes::HF_HTML32Compatibility)
docStream << "" << relationshipText << ": ";
else /* HTML 4.01 */
docStream << "" << relationshipText << ": ";
/* expand short nodes with no children inline (or depending on 'flags' all nodes) */
if ((flags & HF_alwaysExpandChildrenInline) ||
(!(flags & HF_neverExpandChildrenInline) && !node->hasChildNodes() && node->isShort(flags)))
{
if (node->getValueType() != VT_byReference)
{
/* render concept name/code or value type */
if (node->getConceptName().getCodeMeaning().empty())
docStream << valueTypeToReadableName(node->getValueType());
else
node->getConceptName().renderHTML(docStream, flags, (flags & HF_renderConceptNameCodes) && ConceptName.isValid() /*fullCode*/);
docStream << " = ";
}
/* render HTML code (directly to the reference text) */
result = node->renderHTML(docStream, annexStream, 0 /*nesting level*/, annexNumber, newFlags | HF_renderItemInline);
} else {
/* render concept name or value type */
if (node->getConceptName().getCodeMeaning().empty())
docStream << valueTypeToReadableName(node->getValueType()) << " ";
else
docStream << node->getConceptName().getCodeMeaning() << " ";
/* render annex heading and reference */
createHTMLAnnexEntry(docStream, annexStream, "" /*referenceText*/, annexNumber, newFlags);
if (flags & HF_XHTML11Compatibility)
annexStream << " " << OFendl;
/* append temporary stream to main stream */
if (result.good())
result = appendStream(annexStream, tempAnnexStream);
}
} else {
/* close paragraph */
if (paragraphFlag)
{
if (flags & HF_XHTML11Compatibility)
{
docStream << "
" << OFendl; } else { tempDocStream << "
" << OFendl; tempDocStream << "" << OFendl; } /* render footnote text and reference */ createHTMLFootnote(docStream, tempDocStream, footnoteNumber, node->getNodeID(), flags); /* render child nodes to temporary stream */ result = node->renderHTMLChildNodes(tempDocStream, annexStream, 0 /*nestingLevel*/, annexNumber, newFlags); } } else { /* render HTML code (incl. child nodes)*/ result = node->renderHTML(docStream, annexStream, nestingLevel + 1, annexNumber, newFlags); } /* end paragraph */ if (flags & HF_renderItemsSeparately) { docStream << "
" << OFendl; } } } while (result.good() && cursor.gotoNext()); /* close last open paragraph (if any) */ if (paragraphFlag) { if (flags & HF_XHTML11Compatibility) { docStream << "
" << OFendl; docStream << "