[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: write out xml *with* tags for data island inside

Subject: RE: write out xml *with* tags for data island inside xsl??
From: Maria Amuchastegui <mamuchastegui@xxxxxxxxxxx>
Date: Thu, 21 Apr 2005 13:23:06 -0400
xhtml data island
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.david.x2x2x@xxxxxxxxx] 
Sent: Thursday, April 21, 2005 11:20 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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.Batsis@xxxxxxxxxxx> 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
> 
> 


--
<M:D/>

:: M. David Peterson ::
XML & XML Transformations, C#, .NET, and Functional Languages Specialist

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.