[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: replacing a string value - copy-of

Subject: Re: replacing a string value - copy-of
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 30 Nov 2001 00:20:45 +0100
Re:  replacing a string value - copy-of
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.