The member of XslTransform you used is obsolete (or has been deprecated in
oldspeak)...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic10.asp

The new version includes an argument for a XmlResolver...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic11.asp

XmlResolver as the name implies resolves external document references.  If
you have none, simply supply null for the argument...

objXsl.Transform( objDataDocument, null, Response.OutputStream, null );

HTH,

Dean Fiala
-----------------------------
Very Practical Software, Inc.
http://www.vpsw.com/links.aspx



-----Original Message-----
From: scaevola637 [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 2:30 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] XMLRESOLVER


I get a warning using this code:
<code>
public class Xsl : System.Web.UI.Page
        {
        private void Page_Load(object sender, System.EventArgs e)
         {
        SqlConnection conNorthwind;
        SqlDataAdapter dadProducts;
        DataSet dstProducts;
        XmlDataDocument objDataDocument;
        XslTransform objXsl;
conNorthwind = new SqlConnection( @"Server=localhost;Integrated
Security=SSPI;Database=Northwind" );
dadProducts = new SqlDataAdapter( "Select * From Products",
conNorthwind );
dstProducts = new DataSet();
dadProducts.Fill( dstProducts, "Products" );
objDataDocument = new XmlDataDocument( dstProducts );
objXsl = new XslTransform();
objXsl.Load( MapPath( "TransformProducts.xsl" ) );
objXsl.Transform( objDataDocument, null, Response.OutputStream );
  }

When I hover over the last line this is the message:
"System.IO.Stream is obsolete, you should pass XmlResolver
to the Transform() method"
</code>

That would be O.K., except that XmlResolver is an abtract class.
any suggestions?






Yahoo! Groups Links









------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to