Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2005, 04:54 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default Need help with a search,convert and replace

This is continuing another thread under the same name whose form seems to have been corrupted.

As I surmised, your match="MRP_DETAIL" template is doing nothing other than processing one of the many fields. Let the MRP_DETAIL be matched by the default (identity) template, and define a template

<xsl:template match="NEED_DATE">
<xsl:copy>
  .. then you reformatting logic, but referring to the current element as "." rather than as "NEED_DATE" ...
</xsl:copy>
</xsl:template>

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old February 23rd, 2005, 05:09 PM
Authorized User
 
Join Date: Feb 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks Michael.... I knew I wasn't far off the mark... just needed a nudge past that last obstacle. (I'm heading out to pick up your book now.) :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and Replace a text in XML file AyatKh XML 17 May 23rd, 2012 09:05 PM
Search and Replace Using SQL Oracle i9 Corey Beginning PHP 1 April 28th, 2007 09:58 AM
Global Search&Replace Text in all fields in sql db buddyz SQL Server 2000 10 September 14th, 2006 08:24 AM
Need help with a search,convert and replace dhollis XSLT 4 February 23rd, 2005 03:26 PM
RTF Search & Replace PC User Access 0 June 16th, 2004 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.