Improving <setenv>

Lee Saferite dsaferite at yahoo.co.uk
Fri Mar 22 14:54:57 PST 2002


So, I started fooling around with the DTD for alfs to see how it would look with a stage element.  How's this so look?


<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- root element -->
<!ELEMENT alfs (package | stage)*>
<!ATTLIST alfs version CDATA #REQUIRED>

<!-- is anything needed in the DTD to use Xincludes? -->

<!-- major container elements -->
<!ELEMENT package (packageinfo, (stage | copy | link | mkdir | move | remove | permissions | search_replace | execute | textdump | unpack | make | configure | patch)* )>

<!ELEMENT stage (stageinfo, (package | copy | link | mkdir | move | remove | permissions | search_replace | execute | textdump | unpack | make | configure | patch)* )>

<!-- info elements -->
<!ELEMENT packageinfo (name, version)> <!-- possibly others? -->
<!ELEMENT stageinfo (name, (version | base | user | group | chroot | setenv)? )>
<!ELEMENT name (#PCDATA)>
<!ELEMENT version (#PCDATA)>
<!ELEMENT base (#PCDATA)>
<!ELEMENT user (#PCDATA)>
<!ELEMENT group (#PCDATA)>
<!ELEMENT chroot (#PCDATA)>
<!ELEMENT setenv (variable*)> <!-- variable element would have 2 attribs and no elements -->
<!ATTLIST setenv mode (overwrite|append) "append">
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list