tsd:elementInfo

This element can be used in two different contexts:

  1. In the context of xs:element/xs:annotation/xs:appinfo:

    Purpose

    This element contains information describing e.g. mapping, indexing or collation aspects of an element described by the XML Schema part of TSD.

    Note:
    A tsd:elementInfo element may only be inserted under an xs:element/xs:annotation/xs:appinfo chain if the xs:element element of which tsd:elementInfo is a successor has a name attribute and not a ref attribute.

    Parent element
    xs:element/xs:annotation/xs:appinfo
    Child elements tsd:logical, tsd:physical
    Attributes None

    Example 1

    This is a tsd:elementInfo element for native storage of an element using a standard index:

    <xs:element name = "address">
      <xs:annotation>
         <xs:appinfo>
           <tsd:elementInfo>
             <tsd:logical>
               <tsd:collation>
                 <tsd:language value="de"/>
                 <tsd:strength value="primary"/>
                 <tsd:caseFirst value = "upperFirst"/>
                 <tsd:alternate value = "shifted"/>
                 <tsd:caseLevel value = "false"/>
                 <tsd:french value = "false"/>
                 <tsd:normalization value ="false"/>
               </tsd:collation>
             </tsd:logical>
             <tsd:physical>
               <tsd:native>
                 <tsd:index>
                   <tsd:standard/>
                 </tsd:index>
               </tsd:native>
             </tsd:physical>
           </tsd:elementInfo>
         </xs:appinfo>
       </xs:annotation>
       .
       .
       .
    </xs:element>
    

    Example 2

    This is a tsd:elementInfo element for mapping an element to an SQL table "p_table" from an ODBC data source "p_datasource" into a schema "p_schema" using the user ID "p_userid" and the password "p_password":

    <xs:element name = "destination">
      <xs:annotation>
        <xs:appinfo>
          <tsd:elementInfo>
            <tsd:physical>
              <tsd:map>
                <tsd:subTreeSQL schema = "p_schema" table = "p_table"
                                userid = "p_userid" password = "p_password"
                                datasource = "p_datasource">
                </tsd:subTreeSQL>
                <tsd:ignoreUpdate>
                </tsd:ignoreUpdate>
              </tsd:map>
            </tsd:physical>
          </tsd:elementInfo>
        </xs:appinfo>
      </xs:annotation>
      <xs:complexType>
        <xs:simpleContent>
          <xs:extension base = "xs:string">
            <xs:attribute ref = "xml:lang" fixed = "de"/>
          </xs:extension>
        </xs:simpleContent>
      </xs:complexType>
    </xs:element>
    
  2. In the context of tsd:schemaInfo:

    Purpose The tsd:elementInfo element contains information describing e.g. mapping, indexing or collation aspects of an element described by the XML Schema part of TSD.
    Parent element tsd:schemaInfo
    Child elements tsd:physical
    Attributes context
    Attributes
    Name Type Description
    context xs:string

    This attribute contains the string with the context information for the element information.

    The context attribute is only available if the tsd:elementInfo is a child element of the tsd:schemaInfo element. The meaning of the value is essentially the same as for the tsd:which element, i.e. a string of the following syntax can be specified:

    ("/" element name)