src/chxj_chtml20.c
static char *
s_chtml20_start_body_tag(void *pdoc, Node *node) 
{
  chtml20_t   *chtml20;
  Doc         *doc;
  request_rec *r;
  Attr        *attr;

  chtml20 = GET_CHTML20(pdoc);
  doc     = chtml20->doc;
  r       = doc->r;

  W_L("<body");
  /*--------------------------------------------------------------------------*/
  /* Get Attributes                                                           */
  /*--------------------------------------------------------------------------*/
  for (attr = qs_get_attr(doc,node);
       attr;
       attr = qs_get_next_attr(doc,attr)) {
    char *name = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    switch(*name) {
    case 'b':
    case 'B':
      if (strcasecmp(name, "bgcolor") == 0 && value && *value != 0) {
        /*----------------------------------------------------------------------*/
        /* CHTML 2.0                                                            */
        /*----------------------------------------------------------------------*/
        W_L(" bgcolor=\"");
        W_V(value);
        W_L("\"");
      }
      break;

    case 't':
    case 'T':
      if (strcasecmp(name, "text") == 0 && value && *value != 0) {
        /*----------------------------------------------------------------------*/
        /* CHTML 2.0                                                            */
        /*----------------------------------------------------------------------*/
        W_L(" text=\"");
        W_V(value);
        W_L("\"");
      }
      break;

    case 'l':
    case 'L':
      if (strcasecmp(name, "link") == 0 && value && *value != 0) {
        /*----------------------------------------------------------------------*/
        /* CHTML 2.0                                                            */
        /*----------------------------------------------------------------------*/
        W_L(" link=\"");
        W_V(value);
        W_L("\"");
      }
      break;

    case 'a':
    case 'A':
      if (strcasecmp(name, "alink") == 0) {
        /*----------------------------------------------------------------------*/
        /* CHTML 4.0                                                            */
        /*----------------------------------------------------------------------*/
        /* ignore */
      }
      break;

    case 'v':
    case 'V':
      if (strcasecmp(name, "vlink") == 0) {
        /*----------------------------------------------------------------------*/
        /* CHTML 4.0                                                            */
        /*----------------------------------------------------------------------*/
        /* ignore */
      }
      break;

    default:
      break;
    }
  }
  W_L(">");

  return chtml20->out;
}
/**
 * It is a handler who processes the BODY tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The BODY tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the BODY tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The BODY tag node is specified.
@return The conversion result is returned.
It is a handler who processes the BODY tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The BODY tag node is specified . @return The conversion result is returned .
static char *
s_chtml20_start_body_tag(void *pdoc, Node *node) 
{
  chtml20_t   *chtml20;
  Doc         *doc;
  request_rec *r;
  Attr        *attr;
  chtml20 = GET_CHTML20(pdoc);
  doc     = chtml20->doc;
  r       = doc->r;
  W_L("<body");
  for (attr = qs_get_attr(doc,node);
       attr;
       attr = qs_get_next_attr(doc,attr)) {
    char *name = qs_get_attr_name(doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    switch(*name) {
    case 'b':
    case 'B':
      if (strcasecmp(name, "bgcolor") == 0 && value && *value != 0) {
        W_L(" bgcolor=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 't':
    case 'T':
      if (strcasecmp(name, "text") == 0 && value && *value != 0) {
        W_L(" text=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'l':
    case 'L':
      if (strcasecmp(name, "link") == 0 && value && *value != 0) {
        W_L(" link=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'a':
    case 'A':
      if (strcasecmp(name, "alink") == 0) {
      }
      break;
    case 'v':
    case 'V':
      if (strcasecmp(name, "vlink") == 0) {
      }
      break;
    default:
      break;
    }
  }
  W_L(">");
  return chtml20->out;
}
static char * s_chtml20_start_body_tag ( void * pdoc , Node * node ) { chtml20_t * chtml20 ; Doc * doc ; request_rec * r ; Attr * attr ; chtml20 = GET_CHTML20 ( pdoc ) ; doc = chtml20 -> doc ; r = doc -> r ; W_L ( " " ) ; for ( attr = qs_get_attr ( doc , node ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; switch ( * name ) { case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 ) { } break ; default : break ; } } W_L ( " " ) ; return chtml20 -> out ; }
It is a handler who processes the BODY tag.
It is a handler who processes the BODY tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* CHTML 2.0                                                            */ /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* CHTML 2.0                                                            */ /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* CHTML 2.0                                                            */ /*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/ /* CHTML 4.0                                                            */ /*----------------------------------------------------------------------*/ /* ignore */ /*----------------------------------------------------------------------*/ /* CHTML 4.0                                                            */ /*----------------------------------------------------------------------*/ /* ignore */