This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Entity Reference Resolution on an HTTP Server


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/ "Steven T. Hatton" <hattons@speakeasy.net> (by way of Steven T. Hatton <hattons@speakeasy.net>) was heard to say:
| Whose job is it to resolve entities referenced within an XML document served
| out from an http server.

The XML parser.

| For example, I have a docbook document with a
| &amp;hellip; in it.  (Who knows how that is going to look in Outlook.) When I
| attempt to open the document with Mozilla, he chokes on the entity reference.

Either the document doesn't include a doctype declaration or the
parser is not reading the external subset. Non-validating parsers are
allowed to skip the external subset.

| If the browser is expected to resolve this reference, then how?  Can I do
| that with CSS?

Yes, the browser is expected to. No, you can't do it with CSS.

| My doctype definition looks thus:
| <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
| "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>

In that case, it seems pretty likely that the parser in Mozilla
doesn't read the external subset (sigh).

| Now, in a perfect world Mozilla would just go out and read that from
| www.oasis-open.org.  That don't seem to be happ'nin'.  What's plan 'B'?  I'm
| running apache.

Off the top of my head, run the document through an XSLT identity
transformation before sending it out, that'll expand the entity
references to numeric character refs which should work even without
reading the external subset.

                                        Be seeing you,
                                          norm

- -- 
Norman Walsh <ndw@nwalsh.com>      | Reality is what refuses to go away
http://www.oasis-open.org/docbook/ | when I stop believing in
Chair, DocBook Technical Committee | it.--Philip K. Dick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE9kyfFOyltUcwYWjsRAlEPAKCX92gMO7CKA0NpsXFQT1EFAnVKowCfbeht
c2LTNxK4rbBZ83WbEb5VXKw=
=Ur7t
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]