Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Transformation >Thread Next - Re: Transformation Re: TransformationTo: NULL Date: 5/14/2007 5:00:00 PM Kniffel wrote: > <xsl:if Sprache="Deutsch"> > WRITE SOMETHING > </xsl:if> > I can´t differ like this, because 'Sprache' is a invalid Attribut for > the 'xsl:if'-Element (Visual Studio is telling me that..) > Got some more tips? > > Is there a tutorial pointing on Attributes? The syntax and semantics of XSLT instructuions does not change whether you process attributes or elements and the syntax is <xsl:if test="expression"> so <xsl:if test="@Sprache = 'Deutsch'"> is what you probably want to check whether the attribute named 'Sprache' has the value 'Deutsch'. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
