Ben Pope wrote:
Philipp Suter wrote:
Hi
I am having this simple but serious problem:
I am loading XML from a XML-Database and want to include some parts of
the loaded Document into the XSP-page (respectivelly its result).
How can I include the XML, which I get from a Javaclass by calling one
of its functions? I tried to include it as a String, but this happens
to be a String.. Is there any way to include pre-formatted XML as a
whole in an XSP-page. I only found examples how to include text or
Strings or Integers, but how do I include XML? A hint to a simple
example or even the right class in the API could already be of great aid.
Instead of calling it's function, turn it into a generator or a
transformer and source it with CInclude / XInclude / Aggregation?
You could use in your xml document something like:
<xi:include href="persons/?xpath=/[EMAIL PROTECTED]'some-id']" />
and in your sitemap:
<map:match pattern="persons">
<map:match type="request-parameter" pattern="xpath">
<map:generate src="xmldb:xindice://localhost:8080/db/{../1}#{1}"/>
<map:serialize />
</map:match>
<map:generate src="xmldb:xindice://localhost:8080/db/{1}"/>
<map:serialize />
</map:match>
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Andre H. Juffer | Phone: +358-8-553 1161
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]