|
From: Ralph T. <ra...@gm...> - 2006-02-11 09:13:53
|
Hi ASL,
I'm trying to write a function to do xstring substitution, which
should work something like this:
sheet {
interface:
val1 : "hello world, " ;
val2: 17 ;
output:
string <=3D=3D xstring_sub( "<xstring id=3D'text'/> the number is <xstrin=
g
id=3D'num'/>", [{ name: "text", value: @val1 }, { name: "num", value:
@val2 }] );
};
and have @string be "hello world, the number is 17". I can easily get
the values that I need from the sheet, but how can I create an
xstring_context_t that contains these values? Is there a way to put a
value_t straight in there?
|