[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML -> XML

Subject: RE: XML -> XML
From: bryan.s.schnabel@xxxxxxxxxxxxxx
Date: Wed, 16 Aug 2000 13:40:46 -0700
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


Current Thread
  • XML -> XML
    • Jon Wynacht - Wed, 16 Aug 2000 10:52:55 -0700
      • <Possible follow-ups>
      • bryan . s . schnabel - Wed, 16 Aug 2000 13:40:46 -0700 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.