cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praktikant <>
Subject Cocoon and Xindice
Date Mon, 19 Aug 2002 06:44:21 GMT
I'm a newbie. I tried to use the /db/addressbook shipped with Xindice. I've
found some examples on But the examples didn't run
If I try to run this :	(db_test.xml)

<?xml version="1.0" encoding="UTF-8"?>
<collection:results query="//person[contains(fname,'John')]"
  resources="1" xmlns:collection="">
  <collection:result docid="address1">
    <person xmlns:src=""
      <phone type="work">563-456-7890</phone>
      <phone type="home">534-567-8901</phone>
      <email type="home"></email>
      <email type="work"></email>
      <address type="home">34 S. Colon St.</address>
      <address type="work">9967 W. Shrimp Ave.</address>

I only get the xml-source (above) on the Browser! ???

This is the part of the sitemap.xmap:
  <map:match pattern="db_test" type="wildcard">
   <map:generate src="db_test.xml" type="file"/>
   <map:serialize type="xml"/>
if I type this 
me,'John')> ]
in my browser I get all data about John.
So I ask you some questions:

Do you know what I have done wrong?
How do cocoon know which DB I want to use in the xml-file?

I use Win 2k, Tomcat 4.0.4, Cocoon 2.0.3 (compiled on Java 1.3.x), Xindice
1.0, Java SDK 1.3.1_04

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message