Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79447 - Please use "/dtd/filename.dtd" instead of "http://www.gentoo..."
Summary: Please use "/dtd/filename.dtd" instead of "http://www.gentoo..."
Status: RESOLVED CANTFIX
Alias: None
Product: [OLD] Docs-developer
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 04:41 UTC by Xavier Neys (RETIRED)
Modified: 2005-06-03 14:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Neys (RETIRED) gentoo-dev 2005-01-25 04:41:45 UTC
Please do not use "http://www.gentoo.org/dtd/dtdname.dtd" in our xml documents
Instead of 
 <!DOCTYPE guide SYSTEM "http://www.gentoo.org/dtd/guide.dtd">
please use
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">

1) On your PC:
You have to hit www.g.o when validating/processing your files. It's a waste of bandwidth and slows you down.

2) When you commit the file, it is validated by CVS which has to hit www.g.o instead of using a local file.

3) When the file visited on www.g.o, the server has to get the DTD via http.
It's slows the servers down a bit, servers hit each other for files they have, it defeats caching and last but not least, when one node goes down, it can break with 'failed to load external entity "http://www.gentoo.org/dtd/guide.dtd"'

I'll fix what I can and CC to teams for remaining files.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-05-23 15:19:10 UTC
A better way is to simply add an entry to /etc/xml/catalog:
<rewriteURI uriStartString="http://www.gentoo.org/dtd/"
rewritePrefix="/path_to/xml/htdocs/dtd/"/>