src/chxj_xhtml_mobile_1_0.c
/**
 * It is a handler who processes the HTML tag.
 *
 * @param pdoc  [i/o] The pointer to the XHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The HTML tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the HTML tag.
@param pdoc  [i/o] The pointer to the XHTML structure at the output
destination is specified.
@param node   [i]   The HTML tag node is specified.
@return The conversion result is returned.
It is a handler who processes the HTML tag . @param pdoc [ i / o ] The pointer to the XHTML structure at the output destination is specified . @param node [ i ] The HTML tag node is specified . @return The conversion result is returned .
static char *
s_xhtml_1_0_start_html_tag(void *pdoc, Node *node) 
{
  xhtml_t       *xhtml = GET_XHTML(pdoc);
  Attr          *attr;
  Doc           *doc   = xhtml->doc;
  W_L("<?xml version=\"1.0\" encoding=\"Windows-31J\"?>");
  W_NLCODE();
  W_L("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML Basic 1.0//EN\"");
  W_NLCODE();
  W_L(" \"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd\">");
  W_NLCODE();
  W_L("<html xmlns=\"http://www.w3.org/1999/xhtml\"");
  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('l','L',"lang", name)) {
      W_L(" xml:lang=\"");
      W_V(value);
      W_L("\"");
    }
    else if (STRCASEEQ('v','V',"version", name)) {
      W_L(" version=\"-//OPENWAVE//DTD XHTML Mobile 1.0//EN\"");
    }
  }
  W_L(">");
  return xhtml->out;
}
static char * s_xhtml_1_0_start_html_tag ( void * pdoc , Node * node ) { xhtml_t * xhtml = GET_XHTML ( pdoc ) ; Attr * attr ; Doc * doc = xhtml -> doc ; W_L ( " \" \" \" \" " ) ; W_NLCODE ( ) ; W_L ( " \" \" " ) ; W_NLCODE ( ) ; W_L ( " \" \" " ) ; W_NLCODE ( ) ; 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 ) ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } else if ( STRCASEEQ ( ' ' , ' ' , " " , name ) ) { W_L ( " \" \" " ) ; } } W_L ( " " ) ; return xhtml -> out ; }
It is a handler who processes the HTML tag.
It is a handler who processes the HTML tag .
/*--------------------------------------------------------------------------*/ /* Add XML Declare                                                          */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ /* Add DocType                                                              */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ /* start HTML tag                                                           */ /*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/ /* Get Attributes                                                           */ /*--------------------------------------------------------------------------*/