W3C home > Mailing lists > Public > www-forms@w3.org > February 2009

Re: Output notation for attributes

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Thu, 05 Feb 2009 14:48:42 +0100
To: "COUTHURES Alain" <alain.couthures@agencexml.com>, xforms <www-forms@w3.org>
Message-ID: <op.uovsngtssmjzpq@acer3010>

On Thu, 05 Feb 2009 08:41:18 +0100, COUTHURES Alain  
<alain.couthures@agencexml.com> wrote:

>
> Hello,
>
> <xf:output> can be used to dynamically output text, binary content or  
> elements but there is no notation for attributes...
>
> I think it wouldn't be very difficult to add something like  
> attr="{xpath_expr}" just like in XSLT !?
>
> What do you think about that ?

My problem is that XForms is a hosted language, and you aren't really  
allowed to define the content of other languages' attributes.

Another way of achieving the same result (which would be allowed) would be  
to have a special instance that represented the current document:

     <body class="default">
     ...
	<select1 ref="document()/body@class">
	<label>Style:</label>
	   <item>
	      <label>Default</label><value>default</value>
	   </item>
	   <item>
	      <label>Night</label><value>night</value>
	   </item>
	   <item>
	      <label>Black/White</label><value>monochrome</value>
	   </item>
	   <item>
	      <label>Big fonts</label><value>big</value>
	   </item>
	</select1>

Steven

>
> Alain COUTHURES
> <agenceXML>
> XSLTForms: http://www.agencexml.com/xsltforms/
> Bordeaux, France
>
> Erik Bruchez a écrit :
>>
>>> Is it possible to resize an image when visualizing it? I want to
>>> upload photos, and they might be really big. An optimal solution would
>>> be to show just a thumbnail, and when the user clicks on it, show the
>>> image in full size.
>>
>>
>> Not in standard XForms, AFAIK.
>>
>> -Erik
>>
>> -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>>
>
>
Received on Thursday, 5 February 2009 13:48:53 GMT

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