src/chxj_xhtml_mobile_1_0.c
/**
 * It is a handler who processes the META tag.
 *
 * @param pdoc  [i/o] The pointer to the XHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The META tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the META tag.
@param pdoc  [i/o] The pointer to the XHTML structure at the output
destination is specified.
@param node   [i]   The META tag node is specified.
@return The conversion result is returned.
It is a handler who processes the META tag . @param pdoc [ i / o ] The pointer to the XHTML structure at the output destination is specified . @param node [ i ] The META tag node is specified . @return The conversion result is returned .
static char *
s_xhtml_1_0_start_meta_tag(void *pdoc, Node *node) 
{
  xhtml_t       *xhtml = GET_XHTML(pdoc);
  Attr          *attr;
  Doc           *doc   = xhtml->doc;
  int           content_type_flag = 0;
  W_L("<meta");
  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);
    if (STRCASEEQ('n','N',"name", name) && value && *value) {
      W_L(" ");
      W_V(name);
      W_L("=\"");
      W_V(value);
      W_L("\"");
    }
    else if (STRCASEEQ('h','H',"http-equiv", name) && value && *value) {
      W_L(" ");
      W_V(name);
      W_L("=\"");
      W_V(value);
      W_L("\"");
      if (STRCASEEQ('c','C', "content-type", value)) {
        content_type_flag = 1;
      }
    }
    else if (STRCASEEQ('c','C',"content", name) && value && *value) {
      if (content_type_flag) {
        W_L(" ");
        W_V(name);
        W_L("=\"");
        W_L("text/html; charset=Windows-31J");
        W_L("\"");
      }
      else {
        W_L(" ");
        W_V(name);
        W_L("=\"");
        W_V(value);
        W_L("\"");
      }
    }
  }
  W_L(" />");
  return xhtml->out;
}
static char * s_xhtml_1_0_start_meta_tag ( void * pdoc , Node * node ) { xhtml_t * xhtml = GET_XHTML ( pdoc ) ; Attr * attr ; Doc * doc = xhtml -> doc ; int content_type_flag = 0 ; 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 ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , name ) && value && * value ) { W_L ( " " ) ; W_V ( name ) ; W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) && value && * value ) { W_L ( " " ) ; W_V ( name ) ; W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; if ( STRCASEEQ ( ' ' , ' ' , " " , value ) ) { content_type_flag = 1 ; } } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) && value && * value ) { if ( content_type_flag ) { W_L ( " " ) ; W_V ( name ) ; W_L ( " \" " ) ; W_L ( " " ) ; W_L ( " \" " ) ; } else { W_L ( " " ) ; W_V ( name ) ; W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } } } W_L ( " " ) ; return xhtml -> out ; }
It is a handler who processes the META tag.
It is a handler who processes the META tag .
/*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/