Commit 836af2f9 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Fixed difference between generated XML schema and XML files for HTML entities

parent f9b80aff
...@@ -475,10 +475,13 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t) ...@@ -475,10 +475,13 @@ void HtmlEntityMapper::writeXMLSchema(FTextStream &t)
{ {
for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++) for (int i=0;i<g_numHtmlEntities - g_numberHtmlMappedCmds;i++)
{ {
QCString bareName = g_htmlEntities[i].item; QCString bareName = g_htmlEntities[i].xml;
bareName = bareName.mid(1,bareName.length()-2); if (!bareName.isEmpty() && bareName.at(0)=='<' && bareName.right(2)=="/>")
{
bareName = bareName.mid(1,bareName.length()-3); // strip < and />
t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n"; t << " <xsd:element name=\"" << bareName << "\" type=\"docEmptyType\" />\n";
} }
}
} }
/*! @brief Routine to check if the entries of the html_entities are numbered correctly /*! @brief Routine to check if the entries of the html_entities are numbered correctly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment