Huditsch Roman wrote:
> I am running into problems trying to teach XXE to display a certain block
> element as collapsed per default.
> There seems to be no problem, when I am doing this manually, but every time I
> open the document this element is shown in its expanded form.
>
> Here are my CSS definitons:
>
> /* ********************************************* */
> /* Stichworte */
> /* ********************************************* */
> stichworte:before {
> content: paragraph(content(collapser(), "<", element-name(), ">"),
> font-weight, bold, color, white, background-color, gray);
> collapsible: yes;
> collapsed: yes;
> }
>
> stichworte {
> display: block;
> collapsible: yes;
> collapsed: yes;
> not-collapsible-head: 1; /* title or metainfo */
> border: 1px solid gray;
> padding: 1px;
> margin: 8px 4px;
> background-color: white;;
> }
>
> stichwort_alt::before {
> display: inline;
> content: division(content("<", element-name(), ">"),
> font-weight, bold, color, navy);
> padding-left: 15px;
> }
>
> stichwort_alt {
> border: 1px solid gray;
> padding-left: 15px;
> }
>
>
>
> and here the XML part:
>
> <normtext>
> <stichworte>
> <stichwort_alt>Alkoholische Getr?nke 13( 2), 18 (1)</stichwort_alt>
> <stichwort_alt>Amtsarzt 10 (1)</stichwort_alt>
> <stichwort_alt>Anhaltung 4</stichwort_alt>
> <stichwort_alt>- Achtung der Menschenw?rde 4 (1)</stichwort_alt>
> <stichwort_alt>- kurzfristige 27</stichwort_alt>
> <stichwort_alt>Anordnungen der Aufsichtsorgane 3 (2)</stichwort_alt>
> <stichwort_alt>Anstand 2 (2)</stichwort_alt>
> <stichwort_alt>Ansuchen der H?ftlinge 23</stichwort_alt>
> </normtext>
>
> Do you see any reasons for this behavior?
Not really. I have mainly removed:
---
collapsible: yes;
collapsed: yes;
---
from "stichworte:before {}".
Attached files work fine for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.css
Type: text/css
Size: 824 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050309/8b655450/attachment.css
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.xml
Type: text/xml
Size: 640 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050309/8b655450/attachment.xml