Uniface-Compliant Attribute Declarations

Uniface supports a subset of the attribute declarations that are available in the XML standard, namely declarations for attributes for processing information, and declarations for namespaces.

You can use the following attribute declarations in your DTDs:

  • <!ATTLIST EntityElement id CDATA #REQUIRED>
  • <!ATTLIST EntityElement crc CDATA #REQUIRED>
  • <!ATTLIST EntityElement status CDATA #REQUIRED>
  • <!ATTLIST EntityElement valerr CDATA #IMPLIED>
  • <!ATTLIST FieldElement valerr CDATA #IMPLIED>
  • <!ATTLIST ElementName AttributeName "AttributeValue" #FIXED>
  • EntityElement—name of an element mapped to a Uniface entity
  • FieldElement—name of an element mapped to a Uniface field
  • ElementNameEntityElement or FieldElement
  • AttributeName—name of the attribute
  • AttributeValue—value of the attribute

Use #FIXED attributes to declare namespaces for your XML element names.

XML Standard Syntax

For comparison purposes, see the syntax for attribute declarations in XML Attribute Declaration.

The XML standard also allows an alternative syntax for attribute declarations, whereby all attributes are declared for an element in one <!ATTLIST> declaration. This syntax is not supported for Uniface XML streams.

Related Topics