Subject: RE: [xsl] switching to lower case during copy From: "Corey Spitzer" <cspitzer@xxxxxxxxx> Date: Fri, 21 Sep 2001 11:10:43 -0500 |
use the translate() function.. <xsl:element name="translate({name}, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]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@xxxxxxxxxxxx> >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> >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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] switching to lower case durin, Mulberry Technologie | Thread | Re: [xsl] switching to lower case d, David Carlisle |
RE: [xsl] Position of a Child, Wendell Piez | Date | [xsl] trouble checking "cousins"of , Chris d'Aquin |
Month |