1. PD4ML does not implement JSP container functionality, so any custom tags or JSP code is ignored. If you need to convert a JSP page, you should let Tomcat to process it before it is passed to PD4ML. For example:

pd4ml.render( “http://myserver.com/webapp/source.jsp”, os );

assuming that http://myserver.com/webapp/source.jsp” returns HTML document with already resolved/interpreted.

Another option is to enclose source.jsp content within and tags. (see http://www.pd4ml.com/reference.htm#6.1)

2. CSS properties “pd4ml-visibility: hidden; pd4ml-display: none” should help.