Hussein:
Thanks for the answers. Please see below.
--- Hussein Shafie <hussein at xmlmind.com> wrote:
> 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.
>
All attempts have been futile. Ideally, I would like
to pre-populate it from an enumerated list in the
schema. Is that achievable?
But in the meantime, it would be great to see a
working example. I searched the distribution, and
couldn't find it. Are there other sources?
Yes, I understand that division(content()) isn't
needed. I didn't trim the example down enough. In
actuallity, there are two lists.
>
>
> > (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",...'
>
Thanks. It works.
>
> > (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).
>
Using your xpath suggestion from below, I found
another way:
graphic:before {
display: block;
content: paragraph(content(image(attr(src)),
xpath("./alt")));
}
Oddly enough, it doesn't work the same using the
almost identical
graphic {
display: block;
content: paragraph(content(image(attr(src)),
xpath("./alt")));
}
The alt is not displaying in the 2nd case. Is there a
reason?
>
> > (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",'
>
Again, attempts remain futile. A working example
would probably get me there.
> > 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
>
Thanks. That worked applying it to check-box.
>
>
> > (5) After working a while without restarting
> XMLMind,
>
> Weeks?
>
No, a few reloads while working on the css tuning.
Admittedly, the working document is graphics heavy.
After I switched to thumbnails, the problem doesn't
occur. Increasing the heap settings in my opinion
will only mask the problem, because the document loads
fine the first time, only the reloads (closing and
re-opening) are causing the issue.
> > 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
>
Again, if some of the issues would be fixed by
switching from 2.11 to the new version, I would do
that. I just trying to avoid to run into the same
limitations afterwards.
Andreas
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com