W3C home > Mailing lists > Public > www-forms@w3.org > October 2005

Re: Updating host language attributes

From: Erik Bruchez <erik@bruchez.org>
Date: Thu, 27 Oct 2005 23:06:55 +0200
Message-ID: <4361416F.7000902@bruchez.org>
To: www-forms@w3.org

Mark Birbeck wrote:

>><xf:output value="fp:serialise(instance('iSVG'))"/>

It seems to me that the above should display the XML text of the 
instance, not actually modify the HTML page.

>   <xf:output ref="instance('iSVG')" mediatype="text/html" />

Yes, this is more like it! The mediatype attribute is the key here to 
determine that the string value in the instance node is not plain text, 
but HTML. OPS for now uses an "appearance" attribute to achieve the same 
goal, but we should probably move to the "mediatype" attribute, as we do 
use that now for images.

But I am thinking that your serialize() functions would still be 
required in the second case, i.e. if you have:

<xforms:instance>
   <img src="..."/>
</xforms:instance>

<xf:output ref="instance('iSVG')" mediatype="text/html"/>

wouldn't work. But it would work with this instance:

<xforms:instance>
   <some-element>&lt;img src="..."/&gt;</some-element>
</xforms:instance>

-Erik
Received on Thursday, 27 October 2005 21:06:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:02 GMT