Edinburgh Speech Tools  2.1-release
dtd.c File Reference
#include <string.h>
#include "system.h"
#include "charset.h"
#include "string16.h"
#include "dtd.h"
#include "url.h"
Include dependency graph for dtd.c:

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

Dtd NewDtd ( void  )

Definition at line 93 of file dtd.c.

void FreeDtd ( Dtd  dtd)

Definition at line 118 of file dtd.c.

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.

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.

void FreeEntity ( Entity  e)

Definition at line 250 of file dtd.c.

const char8* EntityURL ( Entity  e)

Definition at line 275 of file dtd.c.

const char8* EntityDescription ( Entity  e)

Definition at line 303 of file dtd.c.

void EntitySetBaseURL ( Entity  e,
const char8 url 
)

Definition at line 317 of file dtd.c.

const char8* EntityBaseURL ( Entity  e)

Definition at line 322 of file dtd.c.

Entity DefineEntity ( Dtd  dtd,
Entity  e,
int  pe 
)

Definition at line 338 of file dtd.c.

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

Definition at line 354 of file dtd.c.

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

Definition at line 378 of file dtd.c.

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

Definition at line 430 of file dtd.c.

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

Definition at line 470 of file dtd.c.

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

Definition at line 495 of file dtd.c.

void FreeElementDefinition ( ElementDefinition  e)

Definition at line 542 of file dtd.c.

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.

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

Definition at line 637 of file dtd.c.

AttributeDefinition NextAttributeDefinition ( ElementDefinition  element,
AttributeDefinition  previous 
)

Definition at line 661 of file dtd.c.

void FreeAttributeDefinition ( AttributeDefinition  a)

Definition at line 676 of file dtd.c.

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

Definition at line 712 of file dtd.c.

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

Definition at line 735 of file dtd.c.

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

Definition at line 758 of file dtd.c.

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

Definition at line 768 of file dtd.c.

void FreeNotationDefinition ( NotationDefinition  n)

Definition at line 779 of file dtd.c.

Variable Documentation

const char8* DefaultTypeName[DT_enum_count]
Initial value:
= {
"#required",
"bogus1",
"#implied",
"bogus2",
"none",
"#fixed",
}

Definition at line 37 of file dtd.c.

const char8* ContentTypeName[CT_enum_count]
Initial value:
= {
"mixed",
"any",
"bogus1",
"bogus2",
"empty",
"element"
}

Definition at line 46 of file dtd.c.

const char8* AttributeTypeName[AT_enum_count]
Initial value:
= {
"cdata",
"bogus1",
"bogus2",
"nmtoken",
"bogus3",
"entity",
"idref",
"bogus4",
"bogus5",
"nmtokens",
"bogus6",
"entities",
"idrefs",
"id",
"notation",
"enumeration"
}

Definition at line 55 of file dtd.c.

const char8* StandaloneDeclarationName[SDD_enum_count]
Initial value:
= {
"unspecified", "no", "yes"
}

Definition at line 74 of file dtd.c.