cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Outputing a JDOM document in an XSP page
Date Tue, 12 Feb 2002 17:22:03 GMT
> From: Durrant, Peter [mailto:Peter.Durrant@COGNOS.com]
> 
> Hi
> 
> I have a JDOM document that I want to include in the output of an XSP
page.
> Is this possible?
> 
> The following code is used to create the JDOM document:
> 	<xsp:logic>
> 		..
> 		org.jdom.input.SAXBuilder builder = new
> org.jdom.input.SAXBuilder();
> 		org.jdom.Document doc = builder.build(url);
> 		..
> 	</xsp:logic>
> 
> I would then like to output the document in my XSP page:
> 	<xsp:page>
> 		..
> 		<myJDOMdoc>
> 			<!-- output JDOM document here -->
> 		</myJDOMdoc>
> 		..
> 	</xsp:page>
> 
> What do I need to do to output the document?

Try <xsp:expr>doc.getDocumentElement()</xsp:expr>.
(getDocumentElement will return Node, right? you need node inside
<xsp:expr/>)


Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message