Never commit without running "make tests" :-( fix a couple of stupidities

* valid.c SAX.c: Never commit without running "make tests" :-(
  fix a couple of stupidities in the previous commit
* result/*: a few changes in some attribute order result of previous
  commit.
Daniel
This commit is contained in:
Daniel Veillard 2002-03-25 12:10:14 +00:00
parent d85f4f437c
commit 6f4561a49c
7 changed files with 16 additions and 11 deletions

View File

@ -1,3 +1,10 @@
Mon Mar 25 13:08:21 CET 2002 Daniel Veillard <daniel@veillard.com>
* valid.c SAX.c: Never commit without running "make tests" :-(
fix a couple of stupidities in the previous commit
* result/*: a few changes in some attribute order result of previous
commit.
Mon Mar 25 11:46:05 CET 2002 Daniel Veillard <daniel@veillard.com>
* valid.c SAX.c: fixed bug #76168, attribute redeclared in

3
SAX.c
View File

@ -1303,7 +1303,8 @@ startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
}
} else {
while ((att != NULL) && (value != NULL)) {
if ((att[0] != 'x') || (att[1] != 'm') || (att[2] != 'l'))
if ((att[0] != 'x') || (att[1] != 'm') || (att[2] != 'l') ||
(att[3] != 'n') || (att[4] != 's'))
attribute(ctxt, att, value);
/*

View File

@ -1,2 +1,2 @@
<?xml version="1.0"?>
<diagram xml:lang="en" xml:link="simple" xml:space="preserve" testattr="test"/>
<diagram testattr="test" xml:lang="en" xml:link="simple" xml:space="preserve"/>

View File

@ -1,2 +1,2 @@
<?xml version="1.0"?>
<diagram xml:lang="en" xml:link="simple" xml:space="preserve" testattr="test"/>
<diagram testattr="test" xml:lang="en" xml:link="simple" xml:space="preserve"/>

View File

@ -3365,7 +3365,7 @@ Ravi Sethi, and Jeffrey D. Ullman.
<emph>Compilers: Principles, Techniques, and Tools</emph>.
Reading: Addison-Wesley, 1986, rpt. corr. 1988.</bibl>
<bibl xml-link="simple" id="Berners-Lee" key="Berners-Lee et al.">
<bibl id="Berners-Lee" xml-link="simple" key="Berners-Lee et al.">
Berners-Lee, T., R. Fielding, and L. Masinter.
<emph>Uniform Resource Identifiers (URI): Generic Syntax and
Semantics</emph>.
@ -3391,21 +3391,21 @@ Bericht 38, Oktober 1991.
Comparison of SGML and XML. See
<loc href="http://www.w3.org/TR/NOTE-sgml-xml-971215">http://www.w3.org/TR/NOTE-sgml-xml-971215</loc>.
</bibl>
<bibl xml-link="simple" id="RFC1738" key="IETF RFC1738">
<bibl id="RFC1738" xml-link="simple" key="IETF RFC1738">
IETF (Internet Engineering Task Force).
<emph>RFC 1738: Uniform Resource Locators (URL)</emph>,
ed. T. Berners-Lee, L. Masinter, M. McCahill.
1994.
</bibl>
<bibl xml-link="simple" id="RFC1808" key="IETF RFC1808">
<bibl id="RFC1808" xml-link="simple" key="IETF RFC1808">
IETF (Internet Engineering Task Force).
<emph>RFC 1808: Relative Uniform Resource Locators</emph>,
ed. R. Fielding.
1995.
</bibl>
<bibl xml-link="simple" id="RFC2141" key="IETF RFC2141">
<bibl id="RFC2141" xml-link="simple" key="IETF RFC2141">
IETF (Internet Engineering Task Force).
<emph>RFC 2141: URN Syntax</emph>,
ed. R. Moats.

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "dtds/xhtml1-strict.dtd">
<?xml-stylesheet href="W3C-PR.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>XHTML 1.0: The Extensible HyperText Markup
Language</title>

View File

@ -3382,9 +3382,6 @@ xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
if ((elem == NULL) || (elem->name == NULL)) return(0);
if ((attr == NULL) || (attr->name == NULL)) return(0);
if (xmlStrEqual(attr->name, "lang")) {
printf("hello\n");
}
if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) {
xmlChar qname[500];
snprintf((char *) qname, sizeof(qname), "%s:%s",