Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Output of copy-of into a variable?

From: Michael Skovfoged <michael@---------.--->
To: NULL
Date: 1/12/2009 11:18:00 PM
On 12 Jan., 12:42, Martin Honnen <mahotr...@yahoo.de> wrote:
> Michael Skovfoged wrote:
> > I want a node like this:
>
> > <RmtInf><Ustrd>Invoices 123 and 321</Ustrd></RmtInf>
>
> > to be output like this:
>
> > SOMEINFO =A0 =A0<RmtInf><Ustrd>Invoices 123 a
> > OTHERINFO =A0 nd 321</Ustrd></RmtInf>
>
> =A0 =A0<xsl:template match=3D"RmtInf">
> =A0 =A0 =A0<xsl:text>SOMEINFO =A0 =A0</xsl:text>
> =A0 =A0 =A0<xsl:copy>
> =A0 =A0 =A0 =A0<xsl:apply-templates/>
> =A0 =A0 =A0</xsl:copy>
> =A0 =A0</xsl:template>
>
> =A0 =A0<xsl:template match=3D"Ustrd">
> =A0 =A0 =A0<xsl:copy>
> =A0 =A0 =A0 =A0<xsl:value-of select=3D"concat(substring(., 1, 14), '&#10;=
OTHERINFO
> =A0 =A0', substring(., 15))"/>
> =A0 =A0 =A0</xsl:copy>
> =A0 =A0</xsl:template>
>
> > I am using Visual Studio .Net to make the transformation.
>
> > Best,
> > Michael
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen --- MVP XML
> =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/

Thanks Martin,

I have to write code that will work on any nodenames/trees so the
above code will not work for me.

Best,
Michael


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