Set the GDML_SCHEMA_DIR environment variable to point to the local directory. init_ilcsoft.sh sets GDML_SCHEMA_DIR, so this command must be run after init_ilcsoft.sh (or replace the corresponding line in init_ilcsoft.sh).
GDML_SCHEMA_DIR=/mySchemaDir
SLIC also searches automatically in the current directory for schemas.
The entity resolver in GDML should find the schemas if the structure has been flattened (all .xsd files in mySchemaDir, no subdirectories).
SLIC should also be able to find the schemas when the path component of the URL is preserved, i.e. ./schemas/lcdd/1.0/lcdd.xsd.
Copying LCDD and GDML schemas for ilcinstall
The GDML schemas needed are already saved in the ilcinstall installation directory, so all that's needed is to copy them:
cp v00-00/lcdd/v03-02-02/schemas/lcdd/1.0/*.xsd /mySchemaDir cp v00-00/geant4/9.6.p01/source/persistency/gdml/schema/*.xsd /mySchemaDir
Downloading the LCDD schemas (not necessary for ilcinstall)
To copy the schemas into a local directory, do the following.
cvs -d :pserver:anonymous@cvs.freehep.org:/cvs/lcd co lcdd cp lcdd/schemas/*/*/*.xsd /mySchemaDir
If you want to keep the schema directory structure, use this command from your lcdd directory.
cp -R schemas /mySchemaDir
The LCDD schemas are also online at http://www.lcsim.org/schemas/lcdd/1.0/.
Downloading the GDML schemas (not necessary for ilcinstall)
Download the tarball from http://gdml.web.cern.ch/GDML/gdmlschema.html and copy the schemas.
tar -xzf GDML_3_0_0.tar.gz cp GDML_3_0_0/schema/*.xsd /mySchemaDir