How to check node is existed or not in xforms

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

How to check node is existed or not in xforms

Laxmi Narayana-3
Hi,
 
In my application some times node will come from java class if attachments are there  ,some times it will not come if attachments are not there. How to know wheather node is there or not in xforms. Based on that i have to make condition in view.
Please help me.


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to check node is existed or not in xforms

Hank Ratzesberger

Hi,

Will the XPath 2.0 function exist() work in your instance?  
Along with the if construct

"if ( exists( instance('mine')/xpath/to/it ) ) then ... else ()"

not sure if you need a string, boolean or node to be returned, or 
an empty sequence, () .

Regards,
Hank

On Apr 8, 2009, at 4:30 AM, Laxmi Narayana wrote:

Hi,
 
In my application some times node will come from java class if attachments are there  ,some times it will not come if attachments are not there. How to know wheather node is there or not in xforms. Based on that i have to make condition in view.
Please help me.

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

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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
OW2 mailing lists service home page: http://www.ow2.org/wws