Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Replace element text within xml

From: DanKelley@-----------.---------.---
To: 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
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent