- 
    Bug 
- 
    Resolution: Unresolved
- 
    P2: Important 
- 
    None
- 
    5.2.0
- 
    None
- 
    Windows 7
xsl validator does not work correctly in Qt. It fails to generate the table contents of a table. Verified with Altova XMLSpy 2014 that xsl is valid and it gives the correct output.
In Qt it seems that this line is causing the problem:
<xsl:if test="string($issueTypeName) = string($typeName)">
Problem can be repeated with following code, attached is the whole example
#include <QApplication> #include <QXmlQuery> #include <qdebug.h> #include <QFile> #include <QXmlResultItems> int main(int argc, char *argv[]) { QApplication a(argc, argv); bool ok; QString htmlString; QXmlResultItems result; QXmlQuery query(QXmlQuery::XSLT20); ok = query.setFocus(QUrl("qrc:/ChangeLog.xml")); query.setQuery(QUrl("qrc:/ChangeLog.xsl")); query.evaluateTo(&htmlString); QFile file("out.html"); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return 0; QTextStream out(&file); out << htmlString; qDebug()<<htmlString; return 0; }
