diff --git a/src/xmlpatterns/doc/qtxmlpatterns.qdocconf b/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
index 1db86562f23dca74676872044cc34646b092b867..c8c7d3350887a795a478f8a97bf154cd862493f5 100644
--- a/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
+++ b/src/xmlpatterns/doc/qtxmlpatterns.qdocconf
@@ -32,7 +32,7 @@ qhp.qtxmlpatterns.file = qtxmlpatterns.qhp
 
 # Namespace for the output file. This namespace is used to distinguish between
 # different documentation files in Creator/Assistant.
-qhp.qtxmlpatterns.namespace = org.qt-project.qtxmlpatterns.501
+qhp.qtxmlpatterns.namespace = org.qt-project.qtxmlpatterns.$QT_VERSION_TAG
 
 # Title for the package, will be the main title for the package in
 # Assistant/Creator.