[ 
https://jira.duraspace.org/browse/DS-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27961#comment-27961
 ] 

Peter Dietz commented on DS-358:
--------------------------------

A DSpace JIRA Review on April 17th, 2013 had us add some notes to this.

I've noticed that I've had trouble getting cocoon to spit out the proper HTML5 
doctype. 
{code}
<!DOCTYPE html>
<html lang="en">
{code}

DSpace/XMLUI is currently spitting out something like:
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; class="no-js">
{code}


You are somewhat dependent on cocoon for serializing to HTML. What we've got is 
an HTML4 serializer, and I don't think there is any such thing as a HTML5 
serializer for cocoon 2.

More cocoon discussion can be found at: 
http://mail-archives.apache.org/mod_mbox/cocoon-dev/201201.mbox/%3c78b923726e7d59429936580cf127e943a1f4e61...@eu1rdcrdc1wx032.exi.nxp.com%3E

Non-the-less, Ohio State's DSpace instance the Knowledge Bank http://kb.osu.edu 
has customized the existing HTMLserializer to give out a more trimmed doctype. 

In dspace-xmlui/dspace-xmlui-api/src/main/webapp/sitemap.xmap, OSU has 
customized this to be:

{code}
                        <map:serializer name="html" 
logger="sitemap.serializer.html"
                             
src="org.apache.cocoon.serialization.HTMLSerializer"
                             mime-type="text/html; charset=utf-8"
                             pool-grow="2" pool-max="64" pool-min="2">
                            <!--<doctype-public>-//W3C//DTD XHTML 1.0 
Transitional//EN</doctype-public>-->
                            
<!--<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>-->
                            <doctype-public> </doctype-public>
                            <doctype-system> </doctype-system>
                            <encoding>UTF-8</encoding>
                            <indent>yes</indent>
                        </map:serializer>
{code}

And the doctype that we spit out is: 
{code}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "" "">
<html xmlns="http://www.w3.org/1999/xhtml";>
{code}

Which should be fair enough. We haven't completely re-done the XMLUI layout to 
be written in HTML5 by scratch, but since OSU KB is using twitter bootstrap for 
much of the UI, which probably makes use of HTML5 elements, we are getting 
there.


(Apologies if the formatting of this comment is butchered, I'm used to JIRA's 
code macro for formatting code.)
                
> Discuss implications of HTML5 for DSpace
> ----------------------------------------
>
>                 Key: DS-358
>                 URL: https://jira.duraspace.org/browse/DS-358
>             Project: DSpace
>          Issue Type: Task
>          Components: JSPUI, XMLUI
>            Reporter: Stuart Lewis
>
> The possible implications of HTML5 on DSpace need to be discussed. Please use 
> this JIRA ticket to add comments and discussion.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to