Direkt zum Hauptinhalt

HowTo: lint and validate *.inx files

For validation purposes of all inx files we can use the following step:

sudo apt-get update && apt-get install libxml2-utils # install require stuff  

cd ~/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz
./000_validate.sh # does not support linting for deeper folders (no recurse)

# or lint a single file in an extensions' dir:
cd <yourExtension>
xmllint --noout --relaxng ../inkscape.extension.rng *.inx

If there is an error message instead of the export/import dialog, check the file or console log from Inkscape:

#Windows
%AppData%\Roaming\inkscape\extension-errors.log

#Linux
~/.config(inkscape/extension-errors.log

Counting INX files and folders:

cd ~/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz
find ./ -type f -name "*.inx" | wc -l
ls -d */ | wc -l