|
| |
|
|
FrontPageHowTo.com
Posts: 43 Joined: 6/20/2002 From: Status: offline
|
RE: Using XML-formatted data on a site - 6/21/2002 10:54:42
Hi Penny, So you have XML as the data source? What you need to do is build an XSL page to transform the raw XML into HTML format. When that is done, you can use ASP to load the XML and XSL transform. Here's a function we built for a particular project that does this: '------------------------------------------------------------------- 'This function accepts two paramters: 'strXMLFile - The XML file that you wish to view 'strXSLFile - The XSL stylesheet that will transform the XML file '------------------------------------------------------------------- Function loadXMLFile(strXMLFile, strXSLFile) 'Declare local variables Dim objXML Dim objXSL Dim objNode 'Instantiate the XMLDOM Object that will hold the XML file. set objXML = Server.CreateObject("Microsoft.XMLDOM") 'Turn off asyncronous file loading. objXML.async = false 'Load the XML file. objXML.load(strXMLFile) 'Instantiate the XMLDOM Object that will hold the XSL file. set objXSL = Server.CreateObject("Microsoft.XMLDOM") 'Turn off asyncronous file loading. objXSL.async = false 'Load the XSL file. objXSL.load(strXSLFile) 'Use the "transformNode" method of the XMLDOM to apply the XSL 'stylesheet to the XML document. Then the output is written to the 'client. Response.Write(objXML.transformNode(objXSL)) End Function Of course what you are talking about is a lot more complicated than this example. You probably want to allow various methods of searching and narrowing down of criteria etc. I don't think that the software is quite there yet for building these types of interfaces unless you want to use Visual Studio .NET and ASP.NET. If you want to do this yourself, your best bet would be to start learning about ASP and XML. FrontPageHowTo.com FrontPage Database Examples www.frontpagehowto.com
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|