Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 November 30th, 2004, 06:31 AM
Authorized User
Join Date: Nov 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT Transform

I wanted to try a windows forms style XSLT transform , which its code given at :
This is my first C# experience and it failed. Output xml file is not produced, yet no error is given.
When I build I get no error, but this warning:
System.Xml.Xsl.XslTransform.Transform(System.Xml.X Path.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.Xml.XmlWriter)' is obsolete: 'You should pass XmlResolver to Transform() method'

sourceDoc and xsltDoc variables are not bind to appropriate text boxes either, how does this code get appropriate files?

EDIT: I made it work, now it has 5 warnings but the program works.
Here are the two lines I added just before XPathDocument definitions in order to make it work:

XmlTextReader sourceDoc = new XmlTextReader(txtSource.Text);
XmlTextReader xsltDoc = new XmlTextReader(txtXslt.Text);

What is the reason, did the author posted in her site uncomplete code or it's about ver 1.0 and ver 1.1 incompability issue?

Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Time transform blackest XSLT 10 April 1st, 2008 03:07 AM
XSLT: ONE template to transform all the elements Behl_Neha XSLT 8 December 15th, 2007 07:31 PM
XML/XSLT Transform Error in ASP kwilliams Classic ASP XML 2 October 9th, 2007 02:26 AM
XSLT Transform - need assistance emartin24 XSLT 2 September 7th, 2006 12:38 PM
transform in xslt kgoldvas XSLT 1 January 24th, 2006 07:14 AM

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