Bug 220707

Summary: invalid autoyast configurations (DTD-invalid, documentation and resources obsolete)
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ulrich Windl <Ulrich.Windl>
Component: YaST2Assignee: Uwe Gansert <ug>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Windl 2006-11-14 09:18:01 UTC
The documentation for autoyast suggests to validate the XML configuration files against the DTD:

---- quote ----
2.2.  Format

The XML configuration format provides a consistent file structure, which is
easier to learn and remember when attempting to configure a new system.

Using XML, you can eliminate (nearly) all of the configuration file parsing and
error handling - an external XML parser can do that instead - (especially if it
is a validating parser). To make sure the control file is well-formatted and
that the syntax is valid, you can run the control file through a validating
parser before it is actually used for automatic installation. This is
especially required if you prefer to edit the profile manually.
---- end quote ----

However the DTD specified in the YaST-generated XML configuration files does not validate the XML file. Furthermore the namespaces mentioned in the XML configuration file (<profile xmlns="http://www.suse.com/1.0/yast2ns"
 xmlns:config="http://www.suse.com/1.0/configns">) do not exist (any more?).
The command "xmllint -dtdvalid /usr/share/autoinstall/dtd/profile.dtd autoyast.xml" fails.
Combined with the fact that settings in the XML file are silently ignored by autoinstall, this makes the feature rather useless.

The URL for current documentation is also obsolete:
"Updated documentation can always be found at the following URL: http://yast2.suse.com/autoinstall/"

Suggested first-step solution: Provide a current DTD for autoyast.
Comment 1 Uwe Gansert 2006-11-15 13:43:03 UTC
for 10.2 we switch from DTD to RNG and a lot of the schema files are already fixed. So with 10.2 we should have a better situation with XML file checking.
I'll fix the documentation.
Comment 2 Uwe Gansert 2006-11-29 12:14:21 UTC
docu changed