... via rules) because classes will overwrite the values written by rules. ????
What do you mean with "overwritten" . Autoyast will 'merge' the xml files. Depending of the section you might need a "dontmerge" entry.
Of course i hope that the XML file order is not important for autoyast in case Classes and rules are used BUT from my experience entries within EACH xml file MUST be in a correct order.
Sort example:
a.xml has
<user>
U1
</user>
<group>
G1
G2
</group>
b.xml has
<group>
G3
<group>
Since a.xml is not sorted and depending what you merge order is ( a.xml with b.xml or b.xml with a.xml ) the desired result
c.xml
<user>
U1
</user>
<group>
G1
G2
G3
</group>
Will not be given.
So ITS VERY IMPORTANT that entries within a xml file are sorted.
The reference has hints on how to to do a merge to check if the desired result is given.
Hth
Hajo
Reference
- (xsltproc) http://suse.gansert.net/?p=38
- http://www.suse.de/~ug/autoyast_doc/rulesandclass.html#merging
To sort a xml file i use the following: ( Provided by the Oliver Becker - The Author of the merge.xslt )
xsltproc --output ./MyFile.sorted.xml ./sortxslt ./MyFile.unsorted.xml
With sortxslt like:
<?xml version="1.0" encoding="UTF-8"?>