This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Converting entities into string
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Converting entities into string
- From: Ingo Schildmann <ingoschi at web dot de>
- Date: Wed, 18 Jul 2001 15:59:20 +0200
- References: <3B5592EB.A989C4AA@mpdigital.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Wednesday 18 July 2001 15:45, you wrote:
> Hello list,
>
> i need to convert a xml-file into another xml-file. I ran into this
> problem:
>
> Source XML:
>
> <DESCR>
> some text
> <b>
> more text
> </b>
> even more text
> </DESCR>
>
> My Target XML should look like:
>
> <DESCR>
> some text
> <b>
> more text
> </b>
> even more text
> </DESCR>
>
> i tried <xsl:copy-of> which gave me a copy of the source. <xsl:copy>
> removed the <b>, but I want to keep the information about the <b>, just not
> as <b>
>
> In short: how can i convert the '<' and '>' into '<' and '>' easily?
>
>Or is there another solution?
<xsl:template match="b">
<b>
<xsl:apply-templates />
</b>
<xsl:template />
I hope that helps,
Ingo
--
Ingo Schildmann ingoschi@web.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list