This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Error message when match=$variable


Thanks Jarno,

You're a legend,

Tim :)

> -----Original Message-----
> From: Jarno.Elovirta@nokia.com [mailto:Jarno.Elovirta@nokia.com]
> Sent: Tuesday, 4 September 2001 5:14 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] Error message when match=$variable
> 
> 
> <xsl:template match="*">
> <xsl:variable name="currentname" select="name()" />
> &lt;<xsl:value-of select="$currentname" />&gt;<xsl:value-of select="."
> />&lt;/<xsl:value-of select="$currentname" />&gt;
> <xsl:choose>
> 	<xsl:when test="not($german/*[name() = $currentname])">
> 		Please Translate
> 	</xsl:when>
> 	<xsl:otherwise>
> 		Already translated to <xsl:value-of
> select="$german/*[name() = $currentname]" />
> 	</xsl:otherwise>
> </xsl:choose>
> </xsl:template>
> 
> Jarno
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]