You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Erik Abele <er...@codefaktor.de> on 2002/08/22 00:20:04 UTC

[PATCH] Named entities

Hi all !

Attached a patch to use the extended entity-sets in the (translated) 
xml-docs. With this it will be possible to use &nbsp;, &auml;, and so on 
without first defining them in the dtd.

Some comments:

- build/build.xml: new xmlcatalog-type to define the local copies of the
   the official entity-sets; this prevents us from fetching them from 
the net
   on every single build-process. Added references to this catalog in every
   build-relevant task (validate, transform).

- style/common.dtd: added entity-definitions for the public entity-sets.

- upgrading.xml.de: added some newly usable entities to demonstrate the
   the functionality.

For the correct local validation-/transformation-process you will need 
to get the following files and put them into the style-directory:

http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent
http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent

The whole build and validation process works fine, just test and report 
please.

 > My only concern here is that we want to continue being able to use
 > MSIE/Mozilla to transform the docs.  If we do this, aren't we going to
 > be requiring the use of Ant?

Unfortunately Mozilla (0.9 to 1.1b Mac/Linux/PC, same codebase) doesn't 
parse the new entity-references and therefore responds with an error, 
when viewing a document which includes a corresponding entity :-(

In MSIE 6.0 also everything is working fine. Well, this seems to be a 
bug in Mozilla.

IMO it would be great to use this, because it would help to contribute 
more easily. But the fact that Mozilla is unable to use this methods 
correctly, makes me a bit unhappy. Personally I don't use Mozilla very 
much for 'live' transforming, but I guess some of you love it :-)

Since I'm a bit unfamiliar with the current browser behaviours regarding 
to XML, I would appreciate some opinions on this topic.

up to now I'm more or less +-0 tending to +1 :-) but perhaps someone can 
bring in some new aspects on this.

Erik


Re: [PATCH] Named entities

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 22 Aug 2002, Erik Abele wrote:
>  > My only concern here is that we want to continue being able to use
>  > MSIE/Mozilla to transform the docs.  If we do this, aren't we going to
>  > be requiring the use of Ant?
>
> Unfortunately Mozilla (0.9 to 1.1b Mac/Linux/PC, same codebase) doesn't
> parse the new entity-references and therefore responds with an error,
> when viewing a document which includes a corresponding entity :-(
>
> In MSIE 6.0 also everything is working fine. Well, this seems to be a
> bug in Mozilla.

I'm guessing this difference is more caused by MSIE "mind reading magic"
rather than a bug in mozilla.  How is the browser supposed to know how to
locate these things without an update to their catalog files?  Probably
there is some way to modify mozilla's catalog file to pick up this stuff.

Another possibility is using SYSTEM rather than PUBLIC entity definitions
and committing those entities to our style directory.

My main concern is making the build process (and the testing process) as
simple as possible.  Requiring a download of another set of files in order
to build the docs will get me close to a -1, so I think we'll need to
commit them eventually anyway.

Joshua.


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