I am trying to include the HTML output of a JSP page in my XSL using the following statement:

 

<xsl:copy-of select="document('http://ahtest.forbes.com/department_home.jsp?namereference=business')" />

 

If I actually cut and paste the HTML output of that JSP page into the XSL instead of the above copy-of statement, it works fine. Otherwise, I get the following error:

 

Could not read resource file:/D:/test/www/cocoon/ahxml/xml/dept_home/department_home_business.xml

 

The file clearly exists, so what does this error really mean?

 

Here is the HTML code that the JSP produces, for reference:

 

<table class="noborder" cellspacing="0" cellpadding="10" width="400"><tr class="greyBackground"><td class="columnCells"><img src="" width="350" height="30" alt="The Business of America" class="noborder"/></td></tr><tr><td><p class="mediumBodyBlack"><a href="" class="mediumHeadOlive">&#8220;You Press the Button, We Do the Rest&#8221;</a>&#160;<span class="mediumBodyBlack">(October&#160;2003)</span><br/><span class="mediumBodyBlack">What digital camera makers can learn from George Eastman.</span><br/><span class="mediumBodyBlackItalic">John Steele Gordon</span><br/><a href="" class="mediumHeadOlive">Read More &gt;&gt;</a></p></td></tr></table>

 

Thanks in advance for any help.

 

Brad Campeau-Laurion

Senior Developer

Information Technology

Forbes Inc.

Reply via email to