Re: allowed attributes in a dropdown

Christian Stocker <[email protected]> Mon, 11 Oct 2004 12:17:51 +0200
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>

On 11.10.2004 12:13 Uhr, Patrick Kollitsch wrote:
> hi,
> 
> is it possible or planned to allow the user in the attribute-dialog to 
> insert only attribute-contents defined by the schema (e.g. 0 and 1 as 
> value)?

It should already work with <choice> within <attribtue>

The following is taken from examples/uni/schema/xhtml.rng.xml :

   <attribute name="class">
     <choice>
       <value type="string">ornate</value>
       <value type="string">basic</value>
     </choice>
   </attribute>

This will give you a drop down, where you only can choose between those two.

Hope that helps

chregu


> 
> greetings
> patrick
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users