[xsd-users] substitution groups in Windows
    Benjamin DuPont 
    ben at nebland.com
       
    Sun Feb 11 20:47:00 EST 2018
    
    
  
Using code generated from the OpenADR xml schemas, I'm seeing different 
results on Windows and Linux when in elements where substitution groups 
are used.
In Windows, the following is generated:
<p5:itemBase xmlns:p6="http://docs.oasis-open.org/ns/emix/2011/06/power" 
xmlns:p7="http://docs.oasis-open.org/ns/emix/2011/06/siscale" 
xsi:type="p6:EnergyRealType">
In Linux, the following is generated:
<p5:energyReal 
xmlns:p6="http://docs.oasis-open.org/ns/emix/2011/06/siscale">
The substitution group is named itemBase.
Changing the substitution group to a choice fixes the issue, but I'd 
rather not modify the XSDs.  I suspect that both are valid but the XML 
must match the second form.
-- 
Ben DuPont
Owner/Operator
nebland software, LLC
ben at nebland.com | (920)328-5236
www.nebland.com
    
    
More information about the xsd-users
mailing list