On Fri, 2008-07-25 at 00:30 +0100, John Levon wrote: > 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 xmllint: using libxml version 20632 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 http://xmlsoft.org/news.html lists a bugfix for 2.6.32 about "regexp bug with '.' (Andrew Tosh)". The full entry from the ChangeLog is xmlregexp.c: apply patch from Andrew Tosh to fix behaviour when '.' is used in a posCharGroup That should explain the difference. David _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools