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

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 
Is it possible to do so?

Thank you.

Alexander Berezhnoy,
Chief Architect
SmartPhone Labs, LLC
Received on Friday, 10 June 2005 10:56:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC