Subject: Re: [xsl] How to change element nodes cases? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 30 Mar 2003 21:58:43 -0500 |
How can I change this form: <customer> Michael </customer> to <Customer> Michael </Customer>
<xsl:template match="customer"> <Customer> <xsl:copy-of select="@*"/> <xsl:copy-of select="node()"/> </Customer> </xsl:template>
<xsl:template match="@*|node()"><!--node identity transform--> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="customer"> <Customer> <xsl:apply-templates select="@*|node()"/> </Customer> </xsl:template> ... other node templates follow...
-- Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO North America: June 16-20, 2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-10-1 Practical Formatting Using XSL-FO Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to change element nodes c, Michael Liwanag | Thread | RE: [xsl] How to change element nod, Americo Albuquerque |
[xsl] Running server-side XSLT pars, Frankie Roberto | Date | Re: [xsl] Running server-side XSLT , G. Ken Holman |
Month |