Back to index

tetex-bin  3.0
Enumerations | Functions | Variables
xml.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  xml_element {
  TEXINFO = 0, SETFILENAME, TITLEFONT, SETTITLE,
  DOCUMENTDESCRIPTION, NODE, NODENEXT, NODEPREV,
  NODEUP, CHAPTER, SECTION, SUBSECTION,
  SUBSUBSECTION, TOP, UNNUMBERED, UNNUMBEREDSEC,
  UNNUMBEREDSUBSEC, UNNUMBEREDSUBSUBSEC, APPENDIX, APPENDIXSEC,
  APPENDIXSUBSEC, APPENDIXSUBSUBSEC, MAJORHEADING, CHAPHEADING,
  HEADING, SUBHEADING, SUBSUBHEADING, TITLEPAGE,
  AUTHOR, BOOKTITLE, BOOKSUBTITLE, MENU,
  DETAILMENU, MENUENTRY, MENUTITLE, MENUCOMMENT,
  MENUNODE, NODENAME, ACRONYM, ACRONYMWORD,
  ACRONYMDESC, ABBREV, ABBREVWORD, ABBREVDESC,
  TT, CODE, COMMAND_TAG, ENV,
  FILE_TAG, OPTION, SAMP, KBD,
  URL, KEY, VAR, SC,
  DFN, EMPH, STRONG, CITE,
  NOTFIXEDWIDTH, I, B, R,
  SLANTED, SANSSERIF, EXDENT, TITLE,
  IFINFO, SP, CENTER, DIRCATEGORY,
  QUOTATION, EXAMPLE, SMALLEXAMPLE, LISP,
  SMALLLISP, CARTOUCHE, COPYING, FORMAT,
  SMALLFORMAT, DISPLAY, SMALLDISPLAY, VERBATIM,
  FOOTNOTE, LINEANNOTATION, TIP, NOTE,
  IMPORTANT, WARNING, CAUTION, ITEMIZE,
  ITEMFUNCTION, ITEM, ENUMERATE, TABLE,
  TABLEITEM, TABLETERM, INDEXTERM, MATH,
  DIMENSION, XREF, XREFNODENAME, XREFINFONAME,
  XREFPRINTEDDESC, XREFINFOFILE, XREFPRINTEDNAME, INFOREF,
  INFOREFNODENAME, INFOREFREFNAME, INFOREFINFONAME, UREF,
  UREFURL, UREFDESC, UREFREPLACEMENT, EMAIL,
  EMAILADDRESS, EMAILNAME, GROUP, FLOAT,
  FLOATTYPE, FLOATPOS, CAPTION, SHORTCAPTION,
  FLOATTABLE, FLOATFIGURE, FLOATEXAMPLE, FLOATCARTOUCHE,
  PRINTINDEX, LISTOFFLOATS, ANCHOR, IMAGE,
  INLINEIMAGE, IMAGEALTTEXT, PRIMARY, SECONDARY,
  INFORMALFIGURE, MEDIAOBJECT, IMAGEOBJECT, IMAGEDATA,
  TEXTOBJECT, INDEXENTRY, PRIMARYIE, SECONDARYIE,
  INDEXDIV, MULTITABLE, TGROUP, COLSPEC,
  THEAD, TBODY, ENTRY, ROW,
  BOOKINFO, ABSTRACT, REPLACEABLE, ENVAR,
  COMMENT, FUNCTION, LEGALNOTICE, CONTENTS,
  SHORTCONTENTS, DOCUMENTLANGUAGE, SETVALUE, CLEARVALUE,
  DEFINITION, DEFINITIONTERM, DEFINITIONITEM, DEFCATEGORY,
  DEFFUNCTION, DEFVARIABLE, DEFPARAM, DEFDELIMITER,
  DEFTYPE, DEFPARAMTYPE, DEFDATATYPE, DEFCLASS,
  DEFCLASSVAR, DEFOPERATION, PARA
}

Functions

