<div dir="ltr">That&#39;s strange, I thought it should be quoted like: &amp;apos;<br><br><div class="gmail_quote">2008/9/6 Geoffrey Sneddon <span dir="ltr">&lt;<a href="mailto:foolistbar@googlemail.com">foolistbar@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="Wj3C7c"><br>
On 6 Sep 2008, at 13:18, Alex Klizhentas wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All, I&#39;m facing the following issue:<br>
<br>
xslt transformations accept xpath expressions as parameters, and if you<br>
write something like:<br>
<br>
transform(a,param = &quot; &#39; &nbsp;&#39; &nbsp;&#39; &quot;) - xpath evaluation will fail. Is there any<br>
common/standard way to prevent that?<br>
</blockquote>
<br></div></div>
No, what I&#39;ve been using is:<br>
<br>
def escapeXPathString(string):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;return u&quot;concat(&#39;&#39;, &#39;%s&#39;)&quot; % string.replace(u&quot;&#39;&quot;, u&quot;&#39;, \&quot;&#39;\&quot;, &#39;&quot;)<br>
<br>
The first parameter to the concat function is needed because it must always have at least two parameters.<br><font color="#888888">
<br>
<br>
--<br>
Geoffrey Sneddon<br>
&lt;<a href="http://gsnedders.com/" target="_blank">http://gsnedders.com/</a>&gt;<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Alex<br>
</div>