<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><br>
OK, I got this to work with <br>
<br>
tokenize($c:input, "/")[last()]<br>
<br>
which is fine. I wonder why referring to the ref directly did not work....<br>
<br>
<blockquote style="border: 0px none;"
cite="mid:52C56EAA.3010605@trilobytesystems.com" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="dnataraj@trilobytesystems.com" photoname="Deepak
Natarajan" src="cid:part1.09080003.09070906@trilobytesystems.com"
name="compose-unknown-contact.jpg" height="25px" width="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true"
href="mailto:dnataraj@trilobytesystems.com" style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Deepak Natarajan</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">January 2, 2014
at 3:50 PM</span></font></div></div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<br>
Hi -<br>
<br>
I'm struggling with a simple evaluation (I've removed namespace
declarations for readability) :<br>
<br>
<attribute><br>
<ref><span style="font-weight: bold;">ri:orgdesc</span></ref><br>
<inbound><br>
<expression><br>
<script><br>
<language><a moz-do-not-send="true"
href="http://www.w3.org/TR/xpath/" class="moz-txt-link-freetext">http://www.w3.org/TR/xpath/</a></language><br>
<code ...><br>
tokenize($account/attributes/ri:orgdesc,"/")[last()]<br>
</code><br>
</script><br>
</expression><br>
<target><br>
<path>$user/extension/apos:aposUnitAttributes</path><br>
</target><br>
</inbound><br>
</attribute><br>
<br>
I've tried everything, but the variable passed to the XPath tokenize
function is always nil (I know the function works correctly, since I use
it elsewhere, and using a literal string above produces the correct
results)<br>
<br>
I've tried including a <source> before the expression with an
explicit <name> but that doesn't seem to work either.<br>
<br>
Thanks for any input! - I'm using build <span><meta content="text/html;
charset=ISO-8859-1" http-equiv="content-type">Version:
2.3-SNAPSHOT, describe: git-v2.3devel-383-g6ef8f72 </span><br>
<br>
BR/Deepak<br>
<br>
</div>
</blockquote>
</body></html>