Hi all, Does anybody know, which format of XML file should be to make it acceptable for XInclude? AutoYaST complains that "Premature end of data in tag profile line 3 " "could not load /partinfo.xml" But same time, xmllint parsing both files fine... I'm using following construct in autoyast.xml to get automatically generated partition layout: - 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"> <!--...... 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"> <drive> <device>/dev/hda</device> <initialize config:type="boolean">false</initialize> <partitions config:type="list"> <partition> <partition_nr config:type="integer">1</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">ext2</filesystem> <mount>/boot</mount> </partition> <partition> <partition_nr config:type="integer">2</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">swap</filesystem> <mount>swap</mount> </partition> <partition> <partition_nr config:type="integer">3</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> </partition> <partition> <partition_nr config:type="integer">5</partition_nr> <create config:type="boolean">false</create> <format config:type="boolean">true</format> <filesystem config:type="symbol">ext3</filesystem> <mount>/localdisk</mount> </partition> </partitions> </drive> </partitioning> </profile> - Cut - Where is error? Please, do not propose to use rules - these are useless if NFS is not accessible, unfortunately. And I not ready to make whole structure in initrd yet. -- Regards, Alexander Dubinin
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@suse.cz Drahobejlova 27 tel:+420-296542390 190 00 Praha 9, Czech Republic http://www.suse.cz
Thanks! Really, I've found solution few minutes after sent mail :) There is one more problem, I've found in my example - namespace should be specified in include file as well (In <partitioning />) Now it's working. -- Regards, Alexander Dubinin
participants (2)
-
Alexander Dubinin
-
Martin Vidner