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 April 23rd, 2009, 10:27 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

Using xsl:copy-of is useful for diagnostics because it tells you what data has been returned. It's hard to write correct XSLT/XPath code unless you know what the data looks like. The reason your code produces no output is almost certainly because the document returned by doc() differs in some subtle way from the structure assumed by your XSLT/XPath processing code.
Michael Kay
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Old April 23rd, 2009, 11:12 AM
Authorized User
Join Date: Mar 2009
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts

ahh I have it! The difference was in the namespace! The web service delivered a namespace back for the <Results> element that was slightly different to that used in the xsl file. Works now!

Thanks for your help

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying DOCTYPE in input to the output xml mrame XSLT 3 July 31st, 2008 04:26 PM
XSLT with output very similar to input sindrit XSLT 2 July 30th, 2007 08:38 AM
jsp - input/output - html?? tra77 JSP Basics 0 April 14th, 2006 04:35 AM
input:output file ct ASP.NET 1.0 and 1.1 Basics 1 September 27th, 2005 09:43 AM
Web Service HTML Output km0ti0n .NET Web Services 1 April 6th, 2004 11:54 AM

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