Re: [GENERAL] Passing tokens to a function

2009-05-22 Thread Tom Lane
Scott Bailey writes: > I'd like to make an XMLTABLE() function, probably in plpython (not C). > And I'd like to follow the SQL/XML standard. So a function call should > look something like this: > SELECT * > FROM XMLTABLE('//node' >PASSING xmldoc >COLUMNS id INT PATH '@id', > name

[GENERAL] Passing tokens to a function

2009-05-22 Thread Scott Bailey
I'd like to make an XMLTABLE() function, probably in plpython (not C). And I'd like to follow the SQL/XML standard. So a function call should look something like this: SELECT * FROM XMLTABLE('//node' PASSING xmldoc COLUMNS id INT PATH '@id', name VARCHAR(30) PATH 'name') Is this possib