On 03/07/2011 06:02 PM, Philippe Nobili wrote:
>  On 03/07/2011 05:46 PM, Hussein Shafie wrote:
>>
>> Before customizing the attributes() panel, have you specified where and
>> how this panel is to be added? Example:
>>
>> ---
>> geov|buf::after,
>> geov|mainbuf:after,
>> geov|value:after {
>>     display: block;
>>     content: attributes();
>> }
>> ---
> Yes, we did exactly this; note that the attribute panel itself is
> displayed as expected, simply only the attributes which actually have  a
> value are in there.
> 
>> I mean, it's difficult to answer your questions because the snippet you
>> have included in your email is incomplete:
> Yes, my apologies, I intended to make it short (but actually it's too short !)
> Here is the beginning (the same excerpt):
> 
> geov|buf:before ,
> geov|mainbuf:before ,
> geov|value:before {
> 
>   content: insert-after-button() " " label(xpath,"geov:nativeDescript/@name") 
> "\A   " attributes() ; 
> 
> }
> 

Something like this cannot be correctly aligned and cannot have the
right size as the attributes() panel is inherently a block.

You should specify a display other than inline (default value).

You should consider using a ``layout'' for the generated content. See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/layouts.html


> 
> *Below an additional detail which might help: *
> 
> The missing attributes are of type *integers* (they default to 1). Maybe
> there is a problem during the creation of  the default value editor (a
> number-field) upon startup, when there is no value assigned ? if we
> assign a value, then the number-field is displayed OK, we can check that
> this is not possible to enter anything but an integer value in this.
> 
> I hope this helps, I can send you a bigger excerpt if the above is not
> sufficient,

It seems that "show-attribute: always;" works only when the name of the
attribute has been specified in the ::attribute() CSS pseudo-element.

Example: let's suppose that the content model of element geov|value
specifies 3 attributes: foo, bar, gee:

This cannot work:
---
geov|value::attribute() {
   attribute-content-left: attribute-label() ":" ;
   attribute-content-middle: value-editor(attribute,attribute()) ;
   show-attribute: always;
}
---

While this should work:
---
geov|value::attribute(foo),
geov|value::attribute(bar),
geov|value::attribute(gee) {
   attribute-content-left: attribute-label() ":" ;
   attribute-content-middle: value-editor(attribute,attribute()) ;
   show-attribute: always;
}
---



 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to