[opensuse-autoinstall] How to remove a section using XSLT?
Hi there... I m using a <ask> dialog on my autoyast file to ask the user for the desired profile. However, it will go into a loop (ask the same information again) when it's reloaded by autoyast. So far I managed to avoid the loop by removing the <ask-list> section before the XML is reloaded by crude means (sed). However, I really would like to use xsltproc to do it. What should I use on my XSL file to accomplish that? I tried this code: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> </xsl:template> <xsl:template match="ask-list"/> </xsl:stylesheet> But it appears to get confused by the "!DOCTYPE profile" and the main "profile" tags. If I remove those and add a generic tag, this stylesheet works. Any ideas? -- -- Erico -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Wednesday 10 February 2010 Erico Mendonça wrote:
I m using a <ask> dialog on my autoyast file to ask the user for the desired profile. However, it will go into a loop (ask the same information again) when it's reloaded by autoyast.
why? has your chosen profile the same ask-list again? -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Erico Mendonça
-
Uwe Gansert