Marc wrote:
>
> HS> Try:
>
> HS> Texte::attribute("Numero") {
> HS> content:attribute-label() " : " value-editor(attribute,attribute())
> HS> }
>
> I try it but the content doesn't run in this case I have to use :
> attribute-content-left
That's right. My mistake.
and in this case it's not a display inline, but when I have 2 atributes,
each attribute is on a line.
--> An *Attribute* *Box* generated by "content:attributes();" is
fundamentally a tabular block with 1 row per attribute. There is nothing
which can be done to change this. See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/attributes.html
--> Forget about "content:attributes();" and please consider using
something close to:
Texte[Numero]:before {
content: "{" attr(Numero) "}";
}
Texte[NomStyle]:before {
content: "[" attr(NomStyle) "]";
}
Texte[NomStyle][Numero]:before {
content: "[" attr(NomStyle) "]{" attr(Numero) "}";
}
Note that the above generated content may contain not only *text*
(attr(NomStyle), "]{", etc) but also *form* *controls* such as
text-field, check-box, value-editor, etc. See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/objects.html
Texte[Numero]:before {
content: "{Numero" value-editor(attribute, "NomStyle") "}";
}
Texte[NomStyle]:before {
content: "[NomStyle" value-editor(attribute, "Numero") "]";
}
Texte[NomStyle][Numero]:before {
content: "[NomStyle" value-editor(attribute, "NomStyle")
"]{Numero" value-editor(attribute, "Numero") "}";
}
(Note that I've not tested this but I'm 100% sure that something very
similar should work fine.)