Andreas Kemkes wrote:
> 
> (1) I'm using the list pseudo-function
> 
> page:before {
>     display: block;
>     color: red;
>     content: division(content(list(rows, 1,
>                   attribute, type,
>                   selection, single
>                   values, "...\A\DpageTypeC)));
> }
> 
> and was hoping that an document element such as
> 
>         <page type="pageTypeC">
> 
> would populate/pre-set the list.  Am I expecting too
> much?

No, this should work fine. Note that in the above rule,
division(content()) is useless; list() suffice.



> (2) I've also noticed a case-sensitivity issue, for
> example
> 
> question[type="checkAll"] > choice:before {
>     display: inline;
>     content: check-box(attribute, isCorrect,
>                   label, "", 
>                   unchecked-value, "false", 
>                   checked-value, "true");
> }
> 
> does not impact the attribute isCorrect, but one named
> iscorrect.  What could cause this?

In CSS, identifiers such as isCorrect are case-insensitive (to make it
simple).
Specify 'check-box(attribute, "isCorrect",...'



> (3) For an element such as
> 
> <graphic src="animage.jpg">
>    <alt>An alt text</alt>
> </graphic>
> 
> I would like to display both the image and the alt
> text in the editor.  Using the content: key seems to
> prevent access to the alt element. I do have a
> work-around using :before, but I was wondering whether
> there are other ways to access alt from the content:
> value.

The ":before" method is the right way to do it (i.e. this is not a
workaround).



> (4)  I was attempting to do a similar thing to (2)
> using radio-button, but it would not work.  Is this a
> version issue, or was I doing something wrong?
> 
> question[type="multipleChoice"] > choice:before {
>     display: inline;
>     content: radio-buttons(rows, 1,
>                   labels, "1",
>                   attribute, isCorrect,
>                   selection, single);
> }
> 

There is no known bug here. This not a version issue.
You probably did a little mistake. For example, 'attribute, "isCorrect",'

> Actually, in reality, I would like to use the text
> content of the choice element
> 
> <question type="multipleChoice">
> ...
>    <choice isCorrect="false">The wrong
> choice.</choice>
> ...
> </question>
> 
> and have it populated/pre-set as well.  Is this
> possible?

This is more tricky. Try to use the xpath() or label() pseudo-functions
to fetch the text of the choice. See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/xpath.html and
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/label.html



> (5) After working a while without restarting XMLMind,

Weeks?

> images won't display anymore due to a Java heap space
> issue.  Continuing freezes it up.  Is this a memory
> leak in the version I'm using and fixed in V3.2?

You are the first person to report such problem.  May be you just need
to increase the amount of memory which XMLmind XML Editor is allowed to
use. Learn how here:
http://www.xmlmind.com/xmleditor/user_faq.html#outofmemory

Reply via email to