void xml_add_char (int character)
void xml_asterisk (void)
void xml_insert_element (int elt, int arg)
void xml_insert_entity (char *entity_name)
void xml_insert_footnote (char *note)
void xml_insert_quotation (char *type, int arg)
void xml_insert_indexentry (char *entry, char *node)
void xml_insert_indexterm (char *indexterm, char *index)
void xml_insert_docbook_image (char *name_arg)
void xml_synindex (char *from, char *to)
void xml_start_para (void)
void xml_end_para (void)
void xml_begin_document (char *output_filename)
void xml_end_document (void)
void xml_start_menu_entry (char *tem)
void xml_end_menu (void)
void xml_end_current_element (void)
void xml_open_section (int level, char *name)
void xml_close_sections (int level)
void xml_begin_node (void)
void xml_begin_index (void)
void xml_end_index (void)
void xml_begin_multitable (int ncolumns, int *column_widths)
void xml_end_multitable (void)
void xml_end_multitable_row (int first_row)
void xml_end_multitable_column (void)
void xml_begin_table (int type, char *item_function)
void xml_end_table (int type)
void xml_begin_item (void)
void xml_begin_table_item (void)
void xml_continue_table_item (void)
void xml_begin_enumerate (char *enum_arg)
void xml_end_enumerate (void)
void xml_begin_docbook_float (int elt)
char * xml_id (char *id)
void xml_begin_definition (void)
void xml_end_definition (void)
void xml_process_defun_args (char **defun_args, int auto_var_p)
void xml_begin_def_term (int base_type, const char *category, char *defined_name, char *type_name, char *type_name2)
void xml_end_def_term (void)
int xml_current_stack_index (void)
int xml_element (char *name)
void xml_insert_element_with_attribute ()

Variables

int xml_index_divisions
int xml_sort_index
int xml_no_indent
int xml_node_open
int xml_no_para
char * xml_node_id
int xml_last_section_output_position
int xml_in_xref_token
int xml_in_bookinfo
int xml_in_book_title
int xml_in_abstract
int xml_dont_touch_items_defs
int xml_keep_space

Enumeration Type Documentation

Enumerator:
TEXINFO 
SETFILENAME 
TITLEFONT 
SETTITLE 
DOCUMENTDESCRIPTION 
NODE 
NODENEXT 
NODEPREV 
NODEUP 
CHAPTER 
SECTION 
SUBSECTION 
SUBSUBSECTION 
TOP 
UNNUMBERED 
UNNUMBEREDSEC 
UNNUMBEREDSUBSEC 
UNNUMBEREDSUBSUBSEC 
APPENDIX 
APPENDIXSEC 
APPENDIXSUBSEC 
APPENDIXSUBSUBSEC 
MAJORHEADING 
CHAPHEADING 
HEADING 
SUBHEADING 
SUBSUBHEADING 
TITLEPAGE 
AUTHOR 
BOOKTITLE 
BOOKSUBTITLE 
MENU 
DETAILMENU 
MENUENTRY 
MENUTITLE 
MENUCOMMENT 
MENUNODE 
NODENAME 
ACRONYM 
ACRONYMWORD 
ACRONYMDESC 
ABBREV 
ABBREVWORD 
ABBREVDESC 
TT 
CODE 
COMMAND_TAG 
ENV 
FILE_TAG 
OPTION 
SAMP 
KBD 
URL 
KEY 
VAR 
SC 
DFN 
EMPH 
STRONG 
CITE 
NOTFIXEDWIDTH 
I 
B 
R 
SLANTED 
SANSSERIF 
EXDENT 
TITLE 
IFINFO 
SP 
CENTER 
DIRCATEGORY 
QUOTATION 
EXAMPLE 
SMALLEXAMPLE 
LISP 
SMALLLISP 
CARTOUCHE 
COPYING 
FORMAT 
SMALLFORMAT 
DISPLAY 
SMALLDISPLAY 
VERBATIM 
FOOTNOTE 
LINEANNOTATION 
TIP 
NOTE 
IMPORTANT 
WARNING 
CAUTION 
ITEMIZE 
ITEMFUNCTION 
ITEM 
ENUMERATE 
TABLE 
TABLEITEM 
TABLETERM 
INDEXTERM 
MATH 
DIMENSION 
XREF 
XREFNODENAME 
XREFINFONAME 
XREFPRINTEDDESC 
XREFINFOFILE 
XREFPRINTEDNAME 
INFOREF 
INFOREFNODENAME 
INFOREFREFNAME 
INFOREFINFONAME 
UREF 
UREFURL 
UREFDESC 
UREFREPLACEMENT 
EMAIL 
EMAILADDRESS 
EMAILNAME 
GROUP 
FLOAT 
FLOATTYPE 
FLOATPOS 
CAPTION 
SHORTCAPTION 
FLOATTABLE 
FLOATFIGURE 
FLOATEXAMPLE 
FLOATCARTOUCHE 
PRINTINDEX 
LISTOFFLOATS 
ANCHOR 
IMAGE 
INLINEIMAGE 
IMAGEALTTEXT 
PRIMARY 
SECONDARY 
INFORMALFIGURE 
MEDIAOBJECT 
IMAGEOBJECT 
IMAGEDATA 
TEXTOBJECT 
INDEXENTRY 
PRIMARYIE 
SECONDARYIE 
INDEXDIV 
MULTITABLE 
TGROUP 
COLSPEC 
THEAD 
TBODY 
ENTRY 
ROW 
BOOKINFO 
ABSTRACT 
REPLACEABLE 
ENVAR 
COMMENT 
FUNCTION 
LEGALNOTICE 
CONTENTS 
SHORTCONTENTS 
DOCUMENTLANGUAGE 
SETVALUE 
CLEARVALUE 
DEFINITION 
DEFINITIONTERM 
DEFINITIONITEM 
DEFCATEGORY 
DEFFUNCTION 
DEFVARIABLE 
DEFPARAM 
DEFDELIMITER 
DEFTYPE 
DEFPARAMTYPE 
DEFDATATYPE 
DEFCLASS 
DEFCLASSVAR 
DEFOPERATION 
PARA 

