Date: Thu, 27 Sep 2001 16:09:43 -0500 From: Chris Costello <chris@FreeBSD.ORG> To: Nik Clayton <nik@FreeBSD.ORG> Cc: "Gary W. Swearingen" <swear@blarg.net>, Jun Kuriyama <kuriyama@imgsrc.co.jp>, doc@FreeBSD.ORG Subject: Re: Branching www/ for XML development Message-ID: <20010927160943.A41373@holly.calldei.com> In-Reply-To: <20010927132714.E31744@clan.nothing-going-on.org>; from nik@FreeBSD.ORG on Thu, Sep 27, 2001 at 01:27:14PM %2B0100 References: <20010921001517.N1162@clan.nothing-going-on.org> <20010922113521.W1162@clan.nothing-going-on.org> <20010925173240.F31744@clan.nothing-going-on.org> <7m1ykud8oh.wl@waterblue.imgsrc.co.jp> <20010926125652.S31744@clan.nothing-going-on.org> <pp4rppvmm1.rpp@localhost.localdomain> <20010927132714.E31744@clan.nothing-going-on.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, September 27, 2001, Nik Clayton wrote: > This is actually pretty easy to do. We just change the stylesheet, and > generate a new set of pages with a different, simpler, stylesheet. > Providing a "Print this page" link on each page would be trivial. In the case of status reports, for example (and probably the only example), will the stylesheets need to simply be aware of the style of the Web pages, or (more appropriately in my opinion) generate XML files in the style of your layout, e.g. <xsl:stylesheet ...> <xsl:template match="report"> <page role="news"> <title>Status Report</title> <xsl:apply-templates select="section"/> <section> <title>...</title> <body> <ul> <xsl:for-each select="project"> <!-- ... --> </xsl:for-each> </ul> </body> </section> <xsl:apply-templates select="project"/> </page> </xsl:template> <xsl:template match="section"> <section> <xsl:copy-of select="title"/> <body> <xsl:copy-of select="p"/> </body> </section> </xsl:template> </xsl:stylesheet> whose output is _then_ converted to HTML? Or have you got something entirely different in mind? -- +-------------------+------------------------------------------------+ | Chris Costello | How was Thomas J. Watson buried? 9 edge down. | | chris@FreeBSD.org | | +-------------------+------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010927160943.A41373>