Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Replace element text within xml >Thread Next - Re: Replace element text within xml Re: Replace element text within xmlTo: NULL Date: 9/2/2005 2:46:00 AM Thanks for both of your help. I tried the suggested solution, however there was a problem. It replaced the first <test-suite> element, but then output all of the xml between the elements as text, completely stripping out all of the following xml elements and attributes. I tried google, but all articles seem to assume a solid understanding of xslt, or contain the same content as www.dpawson.co.uk/xsl/sect2/identity.html. Thanks Dan "John Harrison" wrote: > John Harrison wrote: > > > > <xsl:template match="test-suite"> > > <xsl:attribute name="testsuite"> > > Apologies I meant xsl:element not xsl:attribute, same below too. > > > <xsl:value-of select="."/> > > </xsl:attribute> > > </xsl:template> > > > > <xsl:template match="test-case"> > > <xsl:attribute name="testcase"> > > <xsl:value-of select="."/> > > </xsl:attribute> > > </xsl:template> > > > > john > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
