changeset 245:bbd86698240a

Re #152: Test and fix extensibility of current schemas * Disable UPA (Unique Particle Attribution) check to get same behaviour in .Net as Mono and as new XML Schema 1.1 draft * Unit test with extended schema now passes. More tests needed
author IBBoard <dev@ibboard.co.uk>
date Sat, 06 Mar 2010 16:01:42 +0000
parents 9e4a78464b1a
children c8ea9499eb15
files api/Factories/Xml/WarFoundryXmlFactoryUtils.cs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlFactoryUtils.cs	Sun Feb 28 21:09:45 2010 +0000
+++ b/api/Factories/Xml/WarFoundryXmlFactoryUtils.cs	Sat Mar 06 16:01:42 2010 +0000
@@ -74,6 +74,7 @@
 				AddSchemaToCache(cache, NS_BASE + "system", path + "system.xsd");
 				AddSchemaToCache(cache, NS_BASE + "army", path + "army.xsd");
 				settings.Schemas.Add(cache);
+				settings.Schemas.CompilationSettings.EnableUpaCheck = false;
 			}
 			
 			return settings;