Jump to content

Build Theme!
  •  
  • Infected?

WE'RE SURE THAT YOU'LL LOVE US!

Hey there! :wub: Looks like you're enjoying the discussion, but you're not signed up for an account. When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. You can like posts to share the love. :D Join 91863 other members! Anybody can ask, anybody can answer. Consistently helpful members may be invited to become staff. Here's how it works. Virus cleanup? Start here -> Malware Removal Forum.

Try What the Tech -- It's free!


Photo

Xsl?


  • Please log in to reply
2 replies to this topic

#1 stephmz

stephmz

    Authentic Member

  • Authentic Member
  • PipPip
  • 23 posts
  • Interests:23 years old

Posted 18 March 2005 - 10:13 PM

For a new job i got online today, they sent me some documents and stuff that i will need to look at before i start. One of them was a document that ended in .xsl. When i downloaded it and went to view it with wordpad it was just a whole page of symbols letters and weird stuff. All i have to view documents with is wordpad and notepad if that makes a difference. I don't have microsoft word or anything. Is there a way to convert this in a way that i can view it with my wordpad?

    Advertisements

Register to Remove


#2 Guest_sultan_emerr_*

Guest_sultan_emerr_*
  • Guests

Posted 19 March 2005 - 11:27 PM

For a new job i got online today, they sent me some documents and stuff that i will need to look at before i start. One of them was a document that ended in .xsl. When i downloaded it and went to view it with wordpad it was just a whole page of symbols letters and weird stuff. All i have to view documents with is wordpad and notepad if that makes a difference. I don't have microsoft word or anything. Is there a way to convert this in a way that i can view it with my wordpad?

View Post

I'm not sure. I'll check thru google and see what I can find.

#3 Guest_Bubbaleone_*

Guest_Bubbaleone_*
  • Guests

Posted 24 March 2005 - 05:20 PM

This is from the "help" pages in Visual Studio.Net 2003 Professional....hope this answers your question. B) Visual Basic and Visual C# Concepts Transforming XML Data in the XML Web Server ControlSee Also Introduction to the XML Web Server Control | Adding XML Web Server Controls to a Web Forms Page | Loading XML Data in the XML Web Server Control | Walkthrough: Displaying an XML Document in a Web Forms Page using Transformations An XSL transformations (XSLT) style sheet (.xslt or .xsl file) is used to transform the content of a source XML document into a presentation that is tailored specifically to a particular user, media, or client. For an overview, see the XSLT Developer's Guide. There are two ways to transform XML data in the XML Web server control: Point to an external XSLT file, which will automatically apply the transformation to the XML document. Apply a transformation that is an object of type XslTransform to the XML document. Both methods have the same results, and your choice is dependent primarily on what is most convenient in your application. If the transformation is in the form of an .xsl or .xslt file, it is easy to load the file. If the transformation is in the form of an object perhaps it is being passed to your application by another process then you can apply it as an object. Note The XslTransform class also allows you to load an .xsl or .xslt file into the instance of the transformation. To apply a transformation from a file Add an XML control to the Web Forms page. For details, see Adding XML Web Server Controls to a Web Forms Page. Set the XML control's TransformSource property to the path to the XSLT document. Note You need to be sure that when your application runs, it has sufficient permissions to read the XML file. For details, see Access Permissions for Web Applications. The following example shows how you can apply a transformation from a file to an XML control called Xml1. 'Visual Basic Xml1.TransformSource = "mystyle.xsl" //C# Xml1.TransformSource = "mystyle.xsl"; To apply a transformation from an XslTransform object Create an instance of the XslTransform class. Set the XML control's Transform property to the instance of the transformation. The following example shows how you can create an instance of the transformation class and use it to apply the transformation to an object. In this example, both the XML document and the transformation are read from files, but in a real application, both objects might come from another component. The transformation is applied as soon as the page loads. 'Visual Basic Private Sub Page_Load(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument() doc.Load(Server.MapPath("MySource.xml")) Dim trans As System.Xml.Xsl.XslTransform = _ New System.Xml.Xsl.XslTransform trans.Load(Server.MapPath("MyStyle.xsl")) Xml1.Document = doc Xml1.Transform = trans End Sub // C# private void Page_Load(object sender, System.EventArgs e) { System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.Load(Server.MapPath("MySource.xml")); System.Xml.Xsl.XslTransform trans = new System.Xml.Xsl.XslTransform(); trans.Load(Server.MapPath("MyStyle.xsl")); Xml1.Document = doc; Xml1.Transform = trans; } See Also Introduction to the XML Web Server Control | Adding XML Web Server Controls to a Web Forms Page | Loading XML Data in the XML Web Server Control | Walkthrough: Displaying an XML Document in a Web Forms Page using Transformations -------------------------------------------------------------------------------- Send feedback on this topic to Microsoft Microsoft Corporation. All rights reserved.

Related Topics



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users