Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 64486 invoked by uid 500); 7 Feb 2003 23:24:42 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 64399 invoked from network); 7 Feb 2003 23:24:41 -0000 Received: from tartarus.telenet-ops.be (195.130.132.46) by daedalus.apache.org with SMTP; 7 Feb 2003 23:24:41 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by tartarus.telenet-ops.be (Postfix) with SMTP id AF8AADC1F0 for ; Sat, 8 Feb 2003 00:24:47 +0100 (CET) Received: from outerthought.org (D576F372.kabel.telenet.be [213.118.243.114]) by tartarus.telenet-ops.be (Postfix) with ESMTP id 72FEDDBE19 for ; Sat, 8 Feb 2003 00:24:47 +0100 (CET) Message-ID: <3E444037.10904@outerthought.org> Date: Sat, 08 Feb 2003 00:24:39 +0100 From: Steven Noels Organization: Outerthought User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en MIME-Version: 1.0 To: forrest-dev@xml.apache.org Subject: Re: [POLL] Full vs. truncated menus References: <20030207052209.87016.qmail@icarus.apache.org> <20030207075839.GC8045@expresso.localdomain> <3E436D09.9050606@outerthought.org> <20030207112825.GC11282@expresso.localdomain> <3E4437D9.4030306@anyware-tech.com> In-Reply-To: <3E4437D9.4030306@anyware-tech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Basically, the purpose was to produce navigation and decoration on a > hole site composed of a hierarchy of "content" HTML pages. By content, I > mean that the directory structure reflects the navigation tree, and that > HTML is not styled. No xdoc DTD, no book.xml to update : just start > Mozilla composer, write your stuff in wysiwyg mode, save it a the right > place and it automagically appears in the navigation. Yeah, exactly what I have done a long-long time ago for the Outerthought website. I went for XML, though, but the kind of XML which is basically very HTMLish, and the XSLT copying across all undeclared/unknown elements verbatim. So I ended up editing XHTML-like files. Wellformedness is a hard requirement in my book though. > The navigation tree is obtained by traversing the whole tree (directory > generator), and getting the tag of every HTML file, which becomes > the menu entry for that page. Welcome to the origin of 'yer' which has been repackaged into a Cocoon generator called 'libre' (mind the pun on 'book'): http://forrestbot.cocoondev.org/sites/xml-forrest/libre-intro.html Yer traversed directory hierarchies and generates an XML tree representation out of it. No caching, though, or it must be that Marc has added this. > This navigation tree is correlated with the requested URI so that parent > directories are marked as "in path" and the current page as "requested". > This allows to display in the tree only the ancestors of the current > page and their siblings, along with the immediate children of the > current page. This also allows to easily get the path to the current > page (breadcrumb ?). Hehe - how about this collection of URLs which are collated into one page: page: http://outerthought.org/cocoon/gettogether/speakers parts: http://outerthought.org/cocoon/catoc/gettogether/speakers http://outerthought.org/cocoon/cayahoo/gettogether/speakers http://outerthought.org/cocoon/cacontent/gettogether/speakers.xml All this with only some simple page aggregation (which I consider now to be deprecated: http://blogs.cocoondev.org/stevenn/archives/000496.html (didn't survive the Radio->MT conversion very well).) Node hightlighting and expanding/collapsing done in XSLT as you describe. How very nice (and comforting) to see the coincidences in our approach. These were my first (not nearly) serious experiments with Cocoon2, dated somewhere early 2001. We're getting old :-) </Steven> -- Steven Noels http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/stevenn/ stevenn at outerthought.org stevenn at apache.org