Mailinglist Archive: opensuse-autoinstall (101 mails)

< Previous Next >
Re: [suse-autoinstall] Problems with using XInclude tag:
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Thu, 23 Mar 2006 10:29:30 +0000 (UTC)
  • Message-id: <20060323102915.GA27437@xxxxxxxxxxxxxxxx>
On Wed, Mar 22, 2006 at 04:13:10PM -0700, Alexander Dubinin wrote:
> <?xml version="1.0"?>
> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
>
> <profile xmlns="http://www.suse.com/1.0/yast2ns";
> xmlns:config="http://www.suse.com/1.0/configns";
> xmlns:xinclude="http://www.w3.org/2001/XInclude";>
>
> <!--...... System configuration -->
>
> <xinclude:include href="/partinfo.xml" />
>
> <!--...... System configuration -->
>
> </profile>
> - Cut -
>
> And layout, generated by script, is:
>
> - Cut -
> <?xml version="1.0"?>
> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
> <profile xmlns="http://www.suse.com/1.0/yast2ns";
> xmlns:config="http://www.suse.com/1.0/configns";
> xmlns:xinclude="http://www.w3.org/2001/XInclude";>
> <partitioning config:type="list">
...
> </partitioning>
> </profile>
> - Cut -
>
> Where is error?

You end up with <profile><profile>...</profile></profile>. Remove
the profile tags from partinfo.xml.
Use xmllint --xinclude to validate against the schema.

--
Martin Vidner, YaST developer
SuSE CR, s.r.o. e-mail: mvidner@xxxxxxx
Drahobejlova 27 tel:+420-296542390
190 00 Praha 9, Czech Republic http://www.suse.cz

< Previous Next >
Follow Ups
References