Thanks, Hussein. While this is definitely closer, it still does not
provide what we used to be able to do. In particular, the old way was
to show the section1 number and id attribute with the blue background
and, at the same time, show the immediately embedded secTitle element on
the same line (and the secTitle content did not have the blue
background). This way the content (except for the secTitle) was
collapsed but the user could easily see the section number, id and title
without having to expand the section1 element. It looked like this:
With the new way, the best I've been able to come up with is the
following where only the section1 number and id are shown. The user
would have to expand it to see what the secTitle is. This is not ideal
since users are more likely to think in terms of section titles than in
terms of section identifiers:
Or am I missing something?
--Andy
On 6/30/2016 2:03 AM, Hussein Shafie wrote:
On 06/29/2016 10:23 PM, Andy Black wrote:
In our custom CSS, a section1 element (a display:block) has the
following
section1:before
{
content:
collapser(collapsed-icon,icon(collapsed-right),expanded-icon,icon(expanded-down))
" "
simple-counter(n,decimal)
" "
text-field(attribute,id,columns,10,font-size,small);
font-weight: bold;
font-size:large;
background-color: #BFD0FF;
}
On XXE version 7.0.0, it comes out like this (where there is no
background color at all in the generated content):
In XXE version 4.9.1 (and 5.3.0), it looks like this (where the
background color is there for the entire generated content):
Is this due to a change in version 6 (or 7) on how background-color is
handled in generated content? I could not find anything in the
documentation.
I'm sorry for this regression but this kind of change is too low-level
and too complicated to be documented.
Please try to find a workaround such as (not tested):
---
section1:before {
display: inline;
content: paragraph(content(collapser(),
" ",
simple-counter(n, decimal),
" ",
text-field(attribute, id,
columns, 10,
font-size, small)),
font-weight, bold,
font-size, large,
background-color, #BFD0FF);
}
---
Reference:
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/paragraph.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support