Re: [opensuse-autoinstall] How to remove a section using XSLT?
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?
Oops. You're right. :)
Anyway, removing a section via XSLT could be useful later on. Do you have any ideas on that?
I dont think you need that very often but here is how you can solve that with xslt. The problem in your xslt file was the missing namespace (I called it "y" here) <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet· xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:y="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns" version="1.0"> · <xsl:template match="*|processing-instruction()|comment()"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="y:ask-list"> </xsl:template> </xsl:stylesheet> -- 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
On Mon, Feb 15, 2010 at 8:05 AM, Uwe Gansert <ug@suse.de> wrote:
I dont think you need that very often but here is how you can solve that with xslt. The problem in your xslt file was the missing namespace (I called it "y" here)
Thanks a lot! The XSLT has been properly archived for later use :) -- -- Erico -- 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