emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* XHTML has no ...
@ 2008-12-19  1:35 Sebastian Rose
  2008-12-19  6:22 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Rose @ 2008-12-19  1:35 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]

Hi,


found some errors in publishing. I find them once in a while when
rescanning my exported XHTML-files for my little search engine here: 
http://github.com/SebastianRose/org-search.php/tree/master



* XHTML has no...

 - ... attribut `name' in `<a name="'. `id' is enough for anchors.
   Right now we have:

      <a name="s" id="s">...

   Should be:

     <a name="s" id="s">...
   

 - `Element pre is not declared in p list of possible children'
    means no `<pre>' allowed inside a `<p>' element (close-par-maybe ??)



* Opening and ending tag mismatch: p line 1837 and div in /home/sebastian/develop/htdocs/org-notes/Emacs/org-mode.html, line: 1838

  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png">

  should be

  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png" />


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add missing slash to img-tags --]
[-- Type: text/x-diff, Size: 475 bytes --]

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 32a917f..9b4bb70 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -3716,7 +3716,7 @@ lang=\"%s\" xml:lang=\"%s\">
 	   (attr (org-find-text-property-in-string 'org-attributes src))
 	   (label (org-find-text-property-in-string 'org-label src)))
       (format "<div %sclass=\"figure\">
-<p><img src=\"%s\"%s></p>%s
+<p><img src=\"%s\"%s /></p>%s
 </div>"
 	      (if label (format "id=\"%s\" " label) "")
 	      src

[-- Attachment #3: Type: text/plain, Size: 208 bytes --]




Regards,

--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: XHTML has no ...
  2008-12-19  1:35 XHTML has no Sebastian Rose
@ 2008-12-19  6:22 ` Carsten Dominik
  2008-12-19 10:52   ` Sebastian Rose
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2008-12-19  6:22 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode Org-Mode


On Dec 19, 2008, at 2:35 AM, Sebastian Rose wrote:

> Hi,
>
>
> found some errors in publishing. I find them once in a while when
> rescanning my exported XHTML-files for my little search engine here:
> http://github.com/SebastianRose/org-search.php/tree/master
>
>
>
> * XHTML has no...
>
> - ... attribut `name' in `<a name="'. `id' is enough for anchors.
>   Right now we have:
>
>      <a name="s" id="s">...
>
>   Should be:
>
>     <a name="s" id="s">...

If I look at http://www.w3schools.com/tags/tag_a.asp
it seems that the a tag has a name, but no id......????

> - `Element pre is not declared in p list of possible children'
>    means no `<pre>' allowed inside a `<p>' element (close-par- 
> maybe ??)

I believe for this I would need an example org and html
file, and the line number of the problem.

> * Opening and ending tag mismatch: p line 1837 and div in /home/ 
> sebastian/develop/htdocs/org-notes/Emacs/org-mode.html, line: 1838
>
>  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png">
>
>  should be
>
>  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png" />

Will this be accespted by older browsers?

Thanks!

- Carsten

>
>
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 32a917f..9b4bb70 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -3716,7 +3716,7 @@ lang=\"%s\" xml:lang=\"%s\">
> 	   (attr (org-find-text-property-in-string 'org-attributes src))
> 	   (label (org-find-text-property-in-string 'org-label src)))
>       (format "<div %sclass=\"figure\">
> -<p><img src=\"%s\"%s></p>%s
> +<p><img src=\"%s\"%s /></p>%s
> </div>"
> 	      (if label (format "id=\"%s\" " label) "")
> 	      src
>
>
>
> Regards,
>
> --
> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449  
> Hannover
> Tel.:  +49 (0)511 - 36 58 472
> Fax:   +49 (0)1805 - 233633 - 11044
> mobil: +49 (0)173 - 83 93 417
> Http:  www.emma-stil.de
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XHTML has no ...
  2008-12-19  6:22 ` Carsten Dominik
@ 2008-12-19 10:52   ` Sebastian Rose
  2008-12-19 11:48     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Rose @ 2008-12-19 10:52 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode Org-Mode

Hi Carsten,


>> * XHTML has no...
>>
>> - ... attribut `name' in `<a name="'. `id' is enough for anchors.
>>   Right now we have:
>>
>>      <a name="s" id="s">...
>>
>>   Should be:
>>
>>     <a name="s" id="s">...
>
> If I look at http://www.w3schools.com/tags/tag_a.asp
> it seems that the a tag has a name, but no id......????

The id mentioned below under the headline `Standard Attributes'.

But, yes, you're right. The `name' attribute is deprecated but still
completely legal, as the DTD used for publishing
(http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd) reveals:



<!--================== The Anchor Element ================================-->

<!-- content is %Inline; except that anchors shouldn't be nested -->

<!ELEMENT a %a.content;>
<!ATTLIST a
  %attrs;
  %focus;
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        NMTOKEN        #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  >

Well, I'll try to recall this when I see this error the next time. 




>> - `Element pre is not declared in p list of possible children'
>>    means no `<pre>' allowed inside a `<p>' element (close-par-
>> maybe ??)
>
> I believe for this I would need an example org and html
> file, and the line number of the problem.
>
>> * Opening and ending tag mismatch: p line 1837 and div in /home/
>> sebastian/develop/htdocs/org-notes/Emacs/org-mode.html, line: 1838

=> --->8----------------------------->8----------------------------->8---
 1: * Abbreviate Links
 2:
 3.    It is possible to define link abbreviations for Org. Just fill the variable
 4:    =org-link-abbrev-list= this way:
 5: #+BEGIN_SRC emacs-lisp
 6: (setq org-link-abbrev-alist
 7:        '(("man"       . "http://localhost/devel/intranet/knowledge/man.php?q=man%20%s")
 8:          ("google"    . "http://www.google.de/search?q=%s")
 9:          ("wikipedia-de" . "http://de.wikipedia.org/wiki/%s")
10:          ("wikipedia-en" . "http://en.wikipedia.org/wiki/%s")))
11: #+END_SRC
12:     Das =%s= ist optional, aber praktisch. Es wird durch einen ebenfalls
13:     optionalen '/TAG/' ersetzt. Hier ein Beispiel für die Benutzung:

<= ---8<-----------------------------8<-----------------------------8<---

Filling in empty lines at line 12 and 5 fixes it. Problem are empty
lines here.



>>  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png">
>>
>>  should be
>>
>>  <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png" />
>
> Will this be accespted by older browsers?

Yes, this is the common way to display images and was in Org-mode. The
slash is missing in (new ?) function org-export-html-format-image only.




Regards,


-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XHTML has no ...
  2008-12-19 10:52   ` Sebastian Rose
@ 2008-12-19 11:48     ` Carsten Dominik
  2008-12-19 13:52       ` Sebastian Rose
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2008-12-19 11:48 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode Org-Mode


On Dec 19, 2008, at 11:52 AM, Sebastian Rose wrote:

> Hi Carsten,
>
>
>>> * XHTML has no...
>>>
>>> - ... attribut `name' in `<a name="'. `id' is enough for anchors.
>>>  Right now we have:
>>>
>>>     <a name="s" id="s">...
>>>
>>>  Should be:
>>>
>>>    <a name="s" id="s">...
>>
>> If I look at http://www.w3schools.com/tags/tag_a.asp
>> it seems that the a tag has a name, but no id......????
>
> The id mentioned below under the headline `Standard Attributes'.
>
> But, yes, you're right. The `name' attribute is deprecated but still
> completely legal, as the DTD used for publishing
> (http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd) reveals:

Well, I *can* take it out if it is better like this.  I guess you are  
saying I should...

>
>
>
>
> <!--================== The Anchor Element  
> ================================-->
>
> <!-- content is %Inline; except that anchors shouldn't be nested -->
>
> <!ELEMENT a %a.content;>
> <!ATTLIST a
>  %attrs;
>  %focus;
>  charset     %Charset;      #IMPLIED
>  type        %ContentType;  #IMPLIED
>  name        NMTOKEN        #IMPLIED
>  href        %URI;          #IMPLIED
>  hreflang    %LanguageCode; #IMPLIED
>  rel         %LinkTypes;    #IMPLIED
>  rev         %LinkTypes;    #IMPLIED
>  shape       %Shape;        "rect"
>  coords      %Coords;       #IMPLIED
>>
>
> Well, I'll try to recall this when I see this error the next time.
>
>
>
>
>>> - `Element pre is not declared in p list of possible children'
>>>   means no `<pre>' allowed inside a `<p>' element (close-par-
>>> maybe ??)
>>
>> I believe for this I would need an example org and html
>> file, and the line number of the problem.
>>
>>> * Opening and ending tag mismatch: p line 1837 and div in /home/
>>> sebastian/develop/htdocs/org-notes/Emacs/org-mode.html, line: 1838
>
> => --->8----------------------------->8----------------------------- 
> >8---
> 1: * Abbreviate Links
> 2:
> 3.    It is possible to define link abbreviations for Org. Just fill  
> the variable
> 4:    =org-link-abbrev-list= this way:
> 5: #+BEGIN_SRC emacs-lisp
> 6: (setq org-link-abbrev-alist
> 7:        '(("man"       . "http://localhost/devel/intranet/knowledge/man.php?q=man%20 
> %s")
> 8:          ("google"    . "http://www.google.de/search?q=%s")
> 9:          ("wikipedia-de" . "http://de.wikipedia.org/wiki/%s")
> 10:          ("wikipedia-en" . "http://en.wikipedia.org/wiki/%s")))
> 11: #+END_SRC
> 12:     Das =%s= ist optional, aber praktisch. Es wird durch einen  
> ebenfalls
> 13:     optionalen '/TAG/' ersetzt. Hier ein Beispiel für die  
> Benutzung:
>
> <=  
> ---8<-----------------------------8<-----------------------------8<---
>
> Filling in empty lines at line 12 and 5 fixes it. Problem are empty
> lines here.

Fixed, thanks.


>
>
>
>
>>> <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png">
>>>
>>> should be
>>>
>>> <img src="ditaa-all-examples.png"  alt="ditaa-all-examples.png" />
>>
>> Will this be accespted by older browsers?
>
> Yes, this is the common way to display images and was in Org-mode. The
> slash is missing in (new ?) function org-export-html-format-image  
> only.

Fixes as well, thanks.

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: XHTML has no ...
  2008-12-19 11:48     ` Carsten Dominik
@ 2008-12-19 13:52       ` Sebastian Rose
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Rose @ 2008-12-19 13:52 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode Org-Mode


Carsten Dominik <dominik@science.uva.nl> writes:
> On Dec 19, 2008, at 11:52 AM, Sebastian Rose wrote:
>
>> Hi Carsten,
>>
>>
>>>> * XHTML has no...
>>>>
>>>> - ... attribut `name' in `<a name="'. `id' is enough for anchors.
>>>>  Right now we have:
>>>>
>>>>     <a name="s" id="s">...
>>>>
>>>>  Should be:
>>>>
>>>>    <a name="s" id="s">...
>>>
>>> If I look at http://www.w3schools.com/tags/tag_a.asp
>>> it seems that the a tag has a name, but no id......????
>>
>> The id mentioned below under the headline `Standard Attributes'.
>>
>> But, yes, you're right. The `name' attribute is deprecated but still
>> completely legal, as the DTD used for publishing
>> (http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd) reveals:
>
> Well, I *can* take it out if it is better like this.  I guess you are saying I
> should...


In fairly modern browsers it works with just the ID set. But as it is
still legal to keep the `name' attribute there is no reason to remove it
now. Once we switch to XHTML 2 we'll have to ...

Not shure, how old a browser has to be to not support anchors without
the `name' in it.





> Fixed, thanks.


Thank YOU, Cartsen ;-)






All the Best,


-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-19 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-19  1:35 XHTML has no Sebastian Rose
2008-12-19  6:22 ` Carsten Dominik
2008-12-19 10:52   ` Sebastian Rose
2008-12-19 11:48     ` Carsten Dominik
2008-12-19 13:52       ` Sebastian Rose

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).