[xsd-users] Specifying Element content for "anyType" Elements
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Tue Sep 30 10:56:41 EDT 2008
    
    
  
Hi Jan,
Jan Klimke <jan.klimke at hpi.uni-potsdam.de> writes:
>    <xsd:element name="PropertyName" type="ogc:PropertyNameType"
>       substitutionGroup="ogc:expression"/>
> [...]
>
>    <xsd:element name="Literal" type="ogc:LiteralType"
>       substitutionGroup="ogc:expression"/>
>
> [...]
>
>    <xsd:complexType name="LiteralType">
>       <xsd:complexContent mixed="true">
>          <xsd:extension base="ogc:ExpressionType">
>             <xsd:sequence>
>                <xsd:any minOccurs="0"/>
>             </xsd:sequence>
>          </xsd:extension>
>       </xsd:complexContent>
>    </xsd:complexType>
>    <xsd:complexType name="PropertyNameType">
>       <xsd:complexContent mixed="true">
>          <xsd:extension base="ogc:ExpressionType"/>
>       </xsd:complexContent>
>    </xsd:complexType>
As you can see from the definitions above, PropertyName and 
Literal elements are of types PropertyNameType and LiteralType,
respectively. If you want to get these elements in your XML
in place of expression then you will need to create instances
of these types instead of xsd:string and coll:Boolean as you 
do now.
Boris
    
    
More information about the xsd-users
mailing list