thanks for the response. But with the limited string functions from xpath and
xslt, how would the parse code look like?
thanks,

Signature
John Sivilla
Developer IT
Montreal, Canada
Blog: http://spaces.msn.com/members/sivilian/
> Hi John,
>
[quoted text clipped - 18 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
Scott L. Heim [MSFT] - 01 Sep 2005 21:48 GMT
Hi John,
I was referring to using "script" (i.e. JScript) to get what you need. For
instance, using the same URL sample for publishing your InfoPath template:
http://server/site/myFolder
Executing this script:
var strURI = XDocument.Solution.URI;
var strFormLib = strURI.substr(0, strURI.indexOf("template.xsn"));
Returns:
http://server/site/myFolder/Forms/
Whereas modifying the script to:
var strURI = XDocument.Solution.URI;
var strFormLib = strURI.substr(0, strURI.indexOf("Forms/template.xsn"));
Returns:
http://server/site/myFolder/
Does this help you?
Scott L. Heim
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights
John Sivilla - 01 Sep 2005 22:14 GMT
thanks Scott... Exactly what I was looking for.

Signature
John Sivilla
Developer IT
Montreal, Canada
Blog: http://spaces.msn.com/members/sivilian/
> Hi John,
>
[quoted text clipped - 27 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
Scott L. Heim [MSFT] - 01 Sep 2005 23:07 GMT
Thanks for letting me know John!
Take care,
Scott L. Heim
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights
Paul B - 20 Jul 2007 17:08 GMT
Do you have a way of doing this in IF 2007. I need the address of the site
the form is loaded not the location of the form template.
Thanks in advance
Paul