[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



