[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: lowercasing all attributes...
Martijn wrote:
I'd like to lowercase a document's attributes through <xsl:apply-templates select="???"> I'm not sure I fully understand your question, but anyway if you want to lowercase all attributes values, you can do it this way: <xsl:template match="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/> </xsl:attribute> </xsl:template> I f you wanna lowercase attributes' names, try this one: <xsl:template match="@*"> <xsl:attribute name="{translate(name(), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template> -- Oleg Tkachenko Multiconn International, Israel XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|