File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes iFrame in xsl file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "iFrame in xsl file" Watch "iFrame in xsl file" New topic

iFrame in xsl file

nuthan kumar
Ranch Hand

Joined: Feb 14, 2006
Posts: 47
I am parsing XML file using xsl.. in xsl I need to call one jsp using iFrame with two parameters.
when I tried like this, i am getting error..
<iframe name="mbomFilter" id="mbomFilter" src="../test.jsp?par1='test1'&par2='test2'" height="40" width="100%" marginheight="0" marginwidth="0" scrolling="yes" frameborder="0"></iframe>

I think the problem is with & symbol in the src. can some one please help me how to avoid this.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

The problem could be something to do with that ampersand. However you have seen the error message and we have not, which makes it difficult to be certain. It is a rule of XML that ampersands have to be escaped as "&amp;", so yes, it would be a good idea to follow that rule.
[ September 18, 2006: Message edited by: Paul Clapham ]
I agree. Here's the link:
subject: iFrame in xsl file
It's not a secret anymore!