xsd any ##local
When there is an xsd:any, where the namespace is set to ##local, it is not possible to set another class in the BOM to it. This is because the BOM class will already have a namespace associated with it. EMF will not strip the namespace automatically.
For example:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://example.com/nsLocalAny" targetNamespace="http://example.com/nsLocalAny"> <xs:element name="TrainSpotter" type="ResearchType"/> <xs:complexType name="ResearchType"> <xs:sequence> <xs:element name="details" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="train"> <xs:complexType> <xs:sequence> <xs:element name="line" type="xs:string"/> <xs:element name="company" type="xs:string"/> <xs:any namespace="##local" processContents="lax" minOccurs="0" maxOccurs="5"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> |
Copyright © Cloud Software Group, Inc. All rights reserved.