Re: [xslt] Why is an invalid stylesheet parameter value not an error?



On 2008-04-15 13:20:26 +0200, Vincent Lefevre wrote:
> But it isn't the same thing. I'd say:
> 
>   --param PARAMNAME PARAMVALUE
>      Pass a parameter of name PARAMNAME and value PARAMVALUE (written
>      as an XPath expression) to the stylesheet. You may pass multiple
>      name/value pairs up to a maximum of 32. If the value being passed
>      is a string, you can use --stringparam instead, to avoid additional
>      quote characters that appear in string expressions.

The note about the encoding should be added here too:

  --param PARAMNAME PARAMVALUE
     Pass a parameter of name PARAMNAME and value PARAMVALUE (written
     as an XPath expression) to the stylesheet. You may pass multiple
     name/value pairs up to a maximum of 32. If the value being passed
     is a string, you can use --stringparam instead, to avoid additional
     quote characters that appear in string expressions. Note: The XPath
     expression must be UTF-8 encoded.

BTW, I think that passing arguments that are not encoded in the locale
encoding is not intuitive, as arguments are generally typed by the user
thus are in the locale encoding. IMHO, the behavior should be controlled
by an option.

-- 
Vincent Lefèvre <vincent vinc17 org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]