From 0ffc4711e3938cf3d2cd958e66b9978232f04027 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 24 Feb 2017 14:10:46 -0600 Subject: [PATCH] Fix materials.xml RELAX NG schema --- src/relaxng/materials.rnc | 15 +-- src/relaxng/materials.rng | 276 +++++++++++++++++--------------------- 2 files changed, 122 insertions(+), 169 deletions(-) diff --git a/src/relaxng/materials.rnc b/src/relaxng/materials.rnc index 134fb86ca..4ad3ea0f0 100644 --- a/src/relaxng/materials.rnc +++ b/src/relaxng/materials.rnc @@ -27,23 +27,12 @@ element materials { attribute name { xsd:string }) }* & - element element { - (element name { xsd:string { maxLength = "2" } } | - attribute name { xsd:string { maxLength = "2" } }) & - (element scattering { ( "data" | "iso-in-lab" ) } | - attribute scattering { ( "data" | "iso-in-lab" ) })? & - ( - (element ao { xsd:double } | attribute ao { xsd:double }) | - (element wo { xsd:double } | attribute wo { xsd:double }) - ) - }* & - element sab { (element name { xsd:string } | attribute name { xsd:string }) }* - }+ + }+ & element cross_sections { xsd:string { maxLength = "255" } }? & - element multipole_library { xsd:string { maxLength = "255" } }? & + element multipole_library { xsd:string { maxLength = "255" } }? } diff --git a/src/relaxng/materials.rng b/src/relaxng/materials.rng index 3c92dc94a..0303d361e 100644 --- a/src/relaxng/materials.rng +++ b/src/relaxng/materials.rng @@ -1,64 +1,112 @@ - - - - - - - - - - - - + + + + - - - 52 - + + - - - 52 - + + - - - - - - - - - - - - - - - - - - + - + - 10 + 52 - + - 10 + 52 - - - - + + + + + + + + + + + + + + + + + + + + + 10 + + + + + 10 + + + + + + + + + + + + + + + + + + + + + data + iso-in-lab + + + + + data + iso-in-lab + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -67,120 +115,36 @@ - - - - - data - iso-in-lab - - - - - data - iso-in-lab - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - 2 - + - - 2 - + - - - - - data - iso-in-lab - - - - - data - iso-in-lab - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + 255 + + + + + + + 255 + + + +