I am writing an XSL document, using which I need to print a report.
The report will have two tables and the table values and lables/header column should be displayed only if there is data in my JAVA object of class "Transfers".
I thought of using <xsl:if> condition to check if there is any data in the object of class Transfers, and then if there is no data then I will not print the table. But it dosent seems to work.
I am not sure how can I check for object "transfers" of class "Tranfers" as null.(i.e. whether the object has any value or it is null)
I tried below things, but it didnt work
If anyone has any other idea to do it, then please suggest.
But wouldn't you be transforming an XML document? In which case all of that talk of "data in my Java object" would be irrelevant or at least misleading. Look at the XML document you're transforming, and ask questions about that if you can't figure it out.
Joined: May 22, 2011
My XML looks as below:
I want to check whether tag <transfers> exist in my XML document. If the element <transfers> does not exist then its coressponding child elements(prod-no, quantity) will also not exist.