Hi, On Tuesday 09 December 2008, Christian Boltz wrote: > [...] > > > [...] > > > I found a working solution: > > > > > > <!-- messages, unless type="info" --> > > > <xsl:template match="message"> > > > <xsl:if test="@type != 'info'"> > > > > You can omit the xsl:if clause with a predicate in "match" to > > make it a bit more compact: > > > > <xsl:template match="[EMAIL PROTECTED]'info']"> > > ^ > Shouldn't it be "!=" instead of "="?
Ahh, you're right. > > Maybe you need a another template to deal with general message > > elements or with other message elements that contains other > > values in your @type attributes. I haven't tested it. With your > > given XML file both templates work. > > > > Well, it's a matter of style not of functionality. :) > > Then I'll keep the xsl:if ;-) and commit an updated patch2mail to > the buildservice later. Whatever you like. Just to show you another possibilitiy. :) Tom -- Thomas Schraitle ---------------------------------------------------------------------- SUSE LINUX GmbH >o) Documentation Specialist Maxfeldstrasse 5 /\\ 90409 Nuernberg _\_v http://en.opensuse.org/Documentation_Team http://developer.novell.com/wiki/index.php/Lessons_for_Lizards http://lizards.opensuse.org/author/thomas-schraitle/ --------------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
