Subject: RE: XML -> XML From: bryan.s.schnabel@xxxxxxxxxxxxxx Date: Wed, 16 Aug 2000 13:40:46 -0700 |
>take raw xml and keep it >in the same format, Like this <xsl:template match="Element1"> <Element1> <xsl:for-each select="@*"> <xsl:copy /> </xsl:for-each> <xsl:apply-templates/> </Element1> </xsl:template> >but maybe change an attribute, say: >date="some format" >to >date="some new format" I'm not sure of your intent, but this is a simple way: <xsl:template match="Element2"> <Element2 date ="{@date}-plus my specified string"> <xsl:apply-templates/> </Element2> </xsl:template> If you actually want to change something like date="mm-dd-yy" to date="dd-mm-yyyy" it's not so simple XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: XML -> XML, Jeni Tennison | Thread | Getting data to drop into separate , Paul Telesco |
Use of Parameters ...Help! :), Bill Shaw - EBCX | Date | RE: Using tags within tags, Jeni Tennison |
Month |