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 03:26:21PM -0700, David Lutterkort wrote:

> > 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
> 
> This is very weird. The image.rng that's upstream has genericName
>           <define name='genericName'>
>             <data type='string'>
>               <param name="pattern">[A-Za-z0-9_.:/+-]+</param>
>             </data>
>           </define>
> When I run 'xmllint --relaxng image.rng --noout image.xml' I do get a
> validation failure when I put '<name>my vm</name>' in there.

Weird.

$ xmllint --version
xmllint: using libxml version 20631
   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1
FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv
ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug
Zlib 

(on Solaris). What about you?

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