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]

RE: switching to lower case during copy


use the translate() function..
<xsl:element name="translate({name}, 'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ')

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Mulberry
Technologies List Owner
Sent: Friday, September 21, 2001 10:34 AM
To: xsl-list
Subject: [xsl] switching to lower case during copy


>From: "Nicholas Waltham" <info@nwaltham.com>
>To: <xsl-list@lists.mulberrytech.com>
>Subject: swithing to lower case during copy
>Date: Fri, 21 Sep 2001 10:37:26 +0200
>
>I have to convert an document from XML to HTML which contains some elements
>which are
>very similar to HTML - UL,OL,LI,P,DIV,PRE. It contains other elements which
>are quit different too.
>My understanding is that in well formed HTML, the tags and attributes are
in
>lower case, but in my DTD they are in upper case. I currently have the
>following template which copies through the tags and attributes:
>
><xsl:template match="UL|OL|LI|P|DIV|PRE">
><xsl:element name="{name()}">
><xsl:copy-of select="attribute::*[. != '']" />
><xsl:apply-templates/>
></xsl:element>
></xsl:template>
>
>How can I alter this to switch elements and attributes to lower case as the
>copy happens.
>
>Thanks,
>Nicholas Waltham



 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]