Return-Path: Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 30086 invoked from network); 18 May 2002 15:58:52 -0000 Received: from adsl-64-173-57-75.dsl.snfc21.pacbell.net (HELO mail.koberg.com) (64.173.57.75) by daedalus.apache.org with SMTP; 18 May 2002 15:58:52 -0000 Received: from koberg.com ([192.168.1.1]) by mail.koberg.com (8.11.2/8.11.2) with ESMTP id g4IG1BJ10147 for ; Sat, 18 May 2002 09:01:11 -0700 Message-ID: <3CE67A87.7030403@koberg.com> Date: Sat, 18 May 2002 09:00:07 -0700 From: Robert Koberg User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: forrest-dev@xml.apache.org Subject: Re: Sections & anchors 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 Piroumian Konstantin wrote: >Yes, I know and this is implemented already in document2html.xsl. But you >got me a little wrong. I'd like to have in the content part a link to other >section, say: >
>
> blah b;ah b;ah > blah b;ah b;ah. See >
>
> bloh b;oh b;oh > bloh b;oh b;oh >
>
> >Is it possible without dynamic XPath evaluation (which is supported only in >XSLT 2.0)? > Oh - sorry - You are right. There is no good solution, currently. There are some pure XSL extension functions (FXSLT ?? don't use them so i have not followed their dev), but it would probably be easier to give you the id at the section level than perform the expensive XPath. Even with XSLT 2.0, i would not want to rely on the section's *position* to create the the link. There is a possibility that sections will get reordered. That goes for numbering elements too. Are the sections separate XML docs (or whatever)? If so, you know you can always link to the ID of the XML piece. What i do instead having a large XML is break it up into small documents that I *think* might be reusable. The XML becomes much simpler and you can reorganize your page much easier. Those small documents *do* have an ID. This does not address dD ing down past each article's initial level, though (tough problem!). For example the output looks like:
jdfhjgd jkdjk jhfkd jkjk
jdfhjgd

jkdjk jhfkd jkjk

best, -Rob