Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2002 12:32:58 +0300
From:      Alexey Zelkin <phantom@ark.cris.net>
To:        Nik Clayton <nik@freebsd.org>
Cc:        Murray Stokely <murray@freebsdmall.com>, doc@freebsd.org
Subject:   Re: html in xml
Message-ID:  <20020425123258.A89174@ark.cris.net>
In-Reply-To: <20020424175117.L30474@canyon.nothing-going-on.org>; from nik@freebsd.org on Wed, Apr 24, 2002 at 05:51:17PM %2B0100
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
> > 
> > <xsl:variable name='$var_name' select='xxx'/>
> 
>     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 "<a name="LETTER_?">" 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




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