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 October 1st, 2008, 03:14 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

A few points:

(a) Your title is confusing. Your question is not about xsl:copy-of. When asking a new question, please start a new thread.

And when asking any question, please show your input, your desired output, your attempt at solving it, and any error messages.

(b) I don't know what you mean by a "block of text". XSLT operates on trees, not on text. Do you mean you want to remove the <ats:MyDataItem> element and all its descendant nodes?

(c) "Using a blank template" suggests that you have got the basic idea that a template like <xsl:template match="ats:MyDataItem"/> causes this element not to be copied to the result tree.

(d) "has prefix" suggests that your problem is with namespaces, or at least that you think it is. But since you haven't shown any code, I can't tell what you have done wrong.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old October 1st, 2008, 03:37 AM
Authorized User
 
Join Date: Jun 2008
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Michael,

Sorry for bumping on an old thread (which is not even mine) that has the same problem scenario.

I found the solution to my problem. I looked at this http://www.dpawson.co.uk/xsl/sect2/N5536.html#d7672e187 which I found through one of your responses in this forum too.

Thanks!






Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl:copy-of Issue DKatSSA BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 8 November 19th, 2008 05:18 PM
Copy one node to another in XSL hugoscp XML 5 September 14th, 2006 09:40 AM
Slightly modified xsl:copy-of arcuza XSLT 6 April 10th, 2006 04:53 AM
xsl:copy copies everywhere [email protected] XSLT 1 November 11th, 2005 07:44 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





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