diff options
Diffstat (limited to 'doc/FAQ.html')
-rw-r--r-- | doc/FAQ.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/FAQ.html b/doc/FAQ.html index c269cbe8..90cefefe 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -24,15 +24,15 @@ A:link, A:visited, A:active { text-decoration: underline } </li> <li><em>passing parameters on the xsltproc command line doesn't work</em> <p><em>xsltproc --param test alpha foo.xsl foo.xml</em></p> - <p><em>the param does not get passed and ends up as ""</em></p> + <p><em>the param does not get passed and ends up as ""</em></p> <p>In a nutshell do a double escaping at the shell prompt:</p> - <p>xsltproc --param test "'alpha'" foo.xsl foo.xml</p> - <p>i.e. the string value is surrounded by " and ' then terminated by ' - and ". Libxslt interpret the parameter values as XPath expressions, so + <p>xsltproc --param test "'alpha'" foo.xsl foo.xml</p> + <p>i.e. the string value is surrounded by " and ' then terminated by ' + and ". Libxslt interpret the parameter values as XPath expressions, so the string -><code>alpha</code><- is intepreted as the node set matching this string. You really want -><code>'alpha'</code><- to be passed to the processor. And to allow this you need to escape the - quotes at the shell level using -><code>"'alpha'"</code><- .</p> + quotes at the shell level using -><code>"'alpha'"</code><- .</p> <p>or use</p> <p>xsltproc --stringparam test alpha foo.xsl foo.xml</p> </li> |