Hello,
I've noticed a bug with a custom CSS for a custom Schema based on DocBook.
Our schema customization defines a new element named lswe:architecture
which is similar (equal actually) to DocBook's standard section
element.
I then define the following in CSS:
---------------------------------------------------------------------------------------------------
lswe|architecture {
display: block;
collapsible: yes;
not-collapsible-head: 1;
}
lswe|architecture > title:before
{
content: collapser() " " counter(n) " ";
}
---------------------------------------------------------------------------------------------------
To make lswe:architecture behave like DocBook's section in terms of
collapsibility and numbering. Collapsibility works fine; however,
numbering doesn't.
Exceprt of the XML file:
---------------------------------------------------------------------------------------------------
<section>
<title>Section_Title</title>
...
</section>
<lswe:architecture>
<title>lswe_architecture Title</title>
...
</lswe:architecture>
---------------------------------------------------------------------------------------------------
So, section and lswe:architecture are siblings. The non-styled (tree)
view correctly shows that the siblings (section and lswe:architecture)
are at the same level, but the styled view shows:
1. Section_Title (fine)
1. lswe_architecture Title (wrong) (it's even shown in a smaller type,
like if lswe_architecture was a child of section instead of a sibling
of it).
While it should show:
1. Section_Title
2. lswe_architecture Title
Any ideas? Thanks in advance...
--
Fabian Mandelbaum
IS Engineer