Re: [PATCH] Fix Relax-NG pattern matching

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

 



On Thu, Jul 24, 2008 at 01:46:32PM -0700, David Lutterkort wrote:

> Haven't checked myself, but are you sure that in the Relax-NG '.' and
> '+' retain their special meaning inside character classes ? In some

Yep:

xenbld:virt-convert $ grep '<name>' suse.hvm.virt-image.xml 
 <name>SUSE_Linux </name>
xenbld:virt-convert $ xmllint --relaxng doc/image.rng suse.hvm.virt-image.xml 2>&1  | grep 'Error validating'
xenbld:virt-convert $ vi doc/image.rng  # . -> \.
xenbld:virt-convert $ xmllint --relaxng doc/image.rng
suse.hvm.virt-image.xml 2>&1  | grep 'Error validating'
suse.hvm.virt-image.xml:3: element name: Relax-NG validity error : Error validating datatype string

> In any event, the '-' characters need to go at the very end of those
> character classes - that's definitely broken.

Are you sure about this?

      <param name="pattern">[A-Za-z0-9_\.\+\-:/]+</param>

...
       58 X     59 Y     5A Z     5B [     5C \     5D ]     5E ^    5F
...

$ grep '<name>' suse.hvm.virt-image.xml
 <name>SUSE_Linux-^</name>
$ xmllint --relaxng doc/image.rng suse.hvm.virt-image.xml 2>&1  | grep 'Error validating'
suse.hvm.virt-image.xml:3: element name: Relax-NG validity error : Error validating datatype string

It doesn't seem to be treating it as a range to me.

regards
john

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux