From owner-freebsd-doc Thu Apr 25 2:33:13 2002 Delivered-To: freebsd-doc@freebsd.org Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by hub.freebsd.org (Postfix) with ESMTP id 0CE3137B422; Thu, 25 Apr 2002 02:33:06 -0700 (PDT) Received: from ark.cris.net (root@ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id MAA07664; Thu, 25 Apr 2002 12:33:00 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id g3P9Ww297045; Thu, 25 Apr 2002 12:32:58 +0300 (EEST) Date: Thu, 25 Apr 2002 12:32:58 +0300 From: Alexey Zelkin To: Nik Clayton Cc: Murray Stokely , doc@freebsd.org Subject: Re: html in xml Message-ID: <20020425123258.A89174@ark.cris.net> References: <20020420205539.A29136@ark.cris.net> <20020422091454.GF16322@freebsdmall.com> <20020423082441.R30474@canyon.nothing-going-on.org> <20020423224618.A99442@ark.cris.net> <20020424175117.L30474@canyon.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020424175117.L30474@canyon.nothing-going-on.org>; from nik@freebsd.org on Wed, Apr 24, 2002 at 05:51:17PM +0100 X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, On Wed, Apr 24, 2002 at 05:51:17PM +0100, Nik Clayton wrote: > > 1. is there any way to set variable with name defined at > > runtime ? Something like: > > > > > > xsltproc --param var_name "'xxx'" > > Note how strings must be double quoted like this. I am looking for way to do somthing like: if (lookup Ok) { var = value; } > > > 2. is there any way to change variable values ? XSLT specification > > says that's not possible, but what about xsltproc implementation ? > > Nope, not possible. What are you trying to do? I am trying to generate alphabetical menu using xsltproc's possibilities. Looking for XSLT2.0 documentation shown that its easy to do, but looks like current libxml2 don't support 2.0 :-( Look to http://www.FreeBSD.org/commercial/software.html for example. There're two rules: 1. if vendor started with "letter" existing in the list, make this leter a link to anchor "#LETTER_?" 2. if vendor supposed to output to Result Tree is a first vendor with a "letter, add "" before it. PS: Actually I am doing it as my first XSLT tutorial and looks like I found a way how to do it, but I want to find most efficient way. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message