The hack that will allow both XML data and XSL stylesheets to be embedded in
an HTML document is to code the document as application/xhtml+xml with the
XHTML elements in the XHTML namespace and the embedded XML data in the null
namespace.
Here is an example:
<http://home.arcor.de/martin.honnen/xslt/test2005032201.xhtml>
Maria
-----Original Message-----
From: M. David Peterson [mailto:m(_dot_)david(_dot_)x2x2x(_at_)gmail(_dot_)com]
Sent: Thursday, April 21, 2005 11:20 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] write out xml *with* tags for data island inside xsl??
The hack that willl allow xml data islands to work in both IE and Mozilla is
to add a style attribute to the xml element with the display set to
"none"...
so:
<xml id="dataisland" style="display:none"> ....
</xml>
coupled with:
document.getElementById('dataisland').innerHTML
will give you a copy of everything contained within the start and end xml
element.
Cheers :)
<M:D/>
On 4/21/05, Emmanouil Batsis <Emmanouil(_dot_)Batsis(_at_)eurodyn(_dot_)com>
wrote:
Eric van der Vlist wrote:
Replacing <xml> by <_xml> would thus be more kosher...
It's an MS thing AFAIK, called "data islands". I dont thing they work
without xml being the element name :-/
I have also recommended changing names starting with XML only to find
out that the spec does not actually require it.
Manos
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
<M:D/>
:: M. David Peterson ::
XML & XML Transformations, C#, .NET, and Functional Languages Specialist
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--