Edinburgh Speech Tools  2.1-release
dtd.h File Reference
#include "charset.h"
Include dependency graph for dtd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Dtd
 
struct  Entity
 
struct  ElementDefinition
 
struct  AttributeDefinition
 
struct  NotationDefinition
 

Macros

#define XML_API
 
#define NewExternalEntity(name, pub, sys, nnot, parent)   NewExternalEntityN(name, name ? Strlen(name) : 0, pub, sys, nnot, parent)
 
#define NewInternalEntity(name, test, parent, l, l1, mat)   NewInternalEntityN(name, name ? Strlen(name) : 0, test, parent, l, l1, mat)
 
#define FindEntity(dtd, name, pe)   FindEntityN(dtd, name, Strlen(name), pe)
 
#define DefineElement(dtd, name, type, content)   DefineElementN(dtd, name, Strlen(name), type, content)
 
#define TentativelyDefineElement(dtd, name)   TentativelyDefineElementN(dtd, name, Strlen(name))
 
#define FindElement(dtd, name)   FindElementN(dtd, name, Strlen(name))
 
#define DefineAttribute(element, name, type, all, dt, dv)   DefineAttributeN(element, name, Strlen(name), type, all, dt, dv)
 
#define FindAttribute(element, name)   FindAttributeN(element, name, Strlen(name))
 
#define DefineNotation(dtd, name, pub, sys)   DefineNotationN(dtd, name, Strlen(name), pub, sys)
 
#define TentativelyDefineNotation(dtd, name)   TentativelyDefineNotationN(dtd, name, Strlen(name))
 
#define FindNotation(dtd, name)   FindNotationN(dtd, name, Strlen(name))
 

Typedefs

typedef enum entity_type EntityType
 
typedef enum markup_language MarkupLanguage
 
typedef enum standalone_declaration StandaloneDeclaration
 
typedef enum content_type ContentType
 
typedef enum default_type DefaultType
 
typedef enum attribute_type AttributeType
 

Enumerations

enum  entity_type { ET_external, ET_internal }
 
enum  markup_language { ML_xml, ML_nsl, ML_unspecified }
 
enum  standalone_declaration { SDD_unspecified, SDD_no, SDD_yes, SDD_enum_count }
 
enum  content_type {
  CT_mixed, CT_any, CT_bogus1, CT_bogus2,
  CT_empty, CT_element, CT_enum_count
}
 
enum  default_type {
  DT_required, DT_bogus1, DT_implied, DT_bogus2,
  DT_none, DT_fixed, DT_enum_count
}
 
enum  attribute_type {
  AT_cdata, AT_bogus1, AT_bogus2, AT_nmtoken,
  AT_bogus3, AT_entity, AT_idref, AT_bogus4,
  AT_bogus5, AT_nmtokens, AT_bogus6, AT_entities,
  AT_idrefs, AT_id, AT_notation, AT_enumeration,
  AT_enum_count
}
 

Functions

AttributeDefinition NextAttributeDefinition (ElementDefinition element, AttributeDefinition previous)
 
XML_API Dtd NewDtd (void)
 
XML_API void FreeDtd (Dtd dtd)
 
XML_API Entity NewExternalEntityN (const Char *name, int namelen, const char8 *publicid, const char8 *systemid, NotationDefinition notation, Entity parent)
 
XML_API Entity NewInternalEntityN (const Char *name, int namelen, const Char *text, Entity parent, int line_offset, int line1_char_offset, int matches_parent_text)
 
XML_API void FreeEntity (Entity e)
 
XML_API const char8EntityURL (Entity e)
 
XML_API const char8EntityDescription (Entity e)
 
XML_API void EntitySetBaseURL (Entity e, const char8 *url)
 
XML_API const char8EntityBaseURL (Entity e)
 
XML_API Entity DefineEntity (Dtd dtd, Entity entity, int pe)
 
XML_API Entity FindEntityN (Dtd dtd, const Char *name, int namelen, int pe)
 
XML_API ElementDefinition DefineElementN (Dtd dtd, const Char *name, int namelen, ContentType type, Char *content)
 
XML_API ElementDefinition TentativelyDefineElementN (Dtd dtd, const Char *name, int namelen)
 
XML_API ElementDefinition RedefineElement (ElementDefinition e, ContentType type, Char *content)
 
XML_API ElementDefinition FindElementN (Dtd dtd, const Char *name, int namelen)
 
XML_API void FreeElementDefinition (ElementDefinition e)
 
