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 -->
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 -->
<!--...... 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