Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xml xsl in html

From: "Joe Fawcett" <joefawcett@---------.------>
To: 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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent