[RFC] <group> element for DTD to support XInclude files

Dermot Bradley tangram at nildram.co.uk
Sun Mar 7 12:27:26 PST 2004


> CVS:
>
> support xml:base and xmlns:xi attributes on <alfs>
> support <include> element in <alfs>
> add <include> element
> add <packagegroup> element, with only <package> as an allowed child
> element
> support <packagegroup> in <alfs> and <stage>
> remove support for <alfs> child elements of <stage>, <then> and <else>
> remove support for <package> child elements from everywhere except
> <alfs>, <stage> and <packagegroup>

So with these changes in mind how should I rewrite my profiles?

Basically my profiles look like this at present:

File build-eyes.xml:

<!DOCTYPE alfs SYSTEM "ALFS.dtd" []>
<alfs version="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="base.xml"/>
<xi:include href="eyes.xml"/>
<xi:include href="finish.xml"/>
<xi:include href="initrd.xml"/>
</alfs>


File base.xml:

<!DOCTYPE alfs SYSTEM "ALFS.dtd" []>
<alfs version="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
<stage name="Base LFS">
  <xi: include href="base/lfs/lfs.xml"/>
</stage>
</alfs>


File base/lfs/lfs.xml:

<!DOCTYPE alfs SYSTEM "../../ALFS.dtd" [
<!ENTITY % general-entities SYSTEM "../entities/general">
%general-entities;
]>
<alfs syntax="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
<stage name="LFS part 1">
   <xi:include href="unpack-tarball.xml"/>
   <xi:include href="chown.xml"/>
   ...
   ...
   <xi:include href="glibc.xml"/>
</stage>
</alfs>


File base/lfs/glibc.xml:

<!DOCTYPE alfs SYSTEM "../../ALFS.dtd" [
<!ENTITY % general-entities SYSTEM "../entities/general">
%general-entities;
]>
<alfs syntax="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
<stage name="Glibc">
<stageinfo>
   <root>&LFS;</root>
</stageinfo>
<package name="glibc" version="&glibc-version;">
   <stage name="Unpacking Glibc">
...
...
</package>
</stage>
</alfs>




More information about the alfs-discuss mailing list