[XML-SIG] [ pyxml-Patches-571672 ] Entity names in sgmlop
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 20 Jun 2002 08:11:37 -0700
Patches item #571672, was opened at 2002-06-20 17:11
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=571672&group_id=6473
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Entity names in sgmlop
Initial Comment:
sgmlop handles entity names incorrectly in XML mode.
According to
http://www.w3.org/TR/2000/REC-xml-20001006#sec-references
(Rule [68]):
EntityRef ::= '&' Name ';'
and
http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name
(Rules [4], [5]):
Name ::= (Letter | '_' | ':') (NameChar)*
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
CombiningChar | Extender
So "-", "_" and ":" are allowed in entity names.
sgmlop currently uses (ISALNUM(*p) || *p == '.')
to test for legal characters inside entity names for
both modes (SGML and XML).
This patch adds "-", "_" and ":" to the set of allowed
characters (but only for XML mode).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=571672&group_id=6473