You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Sander Temme <sc...@apache.org> on 2007/02/13 02:04:48 UTC

Can I include HTML entities in XML source?

Folks,

I am working on some documentation for mod_ftp, and am using the  
httpd manual format.  I'm running into the following small problem: I  
would like to include HTML entities into the documents, like &mdash;  
&lsquo; and &rsquo;.  While XML documents containing these characters  
build fine, they make Firefox' parser crap out with an error like so:

XML Parsing Error: undefined entity
Location: file:///home/sctemme/asf/httpd/trunk/docs/manual/ftp/ 
ftp_tls.xml
Line Number 64, Column 6:

4217 &mdash; Securing FTP with TLS</a></seealso>
-----^

Any way I can define these entities?  Having Firefox barf on them  
makes it harder to proof the documents.

Oh, don't go looking for that doc in that location: it's a symlink  
from my mod_ftp checkout.

Thanks,

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: Can I include HTML entities in XML source?

Posted by Vinko Vrsalovic <vi...@gmail.com>.
>
> XML Parsing Error: undefined entity
> Location: file:///home/sctemme/asf/httpd/trunk/docs/manual/ftp/
> ftp_tls.xml
> Line Number 64, Column 6:
>
> 4217 &mdash; Securing FTP with TLS</a></seealso>
> -----^


Sander,

you must use the numbered entity. mdash's numbered entity is &#8212;

You can check the list here:
http://yost.com/computers/htmlchars/html40charsbynumber.html


HTH,
V.

Re: Can I include HTML entities in XML source?

Posted by André Malo <nd...@perlig.de>.
* Sander Temme wrote: 

> I am working on some documentation for mod_ftp, and am using the
> httpd manual format.  I'm running into the following small problem: I
> would like to include HTML entities into the documents, like &mdash;
> &lsquo; and &rsquo;.  While XML documents containing these characters
> build fine, they make Firefox' parser crap out with an error like so:
>
> XML Parsing Error: undefined entity
> Location: file:///home/sctemme/asf/httpd/trunk/docs/manual/ftp/
> ftp_tls.xml
> Line Number 64, Column 6:
>
> 4217 &mdash; Securing FTP with TLS</a></seealso>
> -----^
>
> Any way I can define these entities?  Having Firefox barf on them
> makes it harder to proof the documents.

That's a firefox problem (doesn't use DTD files, which are not chrome'd).
If you're running the transformation, HTML entities are accepted.

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org