XSL functions help for XML Forms
Q:I been having some trouble implementing a restriction on the RenderListItem of an XML Forms. I want to display only entries which have the date corresponding to the actual month. To do this I used a simple XSL IF the following way:
...
The Problem seems to be that whenever I use any date related function I get a rendering error: Resource cannot be displayed with XMLResourceRenderer
I don't understand what is wrong as this is the same function that is published in the w3schools website. I managed to isolate the error to date functions. I can't even get the current date using the current-date function:
Is it a limitation associated to the portal? Does anyone know if there is another way to accomplish what I'm looking for?
Ans:
You question seems to be related to the Portal group. Post your question to the Portal Forum. The portal team folks would be able to help you in resolving the issue you are facing.
https://forums.sdn.sap.com/forum.jspa?forumID=41
https://forums.sdn.sap.com/thread.jspa?threadID=110941
--------
The problem is in current-date(). Current date using this function is possible only in XSLT2.0 and PI/XI supports XI1.0. I will suggest you to call java function in XSL and get the current date.
http://help.sap.com/saphelp_nw04/helpdata/EN/55/7ef3003fc411d6b1f700508b5d5211/content.htm
---------
Thank you for your help but I ended up using Time-Dependent Publishing in order to achieve what I needed. It turned out to be a much easier solution. More info can be found here:
http://help.sap.com/saphelp_nw04/helpdata/EN/e8/a9a76828b8dc469969ff450ec81ced/content.htm
...
The Problem seems to be that whenever I use any date related function I get a rendering error: Resource cannot be displayed with XMLResourceRenderer
I don't understand what is wrong as this is the same function that is published in the w3schools website. I managed to isolate the error to date functions. I can't even get the current date using the current-date function:
Is it a limitation associated to the portal? Does anyone know if there is another way to accomplish what I'm looking for?
Ans:
You question seems to be related to the Portal group. Post your question to the Portal Forum. The portal team folks would be able to help you in resolving the issue you are facing.
https://forums.sdn.sap.com/forum.jspa?forumID=41
https://forums.sdn.sap.com/thread.jspa?threadID=110941
--------
The problem is in current-date(). Current date using this function is possible only in XSLT2.0 and PI/XI supports XI1.0. I will suggest you to call java function in XSL and get the current date.
http://help.sap.com/saphelp_nw04/helpdata/EN/55/7ef3003fc411d6b1f700508b5d5211/content.htm
---------
Thank you for your help but I ended up using Time-Dependent Publishing in order to achieve what I needed. It turned out to be a much easier solution. More info can be found here:
http://help.sap.com/saphelp_nw04/helpdata/EN/e8/a9a76828b8dc469969ff450ec81ced/content.htm