This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: replacing a string value - copy-of
- From: Jörg Heinicke <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 30 Nov 2001 00:20:45 +0100
- Subject: Re: [xsl] replacing a string value - copy-of
- References: <IHEIKOMBAPNGBMBJPAGMEEMNCKAA.frafi@augusta.de>
- Reply-to: xsl-list at lists dot mulberrytech dot com
You don't may copy it, use normal xsl-templates:
<xsl:template match="*|@*|text()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="sr">
<br/>
</xsl:template>
Because he first template is very general, you have to pay some attention on
side effects. But you can make empty templates for all elements, which
should not be processed:
<xsl:template match="not-to-process"/>
Regards,
Joerg
> Peter, I have a similar problem with copy-of.
> I copy a whole untouched html table into my xml tree, this table has a
> little different taggings in, for example <sr/> and I want to replace this
> after copying into <br/>. How could I do it, please give me also an
example.
>
> Franz
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list