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

Re: String replacement in included content

Subject: Re: String replacement in included content
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 12 Oct 2005 09:38:27 +0100
Re:  String replacement in included content
  Sigh. I was afraid that this would be the answer. My immediate reaction 
  is horror,
  but maybe this wouldn't be too bad to implement. I don't have too many 
  templates
  that will get matched inside the component processing.

since you are already using node-set it's probably simpler to do it in a
second pass, that only does this.

so 
<xsl:variable name="x">
<xsl:apply-templates/><!-- whatever you were doing before -->
</xsl:variable>
<xsl:apply-templates mode="r" select="x:node-set($x)"/>



<xsl:template match="*" mode="r">
<xsl:copy>
<xsl:apply-templates seelct="@*|node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="@*" mode="r">
 <xsl:attribute name="{name()}">
  <xsl:value-of select="x:replace(...

<xsl:template match="text()" mode="r">
  <xsl:value-of select="x:replace(...


  

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.