Re: [xml] Re: [xmlsec] Verifying error for proper xml document



On Thu, Apr 10, 2003 at 11:40:29AM -0700, Aleksey Sanin wrote:
The ID attribute value "1623...." in your file is not valid.
If I understand spec correctly, ID attribute starting from
a digit is *not* valid:

    http://www.w3.org/TR/REC-xml#sec-attribute-types
        ...
        Values of type *ID* must match the Name 
<http://www.w3.org/TR/REC-xml#NT-Name> production.
         ...

    http://www.w3.org/TR/REC-xml#NT-Name
        [5]  Name     ::= (Letter | '_' | ':') (NameChar)*  
[...]
[aleksey lsh arda]$ cat formatted.xml
<?xml version="1.0"?>
<!DOCTYPE test [
    <!ATTLIST PARes id ID #IMPLIED>
]>
<ThreeDSecure>
  <Message id="9bbda064e1d145738dd897becad0292e760df736">
    <PARes id="162354165">
      ....

  You're perfectly right that's bogus and cannot be used as an ID !

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]