Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

consider the following SVG example:

<svg><text><tspan>q</tspan></text></svg>

which is rendered blank instead of showing the letter 'q'.

<tspan> prevents q being added to sText here (svgreader.cxx):

visitChildren(boost::bind(
(rtl::OUStringBuffer& (rtl::OUStringBuffer::*)(const rtl::OUString& str))&rtl::OUStringBuffer::append,
                                  boost::ref(sText),
boost::bind(&xml::dom::XNode::getNodeValue,
                                              _1)),
                              xElem,
                              xml::dom::NodeType_TEXT_NODE);

In visitChildren() an output of getNodeValue() shows that <tspan> has an empty value. Who is responsible for that??? I'd expect a value "q". Node type is NodeType_ELEMENT_NODE. Is that what is expected? Or should <tspan> and <text> both be treated as NodeType_TEXT_NODE?

Christina

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.