XML_API AttributeDefinition DefineAttributeN (ElementDefinition element, const Char *name, int namelen, AttributeType type, Char **allowed_values, DefaultType default_type, const Char *default_value)
 
XML_API AttributeDefinition FindAttributeN (ElementDefinition element, const Char *name, int namelen)
 
XML_API void FreeAttributeDefinition (AttributeDefinition a)
 
XML_API NotationDefinition DefineNotationN (Dtd dtd, const Char *name, int namelen, const char8 *publicid, const char8 *systemid)
 
XML_API NotationDefinition TentativelyDefineNotationN (Dtd dtd, const Char *name, int namelen)
 
XML_API NotationDefinition RedefineNotation (NotationDefinition n, const char8 *publicid, const char8 *systemid)
 
XML_API NotationDefinition FindNotationN (Dtd dtd, const Char *name, int namelen)
 
XML_API void FreeNotationDefinition (NotationDefinition n)
 

Variables

const char8StandaloneDeclarationName [SDD_enum_count]
 
XML_API const char8ContentTypeName [CT_enum_count]
 
XML_API const char8DefaultTypeName [DT_enum_count]
 
XML_API const char8AttributeTypeName [AT_enum_count]
 

Macro Definition Documentation

#define XML_API

Definition at line 19 of file dtd.h.

#define NewExternalEntity (   name,
  pub,
  sys,
  nnot,
  parent 
)    NewExternalEntityN(name, name ? Strlen(name) : 0, pub, sys, nnot, parent)

Definition at line 204 of file dtd.h.

#define NewInternalEntity (   name,
  test,
  parent,
  l,
  l1,
  mat 
)    NewInternalEntityN(name, name ? Strlen(name) : 0, test, parent, l, l1, mat)

Definition at line 206 of file dtd.h.

#define FindEntity (   dtd,
  name,
  pe 
)    FindEntityN(dtd, name, Strlen(name), pe)

Definition at line 208 of file dtd.h.

#define DefineElement (   dtd,
  name,
  type,
  content 
)    DefineElementN(dtd, name, Strlen(name), type, content)

Definition at line 219 of file dtd.h.

#define TentativelyDefineElement (   dtd,
  name 
)    TentativelyDefineElementN(dtd, name, Strlen(name))

Definition at line 221 of file dtd.h.

#define FindElement (   dtd,
  name 
)    FindElementN(dtd, name, Strlen(name))

Definition at line 223 of file dtd.h.

#define DefineAttribute (   element,
  name,
  type,
  all,
  dt,
  dv 
)    DefineAttributeN(element, name, Strlen(name), type, all, dt, dv)

Definition at line 234 of file dtd.h.

#define FindAttribute (   element,
  name 
)    FindAttributeN(element, name, Strlen(name))

Definition at line 236 of file dtd.h.

#define DefineNotation (   dtd,
  name,
  pub,
  sys 
)    DefineNotationN(dtd, name, Strlen(name), pub, sys)

Definition at line 248 of file dtd.h.

#define TentativelyDefineNotation (   dtd,
  name 
)    TentativelyDefineNotationN(dtd, name, Strlen(name))

Definition at line 250 of file dtd.h.

#define FindNotation (   dtd,
  name 
)    FindNotationN(dtd, name, Strlen(name))

Definition at line 252 of file dtd.h.

Typedef Documentation

typedef enum entity_type EntityType

Definition at line 57 of file dtd.h.

Definition at line 60 of file dtd.h.

Definition at line 66 of file dtd.h.

typedef enum content_type ContentType

Definition at line 107 of file dtd.h.

typedef enum default_type DefaultType

Definition at line 133 of file dtd.h.

Definition at line 143 of file dtd.h.

Enumeration Type Documentation

Enumerator
ET_external 
ET_internal 

Definition at line 56 of file dtd.h.

Enumerator
ML_xml 
ML_nsl 
ML_unspecified 

Definition at line 59 of file dtd.h.

Enumerator
SDD_unspecified 
SDD_no 
SDD_yes 
SDD_enum_count 

Definition at line 62 of file dtd.h.

Enumerator
CT_mixed 
CT_any 
CT_bogus1 
CT_bogus2 
CT_empty 
CT_element 
CT_enum_count 

Definition at line 103 of file dtd.h.

Enumerator
DT_required 
DT_bogus1 
DT_implied 
DT_bogus2 
DT_none 
DT_fixed 
DT_enum_count 

Definition at line 128 of file dtd.h.

