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 7:28:00 AM
Another problem with the attributes...
i would like to make an <xsl:if> with an attribute:
XML:
<Standardsprache Sprache=3D"Deutsch" Datei=3D"lang_german.xml" />
XSL:
<xsl:template match=3D"Standardsprache">
<h3>Standardsprache:</h3>
<p>
<xsl:if Sprache=3D"Deutsch">
WRITE SOMETHING
</xsl:if>
<xsl:if Sprache=3D"Englisch">
WRITE SOMETHING ELSE
</xsl:if>
</p>
<p>
Datei: <xsl:value-of select=3D"@Datei"/>
</p>
<br />
</xsl:template>
I can=B4t 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? I only can find tutorials,
where they all have these elements...
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
