With pedro 1.9.1 and the following schema:
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
elementFormDefault="qualified">
<xs:element name="ProzessKonfiguration">
<xs:complexType>
<xs:choice>
<xs:element ref="A"/>
<xs:element name="B" type="IdType"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:simpleType name="IdType">
<xs:restriction base="xs:string">
<xs:pattern value="[^ /\\]*"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="A" type="IdType"/>
</xs:schema>
importing the following xml:
<?xml version = "1.0" encoding = "UTF-8"?>
<ProzessKonfiguration Id="1" xmlns=""
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="/home/rolf/soft/pedro/models/test/model/bug.xsd">
<B>test</B>
</ProzessKonfiguration>
fails. It doesn't show the name "test"