Definition at line 50 of file xml.h.

{
  TEXINFO=0, SETFILENAME, TITLEFONT, SETTITLE, DOCUMENTDESCRIPTION,
  /* Node */
  NODE, NODENEXT, NODEPREV, NODEUP,
  /* Structuring */
  CHAPTER, SECTION, SUBSECTION, SUBSUBSECTION,
  TOP, UNNUMBERED, UNNUMBEREDSEC, UNNUMBEREDSUBSEC,
    UNNUMBEREDSUBSUBSEC,  
  APPENDIX, APPENDIXSEC, APPENDIXSUBSEC, APPENDIXSUBSUBSEC, 
  MAJORHEADING, CHAPHEADING, HEADING, SUBHEADING, SUBSUBHEADING,
  /* Titlepage */
  TITLEPAGE, AUTHOR, BOOKTITLE, BOOKSUBTITLE,
  /* Menu */
  MENU, DETAILMENU, MENUENTRY, MENUTITLE, MENUCOMMENT, MENUNODE,
  NODENAME,
  /* -- */
  ACRONYM, ACRONYMWORD, ACRONYMDESC,
  ABBREV, ABBREVWORD, ABBREVDESC,
  TT, CODE, COMMAND_TAG, ENV, FILE_TAG, OPTION, SAMP, KBD, URL, KEY,
  VAR, SC, DFN, EMPH, STRONG, CITE, NOTFIXEDWIDTH, I, B, R, SLANTED, SANSSERIF,
  EXDENT,
  TITLE, 
  IFINFO, 
  SP, CENTER,
  DIRCATEGORY,
  QUOTATION, EXAMPLE, SMALLEXAMPLE, LISP, SMALLLISP, CARTOUCHE,
    COPYING, FORMAT, SMALLFORMAT, DISPLAY, SMALLDISPLAY, VERBATIM,
  FOOTNOTE, LINEANNOTATION,
  TIP, NOTE, IMPORTANT, WARNING, CAUTION,
  ITEMIZE, ITEMFUNCTION, ITEM, ENUMERATE, TABLE, TABLEITEM, TABLETERM,
  INDEXTERM, 
  MATH, DIMENSION,
  XREF, XREFNODENAME, XREFINFONAME, XREFPRINTEDDESC, XREFINFOFILE,
    XREFPRINTEDNAME, 
  INFOREF, INFOREFNODENAME, INFOREFREFNAME, INFOREFINFONAME, 
  UREF, UREFURL, UREFDESC, UREFREPLACEMENT,
  EMAIL, EMAILADDRESS, EMAILNAME,
  GROUP, FLOAT, FLOATTYPE, FLOATPOS, CAPTION, SHORTCAPTION,
  FLOATTABLE, FLOATFIGURE, FLOATEXAMPLE, FLOATCARTOUCHE,
  PRINTINDEX, LISTOFFLOATS,
  ANCHOR, 
  IMAGE, INLINEIMAGE, IMAGEALTTEXT,
  PRIMARY, SECONDARY, INFORMALFIGURE, MEDIAOBJECT, IMAGEOBJECT,
    IMAGEDATA, TEXTOBJECT,  
  INDEXENTRY, PRIMARYIE, SECONDARYIE, INDEXDIV,
  MULTITABLE, TGROUP, COLSPEC, THEAD, TBODY, ENTRY, ROW,
  BOOKINFO, ABSTRACT, REPLACEABLE, ENVAR, COMMENT, FUNCTION, LEGALNOTICE,
  CONTENTS, SHORTCONTENTS, DOCUMENTLANGUAGE,
  SETVALUE, CLEARVALUE,
  DEFINITION, DEFINITIONTERM, DEFINITIONITEM,
  DEFCATEGORY, DEFFUNCTION, DEFVARIABLE, DEFPARAM, DEFDELIMITER, DEFTYPE,
  DEFPARAMTYPE, DEFDATATYPE, DEFCLASS, DEFCLASSVAR, DEFOPERATION,
  PARA
};

