# From: Daniel [mailto:daniel@kerozene.de] # Sent: Friday, February 11, 2005 5:32 AM # To: suse-autoinstall@suse.com # Subject: Re: AW: [suse-autoinstall] @import in XML file? # # # Thanks for your help, but it doesn´t seem to work for me. # I tried it via http but my xml isn´t accepted by YaST. # # I have seen this some days ago, thougt it was something like # "@import" ....? I'm using this successfully in my setup: <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"> ... ... <post-scripts config:type="list"> <script> <filename>get_username.sh</filename> <interpreter>shell</interpreter> <xinclude:include href="http://toolsgrp.corp.mxtr.net/autoinstall/scripts/get_username.xml" /> </script> </post-scripts> The file "scripts/get_username.xml" looks like this: <source> <![CDATA[#!/bin/sh /bin/chvt 3 exec < /dev/tty3 > /dev/tty3 ... ... /bin/chvt 1 ]]> </source> Basically, the key that I found is that the included XML file *must* have at least one XML tag enclosing it, or the parser will reject it.