From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Valid XHTML Date: Fri, 31 Oct 2008 20:54:28 +0100 Message-ID: <490B6274.8090507@gmx.de> Reply-To: sebastian_rose@gmx.de Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050103030503060800070604" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kw04W-0000du-1w for emacs-orgmode@gnu.org; Fri, 31 Oct 2008 15:54:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kw04V-0000cq-6O for emacs-orgmode@gnu.org; Fri, 31 Oct 2008 15:54:15 -0400 Received: from [199.232.76.173] (port=38262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kw04V-0000ch-0C for emacs-orgmode@gnu.org; Fri, 31 Oct 2008 15:54:15 -0400 Received: from mail.gmx.net ([213.165.64.20]:54797) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kw04U-0001Z9-Hf for emacs-orgmode@gnu.org; Fri, 31 Oct 2008 15:54:15 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "[emacs-orgmode]" This is a multi-part message in MIME format. --------------050103030503060800070604 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm currently writing a fulltext search engine for Org's XHTML export. Export is not valid XHTML: 1.) CDATA: should be: Fix appended: - patch-missing-cdata-style.patch (org-exp.el) 2.) Missing quotes: should be: My fault. I copied and pasted. Fixes appended: - patch-stylesheet-missing-quotes.patch (org-publish.el, doc strings) - patch-stylesheet-missing-quotes-texi.patch (org.texi) 4.) missing entities in link texts (not the URL): http://xy.com/foo.php?f=1&t=bar should be: http://xy.com/foo.php?f=1&t=bar Not shure how to this in org-exp.el, org-export-as-html - is there a function I should use? 5.) index file is not well-formed XML: sitemap.html:291: parser error : Opening and ending tag mismatch: body line 43 and div ^ sitemap.html:297: parser error : Opening and ending tag mismatch: html line 3 and body ^ sitemap.html:298: parser error : Extra content at the end of the document ^ Seems there is one '' too much. It's the directly after the (never opened after title) Two possible fixes:

Sitemap

/* <- either insert this one */
    ...
/* <- or delete this one */ Last but not least, a general question: * Problem with xmllint: Not defined entities: - … - — - mayby more Not shure, how to fix this. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd already includes these: http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent But: xmllint --dtdvalid http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd index.html gives me lots of errors for not defined enities. Regards, Sebastian --------------050103030503060800070604 Content-Type: text/x-patch; name="patch-stylesheets-missing-quotes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-stylesheets-missing-quotes.patch" diff --git a/lisp/org-publish.el b/lisp/org-publish.el index e0cf4bd..db09e17 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -75,4 +75,4 @@ ;; :with-section-numbers nil ;; :table-of-contents nil ;; :recursive t -;; :style ""))) +;; :style ""))) ;;;; More complex example configuration: @@ -103,7 +103,7 @@ ;; :headline-levels 3 ;; :with-section-numbers nil ;; :table-of-contents nil -;; :style "" +;; :style "" ;; :auto-preamble t ;; :auto-postamble nil) ;; ("images" :base-directory "~/images/" --------------050103030503060800070604 Content-Type: text/x-patch; name="patch-stylesheets-missing-quotes-texi.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-stylesheets-missing-quotes-texi.patch" diff --git a/doc/org.texi b/doc/org.texi index b675d92..b623b3e 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -8212,7 +8212,7 @@ directory on the local machine. :publishing-directory "~/public_html" :section-numbers nil :table-of-contents nil - :style ""))) @end lisp @@ -8249,7 +8249,7 @@ right place on the web server, and publishing images to it. :headline-levels 3 :section-numbers nil :table-of-contents nil - :style "" :auto-preamble t :auto-postamble nil) --------------050103030503060800070604 Content-Type: text/x-patch; name="patch-missing-cdata.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-missing-cdata.patch" diff --git a/lisp/org-exp.el b/lisp/org-exp.el index e680be0..ac59bab 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -492,6 +492,7 @@ Org-mode file." (defconst org-export-html-style-default "" "The default style specification for exported HTML files. Please use the variables `org-export-html-style' and @@ -547,11 +548,13 @@ you should consider to include definitions for the following classes: For example, a valid value would be: If you'd like to refer to en external style file, use something like --------------050103030503060800070604 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --------------050103030503060800070604--