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]



Reply via email to