[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XML -> XML
>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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|