[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: tag case conversion problems again

Subject: RE: tag case conversion problems again
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 24 Jan 2001 09:35:38 -0000
tag case
> again.  The conversion looks like it is working as I desired,
> except that
> attributes are being ommitted rather than lower cased.

>   <!-- When you match any element -->
>   <xsl:template match="*">
>     <!-- Create the same element with a lowercase name -->
>     <xsl:element name="{translate(name(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
>
> 'abcdefghijklmnopqrstuvwxyz')}">
>       <!-- Including any attributes it has and any child nodes -->
>       <xsl:apply-templates/>
>     </xsl:element>
>   </xsl:template>

<xsl:apply-templates/> processes the children of the element, but not its
attributes. Use <xsl:apply-templates select="node() | @*"/>

Mike Kay


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.