Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - xml xsl in html [Thread Next] Re: xml xsl in htmlTo: NULL Date: 5/2/2006 1:20:00 PM "hanz" <hanz@d...> wrote in message news:78B9F11F-ADCD-43F4-A850-196C906B51D5@m...... > Hello, > Question, i would like to embed an xml file in html. > The xml file uses a xsl file to be convert. > I tried: > > <xml id="agenda" src="agendax.xml"></xml> > > in my html file. > and > > <?xml-stylesheet type="text/xsl" href="agendas.xsl"?> > <xml id="agenda"> > > in my xml file. > > the xml file is not converted to html-> nothing happens. > Can anyone help me out on this ? > > TIA > hanz The automatic transformation only works if the XML file is opened directly by the browser. An XML data island has no visible content. If you wish to do this this way you'll have to have some client-side script to read the XML from the data island, parse the document to get the path to the stylesheet and perform the translation manually. You can then use the innerHTML property of an element to insert the new content. -- Joe Fawcett (MVP - XML) https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
