cd XSB\packages\sgml\cc
nmake /f NMakefile.mak
You need MS Visual Studio for that. If you downloaded a prebuilt version
of XSB, then the sgml package should have already been compiled for you
and no installation is required.
The details of the xpath package and the corresponding configuration instructions appear in Section 9.4.