Function Documentation

void xml_add_char ( int  character)
void xml_begin_def_term ( int  base_type,
const char *  category,
char *  defined_name,
char *  type_name,
char *  type_name2 
)

Definition at line 1348 of file xml.c.

{
  if (current_float_used_title ()) /* in a nested float */
    {
      xml_insert_element (elt, START);    /* just insert the tag */
      return;
    }


  /* OK, need the title, tag, etc. */
  if (elt == CARTOUCHE)    /* no labels on <sidebar> */
    {
       if (strlen (current_float_id ()) == 0)
          xml_insert_element (elt, START);
       else
          xml_insert_element_with_attribute (elt, START,
              "id=\"%s\"", xml_id (current_float_id ()));
    }
  else if (strlen (current_float_id ()) == 0)
    xml_insert_element_with_attribute (elt, START, "label=\"\"");
  else
    xml_insert_element_with_attribute (elt, START,
        "id=\"%s\" label=\"%s\"", xml_id (current_float_id ()),
        current_float_number ());

  xml_insert_element (TITLE, START);
  execute_string ("%s", current_float_title ());
  xml_insert_element (TITLE, END);

  current_float_set_title_used (); /* mark this title, tag, etc used */
}

Here is the call graph for this function:

Here is the caller graph for this function:

void xml_begin_document ( char *  output_filename)
void xml_begin_enumerate ( char *  enum_arg)
void xml_begin_multitable ( int  ncolumns,
int column_widths 
)
void xml_begin_table ( int  type,
char *  item_function 
)
int xml_element ( char *  name)

Definition at line 583 of file xml.c.

{
  int i;
  for (i=0; i<=PARA; i++)
    {
      if (strcasecmp (name, texinfoml_element_list[i].name) == 0)
        return i;
    }
  printf ("Error xml_element\n");
  return -1;
}

Here is the call graph for this function:

Definition at line 2324 of file xml.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void xml_end_table ( int  type)
char* xml_id ( char *  id)

Definition at line 562 of file xml.c.

{
  char *tem = xmalloc (strlen (id) + 1);
  char *p = tem;
  strcpy (tem, id);
  while (*p)
    { /* Check if a character is allowed in ID attributes.  This list differs
         slightly from XML specs that it doesn't contain underscores.
         See http://xml.coverpages.org/sgmlsyn/sgmlsyn.htm, ``9.3 Name''  */
      if (!strchr ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.", *p))
        *p = '-';
      p++;
    }
  p = tem;
  /* First character can only be a letter.  */
  if (!strchr ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", *p))
    *p = 'i';
  return tem;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void xml_insert_docbook_image ( char *  name_arg)
void xml_insert_element ( int  elt,
int  arg 
)
void xml_insert_entity ( char *  entity_name)
void xml_insert_footnote ( char *  note)
void xml_insert_indexentry ( char *  entry,
char *  node 
)
void xml_insert_indexterm ( char *  indexterm,
char *  index 
)
void xml_insert_quotation ( char *  type,
int  arg 
)
void xml_open_section ( int  level,
char *  name 
)
void xml_process_defun_args ( char **  defun_args,
int  auto_var_p 
)
void xml_start_menu_entry ( char *  tem)
void xml_synindex ( char *  from,
char *  to 
)

Variable Documentation

Definition at line 537 of file xml.c.

Definition at line 533 of file xml.c.

Definition at line 532 of file xml.c.

Definition at line 531 of file xml.c.

Definition at line 530 of file xml.c.

Definition at line 34 of file xml.c.

Definition at line 522 of file xml.c.

Definition at line 1756 of file xml.c.

Definition at line 524 of file xml.c.

Definition at line 526 of file xml.c.

char* xml_node_id

Definition at line 527 of file xml.c.

Definition at line 518 of file xml.c.

Definition at line 528 of file xml.c.