[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: replacing nodes during xsl:copy-of
On 06/01/2011 13:52, Mark Anderson wrote:
Hi Guys It's a bit hard to guess what you mean by the above, as apply-templates can not take apply-templates of copy-of as children.
If I just use<apply-templates select="replace"> the replaced text is all in the wrong place in the output stream.
No need to do that, just do it in one pass, use the identity template (matching "*") so that most stuff gets copied, then have a template matching "replace" (which will have a higher priority) that does your replacements. the output of that template will be naturally inserted at the place corresponding to teh position of the replace element in the source. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|