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]
Other format: [Raw text]

Re: lowercasing all attributes...


maybe this would work for you:
    <xsl:template match="*">
       <xsl:copy>
          <xsl:apply-templates select="@*" />

          <xsl:apply-templates />
       </xsl:copy>
    </xsl:template>

    <xsl:template match="@*">
       <xsl:attribute name="{name()}">
          <xsl:value-of 
select="translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')" 
/>
       </xsl:attribute>
    </xsl:template>
At 03:02 PM 1/27/02 -0800, you wrote:
>Hi,
>
>I'd like to lowercase a document's attributes through <xsl:apply-templates
>select="???">
>
>I know it's translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
>'abcdefghijklmnopqrstuvwxyz') but how 'bout the template match pattern and
>the select for apply-templates ??
>
>thanks!
>
>Martijn
>
>
>
>  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]