On Fri, Feb 15, 2008 at 11:15 AM, Vlastimil Krejcir <[EMAIL PROTECTED]> wrote:
>    To be honest I almost went mad about this lets say "feature" last week
>  :-). What I want to add - IE 6 behaves the same way as Firefox. Maybe this
>  happens in almost all web browsers because they don't process XML, they
>  must process very dirty HTML. So they do their work "very good" :-/.

If Cocoon could be convinced not to output XML empty element syntax,
that would presumably fix the problem at its source. Unfortunately, I
haven't found a way to do that.

I did find a problem related to this that perhaps the larger Manakin
dev group might want to address. The template for dri:div checks to
see whether there are any child nodes, and if not, pops in a
non-breaking space to avoid the empty-element problem. Unfortunately,
some static divs (e.g. Recent Submissions, community/collection
descriptions) actually pull their information from METS further down
in the DRI file, so this test doesn't always work.

I have a workaround in my utility code (because undescribed
collections/communities were breaking my layout!), but man, is it ever
ugly. I'm sure a better job could be done! What I did was check the
value of the n attribute and write separate "emptiness" tests based on
that. For example, if n = 'collection-view', run down into the METS to
see if there is actually a collection description before writing out
any HTML.

Dorothea

-- 
Dorothea Salo [EMAIL PROTECTED]
Digital Repository Librarian AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to