Re: Initial review of xslt with no limits patch - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Initial review of xslt with no limits patch
Date
Msg-id 1281127558.2563.2.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Initial review of xslt with no limits patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Initial review of xslt with no limits patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On fre, 2010-08-06 at 13:01 -0400, Tom Lane wrote:
> 2. I'm not sure whether we ought to auto-single-quote the values.
> If we don't, how hard is it for users to properly quote nonconstant
> parameter values?  (Will quote_literal work, or are the quoting rules
> different for libxslt?)  If we do, are we giving up functionality
> someone cares about?

Not every parameter is a string.

Compare xsltproc:
 --param PARAMNAME PARAMVALUE      Pass a parameter of name PARAMNAME and value PARAMVALUE to the      stylesheet. You
maypass multiple name/value pairs up to a      maximum of 32. If the value being passed is a string, you can use
--stringparaminstead, to avoid additional quote characters      that appear in string expressions. Note: the XPath
expression     must be UTF-8 encoded.
 
 --stringparam PARAMNAME PARAMVALUE      Pass a parameter of name PARAMNAME and value PARAMVALUE where      PARAMVALUE
isa string rather than a node identifier.  Note:      The string must be UTF-8 encoded.
 




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: including backend ID in relpath of temp rels - updated patch
Next
From: Peter Eisentraut
Date:
Subject: Re: Initial review of xslt with no limits patch