This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
switching to lower case during copy
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] switching to lower case during copy
- From: Mulberry Technologies List Owner<xsl-list-owner at lists dot mulberrytech dot com>
- Date: Fri, 21 Sep 2001 11:34:21 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
>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