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

Optional attributes in instance.

From: Alexander Berezhnoy <alexander.berezhnoy@splc.ru>
Date: Fri, 10 Jun 2005 14:26:12 +0400
Message-ID: <42A96AC4.2090007@splc.ru>
To: www-forms@w3.org

Hi,
I've the following question:

For example, I have an instance like
<person name="Ivan Ivanoff"/> and also "@age" which is the optional 
attribute of a <person> tag.
I need to have an input element which is bound to person/@age and have 
some default value if the attribute is omitted in instance.
My XForms engine (Chiba) ignores my <input> tag unless the @age is 
actually present (it just doesn't show the html input, but shows it's 
label).
Is it possible to do so?

Thank you.

-- 
Alexander Berezhnoy,
Chief Architect
SmartPhone Labs, LLC
http://www.smartphonelabs.com
Received on Friday, 10 June 2005 10:56:01 GMT

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