Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: completely lost with XSL ... [Thread Next] Re: completely lost with XSL ...To: NULL Date: 11/3/2006 12:14:00 AM
> > >> Dhurandhar wrote:
> > >> > I just want to make a copy of a source xml into a
> > >> > result xml...
Google identity transformation.
> > >> > ...and change the values of attributes of certain
> > >> > elements.
<xsl:template match="certain-element/@attribute">
<xsl:attribute name="changed-attribute">
<xsl:value-of select="'changed value'"/>
</xsl:attribute>
</xsl:template>
> > >> > How do I write the stylesheet for this seemingly
> > >> > straightforward transformation?
Just as usual:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<!-- . . .the rest of it. . . -->
</xsl:stylesheet>
--
Pavel Lepin
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
