Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2005 19:23:25 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        pav@FreeBSD.org
Cc:        doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: www/share/sgml templates.usergroups.xsl
Message-ID:  <20051201.192325.78702563.hrs@allbsd.org>
In-Reply-To: <1133426754.95515.7.camel@pav.hide.vol.cz>
References:  <200511302135.jAULZM4m074043@repoman.freebsd.org> <20051201.135349.07646153.hrs@allbsd.org> <1133426754.95515.7.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Thu_Dec__1_19_23_25_2005_508)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Pav Lucistnik <pav@FreeBSD.org> wrote
  in <1133426754.95515.7.camel@pav.hide.vol.cz>:

pa> Right, haven't noticed this. Do we have a language-dependent place for
pa> this? Does xsltproc have commandline argument to specify encoding
pa> perhaps? Or do we have to copy the .xsl around?

 Please put en/share/sgml/templates.usergroups.xsl.  See:

  http://www.freebsd.org/cgi/cvsweb.cgi/www/ja/share/sgml/templates.usergroups.xsl?rev=1.1&content-type=text/x-cvsweb-markup

pa> >  And your commits seem inconsistent; changes for www/89380 replace
pa> >  &#xxx; with &foo;, but entities.dtd adds such entities in &#xxx; form.
pa> >  Which one do you think better?
pa>
pa> Whatever is easier to read and write by humans. &foo;s clearly wins.

 This is not only a style issue.  What we must consider is that
 the &#xxx; form can depend on a specific encoding (this is always
 UTF-8 in the XML spec, though) and some web browsers do not handle
 them correctly.  The entity references should be &foo; form
 in the *resulting* HTML files wherever possible.

 The XHTML entities are actually defined in the &#xxx;
 form (you can see them in $PREFIX/share/xml/dtd/xhtml/xhtml-lat1.ent,
 for example), so we never put them in the resulting HTML files
 in &foo; form even if we add entities.dtd and use &foo; in an XML file.

 I think a concept of "sdata-as-pis" used in osx(1) is a good
 idea for XML files in our www and doc tree.  Redefining all
 of ISO 8859 entities in the SDATA PI form and adding a template
 for that, we can put them in the resulting HTML files
 in the &foo; form.

--
| Hiroki SATO

----Security_Multipart(Thu_Dec__1_19_23_25_2005_508)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDjs8iTyzT2CeTzy0RAozBAJ9x2inCKAwYZgH/ziL9DZOHv8sR2gCdFayw
7Dy/zkRQaOsXWtrlFdP76Zk=
=gv7q
-----END PGP SIGNATURE-----

----Security_Multipart(Thu_Dec__1_19_23_25_2005_508)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051201.192325.78702563.hrs>