diff --git a/scripts/packageBinaries.pl b/scripts/packageBinaries.pl
index d36b4c7a04a5c6c3018ed815025e2a96711b4768..6461f381a7257da16392563b729fc2c1a769c162 100644
--- a/scripts/packageBinaries.pl
+++ b/scripts/packageBinaries.pl
@@ -646,7 +646,7 @@ if ($platform =~ m/Windows/  || $platform =~ m/CYGWIN/) {
         psystem("cp $XERCESCROOT/XLicense.html $targetdir");
     }
     psystem("rm -f $targetdir/doc/Doxyfile");
-    psystem("rm -rf $targetdir/doc/dtd");
+    psystem("rm -rf $targetdir/doc/style");
     psystem("rm -f $targetdir/doc/*.xml");
     psystem("rm -f $targetdir/doc/*.ent");
     psystem("rm -f $targetdir/doc/*.gif");
@@ -1158,7 +1158,7 @@ if ( ($platform =~ m/AIX/i)    || ($platform =~ m/HP-UX/i) ||
         psystem("cp $XERCESCROOT/XLicense.html $targetdir");
     }
     psystem("rm -f $targetdir/doc/Doxyfile");
-    psystem("rm -rf $targetdir/doc/dtd");
+    psystem("rm -rf $targetdir/doc/style");
     psystem("rm -f $targetdir/doc/*.xml");
     psystem("rm -f $targetdir/doc/*.ent");
     psystem("rm -f $targetdir/doc/*.gif");