Trying to use xmllint on a profile

Dermot Bradley bradley at tangram.nildram.co.uk
Sun Feb 29 12:20:55 PST 2004


I'm trying to use xmllint to vet a working profile I have. I'm calling it
as follows:

   xmllint --debug --noent --xinclude --postvalid --valid build-eyes.xml

and the file build-eyes.xml contains:

   <?xml version="1.0?>
   <!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>

When I run the above xmllint command I get:

build-eyes.xml:4: element alfs: validity error : No declaration for
attribute xmlns:xi of element alfs
<alfs version="3.1" xmlns:xi="http://www.w3.org/2001/XInclude">
                                                              ^
build-eyes.xml:6: element include: validity error : No declaration for
attribute href of element include
<xi:include href="base.xml"/>

Any suggestions?




More information about the alfs-discuss mailing list