home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
include
/
autoinstall
/
xml.ycp
< prev
Wrap
Text File
|
2006-11-29
|
4KB
|
127 lines
/**
* File: include/autoinstall/xml.ycp
* Package: Autoinstallation Configuration System
* Summary: XML handling
* Authors: Anas Nashif<nashif@suse.de>
*
* $Id: xml.ycp 29265 2006-03-22 14:48:47Z ug $
*/
{
import "XML";
/**
* Setup the profile tags
* @return void
*/
define void profileSetup()
``{
map doc = $[];
doc["listEntries"] =
$[
"users":"user",
"archives":"archive",
"schemes": "schema",
"fetchmail":"fetchmail_entry",
"aliases" : "alias",
"nfs_exports":"nfs_export",
"allowed":"allowed_clients",
"classes":"class",
"denyusers":"denyuser",
"allowusers":"allowuser",
"modules":"module_entry",
"trusteddomains": "trusteddomain",
"ppd_options": "ppd_option",
"inetd_services": "inetd_service",
"initrd_modules": "initrd_module",
"nfs":"nfs_entry",
"peers": "peer",
"netd_conf":"conf",
"raid":"device",
"hosts":"hosts_entry",
"names":"name",
"device_map": "device_map_entry",
"device_map_entry": "device",
"sections": "section",
"section": "section_entry",
"global": "global_entry",
"partitions":"partition",
"partitioning":"drive",
"selections":"selection",
"nis_servers":"nis_server",
"pre-scripts":"script",
"post-scripts":"script",
"chroot-scripts":"script",
"init-scripts":"script",
"local_domains":"domains",
"masquerade_other_domains":"domain",
"masquerade_users":"masquerade_user",
"virtual_users":"virtual_user",
"services":"service",
"modules_conf": "module_conf",
"interfaces":"interface",
"routes":"route",
"printers":"printer",
"sysconfig":"sysconfig_entry",
"shares":"share",
"options":"option",
"addons":"addon",
"groups":"group",
"packages":"package",
"remove-packages":"package",
"post-packages":"package",
"searchlist":"search",
"nameservers":"nameserver",
"region":"region_entry",
"printcap":"printcap_entry",
"lvm":"lvm_group",
"logical_volumes":"lv",
"volume_settings": "volume_entry",
"volume_entry": "volume_component",
"volume_component": "volume_component_settings",
"settings": "settings_entry",
"allowed_interfaces": "allowed_interface",
"children": "child",
"nis_other_domains": "nis_other_domain",
"files":"file",
"securenets": "securenet",
"maps_to_serve": "nis_map",
"slaves": "slave",
"smtp_auth":"smtp_auth_entry",
"patterns":"pattern",
"dont_merge":"element"
];
doc["cdataSections"] = ["source", "info_file", "file_contents", "pxelinux-config"];
doc["systemID"] = "/usr/share/autoinstall/dtd/profile.dtd";
doc["rootElement"] = "profile";
doc["nameSpace"] = "http://www.suse.com/1.0/yast2ns";
doc["typeNamespace"] = "http://www.suse.com/1.0/configns";
XML::xmlCreateDoc(`profile, doc);
return;
}
/*
* Setup XML for classes
* @return void
**/
define void classSetup()
``{
map doc = $[];
doc["listEntries"] = $[
"classes":"class"
];
doc["rootElement"] = "autoinstall";
doc["systemID"] = "/usr/share/autoinstall/dtd/classes.dtd";
doc["nameSpace"] = "http://www.suse.com/1.0/yast2ns";
doc["typeNamespace"] = "http://www.suse.com/1.0/configns";
XML::xmlCreateDoc(`class, doc);
return;
}
}