xxforms:path()?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms:path()?

Ryan Puddephatt
All,
    In saxon there is an extention function, saxon:path(), which returns the string value of the xpath for the current item. Is there a version of this function in xxforms? I tried using the saxon version but it doesn't include the instance() prefix.

Thanks

Ryan
--

Ryan Puddephatt
Software Engineer
 
Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
"If you lie to the compiler, it will get its revenge." - Henry Spencer
"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free." - Steve McConnell
"If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." - Gerald Weinberg



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:path()?

Alessandro Vernet
Administrator
Hi Ryan,

On 5/29/07, Ryan Puddephatt <[hidden email]> wrote:
>      In saxon there is an extention function, saxon:path(), which returns
> the string value of the xpath for the current item. Is there a version of
> this function in xxforms? I tried using the saxon version but it doesn't
> include the instance() prefix.

Unfortunately not. Or at least not yet ;). In some cases a workaround
would be to do a concat(): assuming saxon:path() return an expression
that starts with "/", you could write:

concat('instance(''...'')/root()', saxon:path(...))

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws