Subject: [xsl] switching to lower case during copy From: Mulberry Technologies List Owner <xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 21 Sep 2001 11:34:21 -0400 |
>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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:element, Mike Brown | Thread | RE: [xsl] switching to lower case d, Corey Spitzer |
RE: [xsl] get parameter from xalan , Crowers, Steve | Date | [xsl] Font-family, Mulberry Technologie |
Month |