hrc/xsd regexp bugfix, some xsd refactoring
Authored by: formirror 2009-04-13
Parent: [r1098]
Child: [r1100]