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   
Text File  |  2006-11-29  |  4KB  |  127 lines

  1. /**
  2.  * File:    include/autoinstall/xml.ycp
  3.  * Package:    Autoinstallation Configuration System
  4.  * Summary:    XML handling
  5.  * Authors:    Anas Nashif<nashif@suse.de>
  6.  *
  7.  * $Id: xml.ycp 29265 2006-03-22 14:48:47Z ug $
  8.  */
  9. {
  10.  
  11.     import "XML";
  12.  
  13.  
  14.     /**
  15.      * Setup the profile tags
  16.      * @return void
  17.      */
  18.     define void profileSetup()
  19.         ``{
  20.  
  21.             map doc = $[];
  22.             doc["listEntries"] =
  23.                 $[
  24.                 "users":"user",
  25.             "archives":"archive",
  26.             "schemes": "schema",
  27.             "fetchmail":"fetchmail_entry",
  28.             "aliases" : "alias",
  29.             "nfs_exports":"nfs_export",
  30.             "allowed":"allowed_clients",
  31.             "classes":"class",
  32.             "denyusers":"denyuser",
  33.             "allowusers":"allowuser",
  34.             "modules":"module_entry",
  35.             "trusteddomains": "trusteddomain",
  36.             "ppd_options": "ppd_option",
  37.             "inetd_services": "inetd_service",
  38.             "initrd_modules": "initrd_module",
  39.             "nfs":"nfs_entry",
  40.             "peers": "peer",
  41.             "netd_conf":"conf",
  42.             "raid":"device",
  43.             "hosts":"hosts_entry",
  44.             "names":"name",
  45.             "device_map": "device_map_entry",
  46.             "device_map_entry": "device",
  47.             "sections": "section",
  48.             "section": "section_entry",
  49.             "global": "global_entry",
  50.             "partitions":"partition",
  51.             "partitioning":"drive",
  52.             "selections":"selection",
  53.             "nis_servers":"nis_server",
  54.             "pre-scripts":"script",
  55.             "post-scripts":"script",
  56.             "chroot-scripts":"script",
  57.             "init-scripts":"script",
  58.             "local_domains":"domains",
  59.             "masquerade_other_domains":"domain",
  60.             "masquerade_users":"masquerade_user",
  61.             "virtual_users":"virtual_user",
  62.             "services":"service",
  63.             "modules_conf": "module_conf",
  64.             "interfaces":"interface",
  65.             "routes":"route",
  66.             "printers":"printer",
  67.             "sysconfig":"sysconfig_entry",
  68.             "shares":"share",
  69.             "options":"option",
  70.             "addons":"addon",
  71.             "groups":"group",
  72.             "packages":"package",
  73.             "remove-packages":"package",
  74.             "post-packages":"package",
  75.             "searchlist":"search",
  76.             "nameservers":"nameserver",
  77.             "region":"region_entry",
  78.             "printcap":"printcap_entry",
  79.             "lvm":"lvm_group",
  80.             "logical_volumes":"lv",
  81.             "volume_settings": "volume_entry",
  82.             "volume_entry": "volume_component",
  83.             "volume_component": "volume_component_settings",
  84.             "settings": "settings_entry",
  85.             "allowed_interfaces": "allowed_interface",
  86.             "children": "child",
  87.             "nis_other_domains": "nis_other_domain",
  88.             "files":"file",
  89.             "securenets": "securenet",
  90.             "maps_to_serve": "nis_map",
  91.             "slaves": "slave",
  92.             "smtp_auth":"smtp_auth_entry",
  93.             "patterns":"pattern",
  94.             "dont_merge":"element"
  95.                 ];
  96.  
  97.             doc["cdataSections"] = ["source", "info_file", "file_contents", "pxelinux-config"];
  98.             doc["systemID"] = "/usr/share/autoinstall/dtd/profile.dtd";
  99.             doc["rootElement"] =  "profile";
  100.             doc["nameSpace"] = "http://www.suse.com/1.0/yast2ns";
  101.             doc["typeNamespace"] = "http://www.suse.com/1.0/configns";
  102.  
  103.             XML::xmlCreateDoc(`profile, doc);
  104.             return;
  105.         }
  106.  
  107.     /*
  108.      * Setup XML for classes
  109.      * @return void
  110.      **/
  111.     define void classSetup()
  112.         ``{
  113.  
  114.             map doc = $[];
  115.             doc["listEntries"] =    $[
  116.                 "classes":"class"
  117.                 ];
  118.             doc["rootElement"] = "autoinstall";
  119.             doc["systemID"] = "/usr/share/autoinstall/dtd/classes.dtd";
  120.             doc["nameSpace"] = "http://www.suse.com/1.0/yast2ns";
  121.             doc["typeNamespace"] = "http://www.suse.com/1.0/configns";
  122.             XML::xmlCreateDoc(`class, doc);
  123.             return;
  124.         }
  125.  
  126. }
  127.