This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm using Xalan for transforming a XML to a HTML usng a XSL. I need to build a table pulling the data from XML and sometimes there may not be any data to be filled in a table. In such cases, a space needs to be displayed. My problem here is, as and when there is no data to be displayed, it is also loosing the boundary (border) of the <td> element.
To be more precise,
As you can understand, my intention is to have a data displayed in <td> element, if available, otherwise nothing to display. This is not my problem, but when no data to display, it is also loosing boundary or border.
In plain HTML,
we can use for this purpose, obviously this does not work in XML. But the equivalent #160; is also not working. How to do I get this done. Any advice.
I was able to find some work around for this, by declaring a variable holding and then read the variable where ever I needed. But I'm not liking it. XSL spec might have already provided some decent solution for this. Any idea.