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



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)*
   http://www.w3.org/TR/REC-xml#NT-Letter
       [84] Letter   ::= BaseChar | Ideographic
       [85] BaseChar ::= [#x0041-#x005A] | [#x0061-#x007A] | ....

   ascii('0') = 0x30
   ascii('9') = 0x39


Recently Daniel made some changes in the ID attributes processing
[xml] Release of libxml2-2.5.6
       ....

        * bug fixes: non-ASCII IDs,...
        ....

and I guess this broke your test.
Aleksey

P.S. Sorry for posting in two mailing lists but I want to make sure
I did not mis-understood the spec and I know how much Daniel likes
questions sent to his personal email :)




[aleksey lsh arda]$ cat formatted.xml
<?xml version="1.0"?>
<!DOCTYPE test [
   <!ATTLIST PARes id ID #IMPLIED>
]>
<ThreeDSecure>
 <Message id="9bbda064e1d145738dd897becad0292e760df736">
   <PARes id="162354165">
     ....



Arda Tekin wrote:

Aleksey,
Finally I verified the PARes.xml ! But I found that verificiation works with
following versions.

libxmlsec.dll                     v.0.0.14
libxslt.dll                       v.1.0.27
libxml2.dll                       v.2.5.4
iconv.dll
ssleay32.dll                      v.0.9.7
libeay32.dll                      v.0.9.7

but any other version combination does not work.
Thank you,
Arda







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