Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Output of copy-of into a variable? >Thread Next - Re: Output of copy-of into a variable? Re: Output of copy-of into a variable?To: NULL Date: 1/12/2009 12:42:00 PM Michael Skovfoged wrote:
> I want a node like this:
>
> <RmtInf><Ustrd>Invoices 123 and 321</Ustrd></RmtInf>
>
> to be output like this:
>
> SOMEINFO <RmtInf><Ustrd>Invoices 123 a
> OTHERINFO nd 321</Ustrd></RmtInf>
<xsl:template match="RmtInf">
<xsl:text>SOMEINFO </xsl:text>
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="Ustrd">
<xsl:copy>
<xsl:value-of select="concat(substring(., 1, 14), ' OTHERINFO
', substring(., 15))"/>
</xsl:copy>
</xsl:template>
> I am using Visual Studio .Net to make the transformation.
>
> Best,
> Michael
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
