RE: XML -> XML

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
  • 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 <=