Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening XML file within XSL

Status
Not open for further replies.

saintmike2

Programmer
May 29, 2003
10
US
I have a news webpage that pulls XML data (news headlines) from a remote server and reformats it using XSL. When a user clicks on the news headline, the webpage opens the corresponding story which is also pulled from the remote server. The problem is that the story is presented in XML without any formating. I would like to format the document automatically with XSL. So the question is, is there a way to open an XML link within XSL and have it be formatted in XSL.

Thanks,

Mike
 
You can have a JSP or ASP page load the xml data and return the styled html
 
In addition to server side solutions, with IE browsers the XML can be loaded in client script as well as the XSLT file and the HTML resulting from the transformation can be inserted into the client document using element.innerHTML.

This can all be done client side assuming the MSXML.Document.load(…) can be passed a URL parameter that works.


-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top