XALAN_CPP_NAMESPACE_BEGIN ElemTextLiteral::ElemTextLiteral( StylesheetConstructionContext& constructionContext, Stylesheet& stylesheetTree, XalanFileLoc lineNumber, XalanFileLoc columnNumber, const XMLCh* ch, XalanDOMString::size_type start, XalanDOMString::size_type length, bool fPreserveSpace, bool fDisableOutputEscaping) : ElemTemplateElement( constructionContext, stylesheetTree, StylesheetConstructionContext::ELEMNAME_TEXT_LITERAL_RESULT, stylesheetTree.getBaseIdentifier(), lineNumber, columnNumber), m_isWhitespace(isXMLWhitespace(ch, start, length)), // Always null-terminate our buffer, since we may need it that way. m_ch(constructionContext.allocateXalanDOMCharVector(ch + start, length, true)), m_length(length) { disableOutputEscaping(fDisableOutputEscaping); preserveSpace(fPreserveSpace); }
void FormatterToSourceTree::characters( const XMLCh* const chars, const unsigned int length) { if (m_documentFragment != 0) { append(m_textBuffer, chars, length); } else if (m_currentElement == 0) { if (isXMLWhitespace(chars) == false) { throw XalanDOMException(XalanDOMException::HIERARCHY_REQUEST_ERR); } } else { append(m_textBuffer, chars, length); } }
bool XercesTextBridge::isIgnorableWhitespace() const { return isXMLWhitespace(getData()); }
bool XObjectResultTreeFragProxyText::isIgnorableWhitespace() const { return isXMLWhitespace(m_value.str()); }