Subject: RE: [xsl] tag case conversion problems again From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Wed, 24 Jan 2001 09:35:38 -0000 |
> again. The conversion looks like it is working as I desired, > except that > attributes are being ommitted rather than lower cased. > <!-- When you match any element --> > <xsl:template match="*"> > <!-- Create the same element with a lowercase name --> > <xsl:element name="{translate(name(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ', > > 'abcdefghijklmnopqrstuvwxyz')}"> > <!-- Including any attributes it has and any child nodes --> > <xsl:apply-templates/> > </xsl:element> > </xsl:template> <xsl:apply-templates/> processes the children of the element, but not its attributes. Use <xsl:apply-templates select="node() | @*"/> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] tag case conversion probl, Eric van der Vlist | Thread | [xsl] org.apache.xalan.xslt.XSLProc, manisha |
RE: [xsl] function call and node te, Michael Kay | Date | Re: [xsl] xsl help, David Carlisle |
Month |