xsl-list
[Top] [All Lists]

Re: Comma seperated parameter vals

2003-02-20 01:46:03
I need help with parameters, and default values.  I am making a form 
from XSL, and I need to pass in a set of default values to the 
stylesheet that renders the form.  The form structure will be unkown,

but I could pass a name/value pair.  However, I'm not sure how to 
work with text like this.
Would it be easy to split a named/value pair on lets say an "=" 
character.
The next step would be to pass a series of named value pairs, and 
maybe split them on, lets say a "|" pipe character.

Any ideas here?

Use the "str-split-to-words" template from FXSL.

There are many examples on this list, e.g. see:

http://sources.redhat.com/ml/xsl-list/2002-05/msg01295.html


 

=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>