[daisy] [JIRA] Updated: (DSY-561) Removing various (X)HTML validation warnings

Helma van der Linden (JIRA) issues at cocoondev.org
Wed Oct 3 17:05:06 CDT 2007


     [ http://issues.cocoondev.org//browse/DSY-561?page=all ]

Helma van der Linden updated DSY-561:
-------------------------------------

    Attachment: stripnamespaces.xsl

XSL file to strip extraneous xmlns attributes

> Removing various (X)HTML validation warnings
> --------------------------------------------
>
>          Key: DSY-561
>          URL: http://issues.cocoondev.org//browse/DSY-561
>      Project: Daisy
>         Type: Improvement
>   Components: Frontend (wiki)
>     Versions: 2.1, 2.0.1
>     Reporter: Helma van der Linden
>     Priority: Minor
>  Attachments: stripnamespaces.xsl
>
> The standard out-of-the-box Daisy installation creates HTML output that is not fully valid but contains some warnings. By solving three types of warnings you can eliminate about 80%. Below is a description how to solve these with reasonable workarounds.
> These types are:
> - change all '&' codes in XSL files (notably menu.xsl) to &
> This is due to a bug in Xalan which appears to be fixed in version 2.7.1
> - add 'type="text/javascript"' to all script tags in document.xsl and/or layout.xsl
> - add an extra xsl file (see attachment) to the default Daisy sitemap.
> Steps: 
> - open the file DAISY_HOME/daisywiki/webapp/daisy/sitemap.xmap
> - find the pipeline:  <map:match pattern="html-DocumentPipe">
> - change the last line to:
>    <map:transform src="daisyskin:xslt/stripnamespaces.xsl"/>
>    <map:serialize type="html"/>
> - add the stripnamespaces.xsl file to the xslt directory in your daisy skin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



More information about the daisy mailing list