Enumerator
AT_cdata 
AT_bogus1 
AT_bogus2 
AT_nmtoken 
AT_bogus3 
AT_entity 
AT_idref 
AT_bogus4 
AT_bogus5 
AT_nmtokens 
AT_bogus6 
AT_entities 
AT_idrefs 
AT_id 
AT_notation 
AT_enumeration 
AT_enum_count 

Definition at line 137 of file dtd.h.

Function Documentation

AttributeDefinition NextAttributeDefinition ( ElementDefinition  element,
AttributeDefinition  previous 
)

Definition at line 661 of file dtd.c.

XML_API Dtd NewDtd ( void  )

Definition at line 93 of file dtd.c.

XML_API void FreeDtd ( Dtd  dtd)

Definition at line 118 of file dtd.c.

XML_API Entity NewExternalEntityN ( const Char *  name,
int  namelen,
const char8 publicid,
const char8 systemid,
NotationDefinition  notation,
Entity  parent 
)

Definition at line 182 of file dtd.c.

XML_API Entity NewInternalEntityN ( const Char *  name,
int  namelen,
const Char *  text,
Entity  parent,
int  line_offset,
int  line1_char_offset,
int  matches_parent_text 
)

Definition at line 216 of file dtd.c.

XML_API void FreeEntity ( Entity  e)

Definition at line 250 of file dtd.c.

XML_API const char8* EntityURL ( Entity  e)

Definition at line 275 of file dtd.c.

XML_API const char8* EntityDescription ( Entity  e)

Definition at line 303 of file dtd.c.

XML_API void EntitySetBaseURL ( Entity  e,
const char8 url 
)

Definition at line 317 of file dtd.c.

XML_API const char8* EntityBaseURL ( Entity  e)

Definition at line 322 of file dtd.c.

XML_API Entity DefineEntity ( Dtd  dtd,
Entity  entity,
int  pe 
)

Definition at line 338 of file dtd.c.

XML_API Entity FindEntityN ( Dtd  dtd,
const Char *  name,
int  namelen,
int  pe 
)

Definition at line 354 of file dtd.c.

XML_API ElementDefinition DefineElementN ( Dtd  dtd,
const Char *  name,
int  namelen,
ContentType  type,
Char *  content 
)

Definition at line 378 of file dtd.c.

XML_API ElementDefinition TentativelyDefineElementN ( Dtd  dtd,
const Char *  name,
int  namelen 
)

Definition at line 430 of file dtd.c.

XML_API ElementDefinition RedefineElement ( ElementDefinition  e,
ContentType  type,
Char *  content 
)

Definition at line 470 of file dtd.c.

XML_API ElementDefinition FindElementN ( Dtd  dtd,
const Char *  name,
int  namelen 
)

Definition at line 495 of file dtd.c.

XML_API void FreeElementDefinition ( ElementDefinition  e)

Definition at line 542 of file dtd.c.

XML_API AttributeDefinition DefineAttributeN ( ElementDefinition  element,
const Char *  name,
int  namelen,
AttributeType  type,
Char **  allowed_values,
DefaultType  default_type,
const Char *  default_value 
)

Definition at line 582 of file dtd.c.

XML_API AttributeDefinition FindAttributeN ( ElementDefinition  element,
const Char *  name,
int  namelen 
)

Definition at line 637 of file dtd.c.

XML_API void FreeAttributeDefinition ( AttributeDefinition  a)

Definition at line 676 of file dtd.c.

XML_API NotationDefinition DefineNotationN ( Dtd  dtd,
const Char *  name,
int  namelen,
const char8 publicid,
const char8 systemid 
)

Definition at line 712 of file dtd.c.

XML_API NotationDefinition TentativelyDefineNotationN ( Dtd  dtd,
const Char *  name,
int  namelen 
)

Definition at line 735 of file dtd.c.

XML_API NotationDefinition RedefineNotation ( NotationDefinition  n,
const char8 publicid,
const char8 systemid 
)

Definition at line 758 of file dtd.c.

XML_API NotationDefinition FindNotationN ( Dtd  dtd,
const Char *  name,
int  namelen 
)

Definition at line 768 of file dtd.c.

XML_API void FreeNotationDefinition ( NotationDefinition  n)

Definition at line 779 of file dtd.c.

Variable Documentation

const char8* StandaloneDeclarationName[SDD_enum_count]

Definition at line 74 of file dtd.c.

XML_API const char8* ContentTypeName[CT_enum_count]

Definition at line 46 of file dtd.c.

XML_API const char8* DefaultTypeName[DT_enum_count]

Definition at line 37 of file dtd.c.

XML_API const char8* AttributeTypeName[AT_enum_count]

Definition at line 55 of file dtd.c.