mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
cleaned up the output of SAX tests, Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 17 15:50:00 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
|
* testSAX.c testHTML.c result/HTML/: cleanup of the output
|
||||||
|
of SAX tests
|
||||||
|
|
||||||
Mon Aug 14 13:56:33 EDT 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
Mon Aug 14 13:56:33 EDT 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
* Patch from Albert Chin-A-Young <china@thewrittenword.com>:
|
* Patch from Albert Chin-A-Young <china@thewrittenword.com>:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
SAX.setDocumentLocator()
|
SAX.setDocumentLocator()
|
||||||
SAX.startDocument()
|
SAX.startDocument()
|
||||||
SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, (null))
|
SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, )
|
||||||
SAX.comment( saved from url=(0016)http://intranet/ )
|
SAX.comment( saved from url=(0016)http://intranet/ )
|
||||||
SAX.comment( BEGIN Naviscope Javascript )
|
SAX.comment( BEGIN Naviscope Javascript )
|
||||||
SAX.startElement(html)
|
SAX.startElement(html)
|
||||||
@ -39,12 +39,12 @@ SAX.endElement(meta)
|
|||||||
SAX.endElement(head)
|
SAX.endElement(head)
|
||||||
SAX.startElement(body)
|
SAX.startElement(body)
|
||||||
SAX.startElement(frameset, border='false', cols='172,*', frameBorder='0', frameSpacing='0')
|
SAX.startElement(frameset, border='false', cols='172,*', frameBorder='0', frameSpacing='0')
|
||||||
SAX.startElement(frame, marginHeight='0', marginWidth='0', name='left', noResize='(null)', scrolling='no', src='doc2_files/side.htm', target='rtop')
|
SAX.startElement(frame, marginHeight='0', marginWidth='0', name='left', noResize, scrolling='no', src='doc2_files/side.htm', target='rtop')
|
||||||
SAX.endElement(frame)
|
SAX.endElement(frame)
|
||||||
SAX.startElement(frameset, rows='43,*')
|
SAX.startElement(frameset, rows='43,*')
|
||||||
SAX.startElement(frame, marginHeight='0', marginWidth='0', name='rtop', noResize='(null)', scrolling='no', src='doc2_files/top.htm', target='rbottom')
|
SAX.startElement(frame, marginHeight='0', marginWidth='0', name='rtop', noResize, scrolling='no', src='doc2_files/top.htm', target='rbottom')
|
||||||
SAX.endElement(frame)
|
SAX.endElement(frame)
|
||||||
SAX.startElement(frame, name='rbottom', noResize='(null)', src='doc2_files/contents.htm', target='_top')
|
SAX.startElement(frame, name='rbottom', noResize, src='doc2_files/contents.htm', target='_top')
|
||||||
SAX.endElement(frame)
|
SAX.endElement(frame)
|
||||||
SAX.endElement(frameset)
|
SAX.endElement(frameset)
|
||||||
SAX.startElement(noframes)
|
SAX.startElement(noframes)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
SAX.setDocumentLocator()
|
SAX.setDocumentLocator()
|
||||||
SAX.startDocument()
|
SAX.startDocument()
|
||||||
SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, (null))
|
SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, )
|
||||||
SAX.comment( saved from url=(0025)http://bp6.gamesquad.net/ )
|
SAX.comment( saved from url=(0025)http://bp6.gamesquad.net/ )
|
||||||
SAX.comment( BEGIN Naviscope Javascript )
|
SAX.comment( BEGIN Naviscope Javascript )
|
||||||
SAX.startElement(html)
|
SAX.startElement(html)
|
||||||
@ -344,7 +344,7 @@ SAX.startElement(p, align='center')
|
|||||||
SAX.startElement(a, href='http://www.gentus.com/')
|
SAX.startElement(a, href='http://www.gentus.com/')
|
||||||
SAX.error: error parsing attribute name
|
SAX.error: error parsing attribute name
|
||||||
SAX.error: htmlParseStartTag: problem parsing attributes
|
SAX.error: htmlParseStartTag: problem parsing attributes
|
||||||
SAX.startElement(img, align='bottom', alt='Taking a first look at the Abit Linux release called ', border='0', height='45', src='doc3_files/gentusbox.gif', width='70', Gentus='(null)')
|
SAX.startElement(img, align='bottom', alt='Taking a first look at the Abit Linux release called ', border='0', height='45', src='doc3_files/gentusbox.gif', width='70', Gentus)
|
||||||
SAX.error: Couldn't find end of Start Tag img
|
SAX.error: Couldn't find end of Start Tag img
|
||||||
SAX.characters(?.?>, 4)
|
SAX.characters(?.?>, 4)
|
||||||
SAX.endElement(a)
|
SAX.endElement(a)
|
||||||
@ -2591,7 +2591,7 @@ SAX.characters(
|
|||||||
SAX.endElement(br)
|
SAX.endElement(br)
|
||||||
SAX.characters(
|
SAX.characters(
|
||||||
, 14)
|
, 14)
|
||||||
SAX.endElement(font)
|
SAX.endElement(font)
|
||||||
SAX.startElement(center)
|
SAX.startElement(center)
|
||||||
SAX.startElement(iframe, frameBorder='0', height='60', marginHeight='0', marginWidth='0', noResize, scrolling='no', src='doc3_files/ad_iframe.htm', width='468')
|
SAX.startElement(iframe, frameBorder='0', height='60', marginHeight='0', marginWidth='0', noResize, scrolling='no', src='doc3_files/ad_iframe.htm', width='468')
|
||||||
SAX.startElement(a, href='http://ads.adflight.com/go_static.asp?asid=7708', target='_top')
|
SAX.startElement(a, href='http://ads.adflight.com/go_static.asp?asid=7708', target='_top')
|
||||||
@ -2758,7 +2758,7 @@ SAX.error: Opening and ending tag mismatch: b and noscript
|
|||||||
SAX.startElement(noscript)
|
SAX.startElement(noscript)
|
||||||
SAX.error: Opening and ending tag mismatch: b and noscript
|
SAX.error: Opening and ending tag mismatch: b and noscript
|
||||||
SAX.endElement(noscript)
|
SAX.endElement(noscript)
|
||||||
SAX.endElement(b)
|
SAX.endElement(b)
|
||||||
SAX.startElement(a, href='http://www.goto.com/d/search/ssn/?fromGIF=true', target='_blank')
|
SAX.startElement(a, href='http://www.goto.com/d/search/ssn/?fromGIF=true', target='_blank')
|
||||||
SAX.startElement(img, align='bottom', border='0', height='90', isMap, src='doc3_files/100x90.gif', width='100')
|
SAX.startElement(img, align='bottom', border='0', height='90', isMap, src='doc3_files/100x90.gif', width='100')
|
||||||
SAX.endElement(img)
|
SAX.endElement(img)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
SAX.setDocumentLocator()
|
SAX.setDocumentLocator()
|
||||||
SAX.startDocument()
|
SAX.startDocument()
|
||||||
SAX.internalSubset(html, -//IETF//DTD HTML//EN, (null))
|
SAX.internalSubset(html, -//IETF//DTD HTML//EN, )
|
||||||
SAX.startElement(html)
|
SAX.startElement(html)
|
||||||
SAX.characters(
|
SAX.characters(
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ SAX.characters(
|
|||||||
SAX.startElement(select, NAME='state')
|
SAX.startElement(select, NAME='state')
|
||||||
SAX.characters(
|
SAX.characters(
|
||||||
, 2)
|
, 2)
|
||||||
SAX.startElement(option, VALUE='WA', SELECTED='(null)')
|
SAX.startElement(option, VALUE='WA', SELECTED)
|
||||||
SAX.characters(WA
|
SAX.characters(WA
|
||||||
, 4)
|
, 4)
|
||||||
SAX.startElement(option, VALUE='AL')
|
SAX.startElement(option, VALUE='AL')
|
||||||
@ -442,7 +442,7 @@ SAX.error: htmlParseEntityRef: expecting ';'
|
|||||||
SAX.error: htmlParseEntityRef: expecting ';'
|
SAX.error: htmlParseEntityRef: expecting ';'
|
||||||
SAX.error: htmlParseEntityRef: expecting ';'
|
SAX.error: htmlParseEntityRef: expecting ';'
|
||||||
SAX.error: htmlParseEntityRef: expecting ';'
|
SAX.error: htmlParseEntityRef: expecting ';'
|
||||||
SAX.startElement(option, value='http://search.hotwired.com/search97/s97.vts?Action=FilterSearch&Filter=docs_filter.hts&ResultTemplate=vignette.hts&Collection=vignette&QueryMode=Internet&Query=', selected='(null)')
|
SAX.startElement(option, value='http://search.hotwired.com/search97/s97.vts?Action=FilterSearch&Filter=docs_filter.hts&ResultTemplate=vignette.hts&Collection=vignette&QueryMode=Internet&Query=', selected)
|
||||||
SAX.characters(Wired News, 10)
|
SAX.characters(Wired News, 10)
|
||||||
SAX.endElement(option)
|
SAX.endElement(option)
|
||||||
SAX.characters(
|
SAX.characters(
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<title>my title</title>
|
<title>my title</title>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<title>my title</title>
|
<title>my title</title>
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<title>my title</title>
|
<title>my title</title>
|
||||||
|
28
testHTML.c
28
testHTML.c
@ -143,20 +143,15 @@ void
|
|||||||
internalSubsetDebug(void *ctx, const xmlChar *name,
|
internalSubsetDebug(void *ctx, const xmlChar *name,
|
||||||
const xmlChar *ExternalID, const xmlChar *SystemID)
|
const xmlChar *ExternalID, const xmlChar *SystemID)
|
||||||
{
|
{
|
||||||
/* xmlDtdPtr externalSubset; */
|
fprintf(stdout, "SAX.internalSubset(%s,", name);
|
||||||
|
if (ExternalID == NULL)
|
||||||
fprintf(stdout, "SAX.internalSubset(%s, %s, %s)\n",
|
fprintf(stdout, " ,");
|
||||||
name, (ExternalID == NULL) ? "(null)" : ExternalID,
|
else
|
||||||
(SystemID == NULL) ? "(null)" : SystemID);
|
fprintf(stdout, " %s,", ExternalID);
|
||||||
|
if (SystemID == NULL)
|
||||||
/***********
|
fprintf(stdout, " )\n");
|
||||||
if ((ExternalID != NULL) || (SystemID != NULL)) {
|
else
|
||||||
externalSubset = xmlParseDTD(ExternalID, SystemID);
|
fprintf(stdout, " %s)\n", SystemID);
|
||||||
if (externalSubset != NULL) {
|
|
||||||
xmlFreeDtd(externalSubset);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
***********/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -372,8 +367,9 @@ startElementDebug(void *ctx, const xmlChar *name, const xmlChar **atts)
|
|||||||
fprintf(stdout, "SAX.startElement(%s", (char *) name);
|
fprintf(stdout, "SAX.startElement(%s", (char *) name);
|
||||||
if (atts != NULL) {
|
if (atts != NULL) {
|
||||||
for (i = 0;(atts[i] != NULL);i++) {
|
for (i = 0;(atts[i] != NULL);i++) {
|
||||||
fprintf(stdout, ", %s='", atts[i++]);
|
fprintf(stdout, ", %s", atts[i++]);
|
||||||
fprintf(stdout, "%s'", (atts[i] == NULL) ? "(null)" : atts[i]);
|
if (atts[i] != NULL)
|
||||||
|
fprintf(stdout, "='%s'", atts[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stdout, ")\n");
|
fprintf(stdout, ")\n");
|
||||||
|
25
testSAX.c
25
testSAX.c
@ -142,19 +142,15 @@ void
|
|||||||
internalSubsetDebug(void *ctx, const xmlChar *name,
|
internalSubsetDebug(void *ctx, const xmlChar *name,
|
||||||
const xmlChar *ExternalID, const xmlChar *SystemID)
|
const xmlChar *ExternalID, const xmlChar *SystemID)
|
||||||
{
|
{
|
||||||
/* xmlDtdPtr externalSubset; */
|
fprintf(stdout, "SAX.internalSubset(%s,", name);
|
||||||
|
if (ExternalID == NULL)
|
||||||
fprintf(stdout, "SAX.internalSubset(%s, %s, %s)\n",
|
fprintf(stdout, " ,");
|
||||||
name, ExternalID, SystemID);
|
else
|
||||||
|
fprintf(stdout, " %s,", ExternalID);
|
||||||
/***********
|
if (SystemID == NULL)
|
||||||
if ((ExternalID != NULL) || (SystemID != NULL)) {
|
fprintf(stdout, " )\n");
|
||||||
externalSubset = xmlParseDTD(ExternalID, SystemID);
|
else
|
||||||
if (externalSubset != NULL) {
|
fprintf(stdout, " %s)\n", SystemID);
|
||||||
xmlFreeDtd(externalSubset);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
***********/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -371,7 +367,8 @@ startElementDebug(void *ctx, const xmlChar *name, const xmlChar **atts)
|
|||||||
if (atts != NULL) {
|
if (atts != NULL) {
|
||||||
for (i = 0;(atts[i] != NULL);i++) {
|
for (i = 0;(atts[i] != NULL);i++) {
|
||||||
fprintf(stdout, ", %s='", atts[i++]);
|
fprintf(stdout, ", %s='", atts[i++]);
|
||||||
fprintf(stdout, "%s'", atts[i]);
|
if (atts[i] != NULL)
|
||||||
|
fprintf(stdout, "%s'", atts[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(stdout, ")\n");
|
fprintf(stdout, ")\n");
|
||||||
|
Reference in New Issue
Block a user