Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - ASP include of an XML file [Thread Next] Re: ASP include of an XML fileTo: NULL Date: 10/2/2004 2:06:00 PM VBH wrote: > I have an XML file which processes quite happily with XSL when opened on > its own. > > However, I just want to include it in an ASP file. But when I do an > SSI, the XML is not reformatted by the XSL. > > As in: > <!-- #INCLUDE FILE="2003-06.XML" --> > > The XML file includes > <?xml-stylesheet type="text/xsl" href="blog2.xsl"?> > > Which works fine when the XML file is opened on its own. However when I > try it as an SSI, I just get the text as one long string. You would need to use server side ASP scripting to perform the XSLT transformation within ASP as ASP doesn't look for <?xml-stylesheet?> to do transformations. If you can't do server side ASP scripting then you need to use an HTML <iframe> e.g. <iframe src="2003-06.XML" width="100%"></iframe> as that way the transformation is done on the client. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
