Commit graph

10 commits

Author SHA1 Message Date
Murray Stokely
9583f1582f Add comment about the new schema for usergroups.xml.
Clean up commented out code from previous commit.
2008-04-20 22:22:35 +00:00
Murray Stokely
58aebe2415 Introduce <country> and <continent> tags to the usergroup entries in
usergroups.xml and use this to clean up the geographical information
associated with each usergroup.  Move the groups in the 'Other Areas'
region to the appropriate region, mostly Asia.

Use this data to sort regions on the page by the number of usergroups
in each region (36 in europe, 34 in north america, 11 in asia, 4 in
au/nz oceania, 4 in south america, and 1 meta-bug).

No south african user groups at the moment?
2008-04-20 22:14:54 +00:00
Hiroki Sato
9cc1640385 Implement dynamic generation of &base; entity for XML documents and
activate it instead of using a static &base;.  Since an .xml database file
(or an .xslt stylesheet file) is used from various directories, the static
&base; no longer works.

PR:	www/102331
2006-08-21 18:27:43 +00:00
Hiroki Sato
cfd9e12239 www cleanup mega commit:
- Move includes.nav*.sgml to share/sgml/navibar.ent and
   <lang>/share/sgml/nabibar.l10n.ent.

 - Move includes.sgml and includes.xsl to
   share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
   and <lang>?share/sgml/header.l10n.ent.

 - Move most of XSLT libraries to share/sgml/*.xsl and
   <lang>/share/sgml/*.xsl.

 - Move news.xml and other *.xml files for the similar purpose
   to share/sgml/*.xml and <lang>/share/sgml/*.xml.

 - Switch to use a custom DTD for HTML document.  Now we use
   "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
   HTML 4.01 + some entities previously pulled via
   "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
   The location of entity file will be resolved by using catalog file.

 - Add DOCTYPE declearation to XML documents.  This makes the followings
   possible:

   * Use of &foo; entities for SGML in an XML file instead of defining
     {$foo} as the same content.

   * &symbolic; entities for Latin characters.

 - Duplicated information between SGML and XML, or English and
   translated doc, has been removed as much as possible.
2006-08-19 21:20:54 +00:00
Pav Lucistnik
64a4877aee - Remove usage of undefined attribute set att.body (gone with emily's redesign)
Pointed out by:	Rudolf Cejka <cejkar@fit.vutbr.cz>
2006-01-21 14:58:36 +00:00
Pav Lucistnik
787e06fec3 - Set output to iso8859-1 (latin1) encoding instead of default Utf-8
XSLT clue provided by:	fenner
2005-11-30 21:35:22 +00:00
Hiroki Sato
00616f3728 Convert a string in the id attribute to the upper case to avoid
confusion.

Rationale: The ISO 8879 (SGML) specification defines this as
case-insensitive and it must always be treated as one in the upper case
when the SGML declaration does not include "NAMECASE GENERAL NO."
On the other hand, in the XML specification (REC-xml-20040204)
it is case-sensitive and no normalization with regard to the case
must not be performed by an XML parser.  We use HTML 4.01 (SGML) DTD
in most of the files in the www tree and convert them into XHTML
1.0 (XML) DTD forcibly by using tidy.  So, as long as we use both
SGML and XML DTD in this way it is better to use upper case only
for the id attribute to avoid the case sensitivity problem.
2005-11-06 17:21:28 +00:00
Hiroki Sato
ee0f724aa3 Merge infrastructure part of the new www design.
Submitted by:	Emily Boyd (emilyboyd at emilyboyd dot com)
Sponsored by:	Google Summer of Code 2005
2005-10-04 17:18:41 +00:00
Hiroki Sato
66229ed32d Add localization support for www/<lang>/usergroups.html.
- www/<lang>/share/sgml/templates.usergroups.xsl:
  customization layer for each language.

- www/<lang>/share/sgml/usergroups.xml:
  translation of www/share/sgml/usergroups.xml.  The translation teams
  can simply copy it from the language-independent directory and keep
  the translated items only; items which are not in the translated
  file are automatically inserted from the original file on the
  fly (so old items in the translated file are harmful).
2005-09-18 06:25:01 +00:00
Hiroki Sato
19b48b56c5 Add usergroup database and related XSLT templates. Translated
database and automatic selection support like news.xml will
be added soon.

Discussed with:	remko
PR:		www/79239
2005-07-16 09:58:17 +00:00