Using XML and XSLT in ASP pagesYou can use the data from an xml file to be displayed in an asp page. This display can be controlled by the use of an xslt document which is used to format the content that is displayed. The first step in using xml and xsl in asp pages is to create two xmldom objects. One is to hold the xml document and the other is to hold the xsl file. You can use the Server.CreateObject command to create such objects. Once they are created. You have to set the async property of the document object to false so that the xml document can be displayed as soon as it is loaded. Next load the xml and the xsl file to the xmldocument objects. Once the above steps are done the next step is to transform the xml document using xsl. For this you can use the transformNode method which takes the xsl file as the argument. Thus you can use the xml data available in xml file and use xsl to format the output in an asp file.
|
|
||
|
|||
“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”
Copyright - © 2004 - 2019 - All Rights Reserved.