[opensuse-autoinstall] xmllint autoinst.xml
Is the following supposed to work? % xmllint --noout --relaxng \ /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml Cheers /Lars -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Hello! Anybody out there? Lars Stavholm wrote:
Is the following supposed to work?
% xmllint --noout --relaxng \ /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml
Or, what is the proper way to validate the autoinst.xml file? Failing that, is there a way to validate the autoinst.xml file? If not, why is it mentioned in the doco at all? Give me a clue as to what's going on here? Anyone? /L -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tuesday 03 April 2007 10:37, Lars Stavholm wrote:
Is the following supposed to work?
% xmllint --noout --relaxng \ /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml
yes, that should work. But because you ask, I assume you have hit a problem with that? :) SUSE Linux version? -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Uwe Gansert wrote:
On Tuesday 03 April 2007 10:37, Lars Stavholm wrote:
Is the following supposed to work?
% xmllint --noout --relaxng \ /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml
yes, that should work. But because you ask, I assume you have hit a problem with that? :) SUSE Linux version?
openSUSE 10.2. I get: % xmllint --noout --relaxng \ /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml autoinst.xml:4: element bootloader: Relax-NG validity error : Element profile has extra content: bootloader autoinst.xml fails to validate In my autoinst.xml, the boot loader section is the first section under <profile>, then comes <scripts> etc. If I remove the boot loader section, xmllint will complain about the next section, <scripts>, If I remove <scripts>, it will complain about the next section, <firewall>, etc. I'm obviously doing something wrong here? Please advice /Lars -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thursday 05 April 2007 13:34, Lars Stavholm wrote:
I'm obviously doing something wrong here?
yes, I saw that too, that xmllint often is not that useful. It's just an indicator of ok/false. Try to use jing instead: http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/no... That beast has it's flaws too but at least it throws more useful error messages. /usr/bin/jing >&2 -c /usr/share/YaST2/schema/autoyast/rnc/profile.rnc my.xml sometimes it throws errors like "attribute type not allowed here" that's a bug in jing an can be ignored. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Uwe Gansert wrote:
On Thursday 05 April 2007 13:34, Lars Stavholm wrote:
I'm obviously doing something wrong here?
yes, I saw that too, that xmllint often is not that useful. It's just an indicator of ok/false. Try to use jing instead: http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/no... That beast has it's flaws too but at least it throws more useful error messages.
/usr/bin/jing >&2 -c /usr/share/YaST2/schema/autoyast/rnc/profile.rnc my.xml
sometimes it throws errors like "attribute type not allowed here" that's a bug in jing an can be ignored.
OK, thanks, I' try that. /Lars -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Lars Stavholm
-
Uwe Gansert