Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 08:19:35 +0100
From:      Nik Clayton <nik@freebsd.org>
To:        Nik Clayton <nik@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: www/en index.xsl
Message-ID:  <20010806081935.L3254@canyon.nothing-going-on.org>
In-Reply-To: <200108060704.f7674V827555@freefall.freebsd.org>; from nik@FreeBSD.org on Mon, Aug 06, 2001 at 12:04:31AM -0700
References:  <200108060704.f7674V827555@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--e8/wErwm0bqugfcz
Content-Type: multipart/mixed; boundary="GeONROBiaq1zPAtT"
Content-Disposition: inline


--GeONROBiaq1zPAtT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 06, 2001 at 12:04:31AM -0700, Nik Clayton wrote:
>   XSL equivalent to the current index.sgml.
>  =20
>   In addition, it knows how to parse entries in news/news.xml, and can in=
clude
>   the last four news entries, with links, on the main page.

Anyone who's interested in playing with this stuff right now should
install ports/textproc/libxslt, and apply the attached diff to the www/
tree.  I'll be committing this in 24-48 hours once the mirrors have
caught up with the libxslt requirement.

N
--=20
FreeBSD: The Power to Serve             http://www.freebsd.org/
FreeBSD Documentation Project           http://www.freebsd.org/docproj/

          --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---

--GeONROBiaq1zPAtT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Content-Transfer-Encoding: quoted-printable

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/www/en/Makefile,v
retrieving revision 1.69
diff -u -r1.69 Makefile
--- Makefile	2001/06/22 09:52:05	1.69
+++ Makefile	2001/08/04 12:21:37
@@ -14,7 +14,6 @@
 DOCS+=3D docs.sgml=20
 DOCS+=3D features.sgml
 DOCS+=3D register.sgml
-DOCS+=3D index.sgml
 DOCS+=3D internet.sgml=20
 DOCS+=3D mailto.sgml=20
 DOCS+=3D publish.sgml
@@ -35,6 +34,7 @@
 SUBDIR+=3D docproj
 SUBDIR+=3D news
 SUBDIR+=3D alpha
+
 SUBDIR+=3D internal
 SUBDIR+=3D java
 SUBDIR+=3D copyright
@@ -75,12 +75,16 @@
 .endfor
 .endif
=20
-SGMLOPTS+=3D      -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr
-
 WEBDIR=3D		data
=20
-# Handle the FAQ/ and handbook/ directories specially.
+# index.html is special, and generated from index.xsl and news/news.xml
+DATA+=3D		index.html
=20
+index.html: index.xsl news/news.xml includes.xsl news/includes.xsl
+	xsltproc -nonet -o index.html index.xsl news/news.xml
+	-tidy -i -m -f /dev/null index.html
+
+# Handle the FAQ/ and handbook/ directories specially.
 FAQ:
 	ln -fs ${.CURDIR}/../../doc/en_US.ISO8859-1/books/faq FAQ
=20
Index: news/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/www/en/news/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- news/Makefile	2001/04/13 00:53:57	1.24
+++ news/Makefile	2001/08/04 12:18:15
@@ -8,7 +8,6 @@
 .endif
=20
 DOCS+=3D press.sgml
-DOCS+=3D newsflash.sgml
 DOCS+=3D news.sgml
 #DOCS+=3D webchanges.sgml
=20
@@ -30,5 +29,14 @@
 SUBDIR+=3D 	1998
 SUBDIR+=3D 	1999
 SUBDIR+=3D 	2000
+
+DATA=3D		news.rdf
+
+newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
+	xsltproc -nonet -o newsflash.html newsflash.xsl news.xml
+	-tidy -i -m -f /dev/null newsflash.html
+
+news.rdf: news-rdf.xsl news.xml includes.xsl ../includes.xsl
+	xsltproc -nonet -o news.rdf news-rdf.xsl news.xml
=20
 .include "${WEB_PREFIX}/share/mk/web.site.mk"
Index: gallery/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/www/en/gallery/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- gallery/Makefile	2000/11/07 04:05:14	1.11
+++ gallery/Makefile	2001/08/05 11:39:18
@@ -7,32 +7,26 @@
 .include "../Makefile.inc"
 .endif
=20
-DOCS =3D gallery.sgml
-DOCS+=3D cgallery.sgml
-DOCS+=3D npgallery.sgml=20
-DOCS+=3D pgallery.sgml
-
 INDEXLINK=3D gallery.html
+
+DATA+=3D	gallery.html cgallery.html npgallery.html pgallery.html
+
+CLEANFILES+=3D cgallery.html npgallery.html pgallery.html gallery.html
+
+gallery.html: gallery.xml gallery.xsl
+	xsltproc gallery.xsl gallery.xml > gallery.html
+	-tidy -i -m -f /dev/null gallery.html
+
+cgallery.html: gallery.xml gallery-entry.xsl
+	xsltproc --param type \'commercial\' gallery-entry.xsl gallery.xml > cgal=
lery.html
+	-tidy -i -m -f /dev/null cgallery.html
=20
-CLEANFILES+=3D cgallery.inc npgallery.inc pgallery.inc gallery.inc
+npgallery.html: gallery.xml gallery-entry.xsl
+	xsltproc --param type \'nonprofit\' gallery-entry.xsl gallery.xml > npgal=
lery.html
+	-tidy -i -m -f /dev/null npgallery.html
=20
-cgallery.html: cgallery.sgml cgallery.inc
-cgallery.inc: gallery.db gengallery.pl
-	${PERL} ${.CURDIR}/gengallery.pl commercial ${.CURDIR}/gallery.db > cgall=
ery.inc
-
-npgallery.html: npgallery.sgml npgallery.inc
-npgallery.inc: gallery.db gengallery.pl
-	${PERL} ${.CURDIR}/gengallery.pl nonprofit ${.CURDIR}/gallery.db > npgall=
ery.inc
-
-pgallery.html: pgallery.sgml pgallery.inc
-pgallery.inc: gallery.db gengallery.pl
-	${PERL} ${.CURDIR}/gengallery.pl personal ${.CURDIR}/gallery.db > pgaller=
y.inc
-
-gallery.html: gallery.sgml gallery.inc
-gallery.inc: gallery.db gallery.sgml
-	${PERL} ${.CURDIR}/prune.pl ${.CURDIR}/gallery.db /dev/null | \
-	${PERL} -ne 'chomp; m/([-\w]+):\s+(\d+)/ and \
-	          print qq/<!ENTITY num./.lc($$1).qq/ CDATA "$$2">\n/' \
-	> gallery.inc
+pgallery.html: gallery.xml gallery-entry.xsl
+	xsltproc --param type \'personal\' gallery-entry.xsl gallery.xml > pgalle=
ry.html
+	-tidy -i -m -f /dev/null pgallery.html
=20
 .include "${WEB_PREFIX}/share/mk/web.site.mk"

--GeONROBiaq1zPAtT--

--e8/wErwm0bqugfcz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjtuRQYACgkQk6gHZCw343XL0ACfdiIxz9RfBSlR/NEaupapsJLU
VIQAni3dlPeV7f8YAbWElrLer4tNlUH5
=DMpj
-----END PGP SIGNATURE-----

--e8/wErwm0bqugfcz--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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