Thanks much. I have written something similar to this and seems to be working as of now. Appreciate your help. Abhi
--- "J.Pietschmann" <[EMAIL PROTECTED]> wrote: > Abhijit Junnare wrote: > > So I want to translate all the content that comes > > under the <A Caps="Yes"> element to uppercase > meaning > > including its children elements <B> <C> and <D> > > Using parameter: > <xsl:template match="[EMAIL PROTECTED]'Yes']"> > <xsl:apply-templates> > <xsl:with-param name="Caps" select="Yes"/> > </xsl:apply-templates> > </xsl:template> > > <xsl:template match="B|C|D"> > <xsl:param name="Caps"/> > <xsl:apply-templates> > <xsl:with-param name="Caps" select="$Caps"/> > </xsl:apply-templates> > </xsl:template> > > <xsl:template match="text()"> > <xsl:param name="Caps"/> > <xsl:choose> > <xsl:when test="$Caps='Yes'"> > <xsl:value-of > select="translate(.,$lower,$upper)"/> > </xsl:when> > <xsl:otherwise> > <xsl:value-of select="."/> > </xsl:otherwise> > </xsl:choose> > </xsl:template> > > Beware: untested. > > J.Pietschmann > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
