Re: Xindice inside Xsp

2002-09-09 Thread John Moylan

You need to search the archives and google for information on how to use 
Xindice from Cocoon. It has been done many times before and is well 
documented. I myself use it. Have a look at the sitemap for 2.03 and 
grep for XMLDB.

John

fxp wrote:

Thanks,
but I really need to make xpath queries against my documents, and I thought
Xindice was the key (it works fine). But if I can't  produce html pages from
it within cocoon, it's useless.
Exist seems to be ready for cocoon's users who don't know much about
Java,(or haven't got time to invest much in it)
(I've found th Exist xmldb.xsl (in the source), and its documentation.
http://www.pm.tu-chemnitz.de:8080/cocoon/documents/apidocs/org/apache/cocoon
/components/source/XMLDBSource.html
 I suppose it'll be a long job to apply it to xindice, even if the
logicsheet is said to work with other xml db Api compliant database)
 I'll shift to exist.

Thanks a lot for your Help.


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Handling lousy HTML

2002-09-06 Thread John Moylan

You probably need to preprocess your HTML with tidy before you introduce 
it to Cocoon.

John

Ola Berg wrote:

At work I have to handle really bad written HTML (they used some really bad HTML 
generator):

html
body
h1Hello, world!/H1

Hi there.
p
This is plain wrong.
p
But it works in certain browsers
/body
/html

I thought by using the HTMLGenerator, the Tidy-thing should take care of this. In my 
site map I have

map:generate src=\hello.html\ type=\html\/
map:serialize type=\xhtml\/

But the server complains about the source \hello.html\ being lousy html (containing 
unbalanced tags). 

1) Shouldn\'t tidy handle this? 

2)Or isn\'t tidy involved when I declare my sitemap as above?

If 1) is no, I plan to hack the functionality (going to the dev list first).

If 2) is no, I\'d like to know how to configure it to handle.

I use cocoon-2.0.2-bin.

TIA

/O


[EMAIL PROTECTED]
0733 - 99 99 17

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: AW: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

You should not need too. Look at the sitemap for Cocoon 2.03. - It has a 
matcher for xmldb xpath queries.

praktikant wrote:

how can I write for example this

http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2
')
http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi
2') ]

into the sitemap.xmap?

thanks

   -Ursprüngliche Nachricht-
   Von:praktikant [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 08:52
   An: [EMAIL PROTECTED]
   Betreff:Xindice - Pipeline to db

   Hi,
   now I can use Xindice in Cocoon.
   I've had a wrong idea from using Xindice.

   Thanks Roman! :o)
   
   But I haven't found something about a pipeline to Xindice.
   How can I build a pipeline to Xindice?
   How can I write back to Xindice?
   How to use XUpdate?
   Has someone simple examples for it?
   
   My db is on .../xindice/db/dvd
   The resources named
   mi.xml
   mi2.xml
   mib.xml
   mib2.xml

  map:pipeline 
   map:match pattern=dvd/mi2 type=wildcard 
map:generate src=xmldb/xpath/dvd/mi2.xml
type=serverpages/ 
map:transform src=dvd/film.xsl type=xslt/ 
map:serialize type=xml/ 
   /map:match 
  /map:pipeline

   Sorry, but no idea how to use XUpdate. :-(

   I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (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.
http://xml.apache.org/cocoon/faq/index.html

   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail:
[EMAIL PROTECTED]

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: AW: AW: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

Xupdate seems to very buggy in Xindice 1.0, I had problems getting the 
Xindice Xupdate examples to work. If you search the xindice mail list 
you'll find lots of other  people have had problems.

praktikant wrote:

Hi,
it works! Pretty cool!

And yes, I have already read the tutorials in the cocooncenter. Weeks ago
and x-times.
But it's not enough to unsterstand Cocoon.
Now I've found CocoonWiki seems to be interesting.
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon 
But nothing found about Xindice yet.

Allow me one more question. :o)

To write xml data into my Xindice db what do I use for?
Xupdate? - and can I use Cocoon that for?
  




**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: AW: AW: Xindice - Pipeline to db

2002-08-21 Thread John Moylan

Yes that is correct.

praktikant wrote:

I thought xpath is only read-only in Xindice!?

   -Ursprüngliche Nachricht-
   Von:John Moylan [mailto:[EMAIL PROTECTED]]
   Gesendet am:Mittwoch, 21. August 2002 15:25
   An: [EMAIL PROTECTED]
   Betreff:Re: AW: Xindice - Pipeline to db

   You should not need too. Look at the sitemap for Cocoon 2.03. - It
has a 
   matcher for xmldb xpath queries.

   praktikant wrote:

   how can I write for example this
   
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml
   http://localhost:8080/cocoon/xmldb/dvd/mi2.xml 
   
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film
   http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film 
   
   
  

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi


2
   ')
   
  

http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'m


i
   2') ]
   
   into the sitemap.xmap?
   
   thanks
   
  -Ursprüngliche Nachricht-
  Von:praktikant [mailto:[EMAIL PROTECTED]]
  Gesendet am:Mittwoch, 21. August 2002 08:52
  An: [EMAIL PROTECTED]
  Betreff:Xindice - Pipeline to db
   
  Hi,
  now I can use Xindice in Cocoon.
  I've had a wrong idea from using Xindice.
   
  Thanks Roman! :o)
  
  But I haven't found something about a pipeline to Xindice.
  How can I build a pipeline to Xindice?
  How can I write back to Xindice?
  How to use XUpdate?
  Has someone simple examples for it?
  
  My db is on .../xindice/db/dvd
  The resources named
  mi.xml
  mi2.xml
  mib.xml
  mib2.xml
   
 map:pipeline 
  map:match pattern=dvd/mi2 type=wildcard 
   map:generate src=xmldb/xpath/dvd/mi2.xml
   type=serverpages/ 
   map:transform src=dvd/film.xsl type=xslt/ 
   map:serialize type=xml/ 
  /map:match 
 /map:pipeline
   
  Sorry, but no idea how to use XUpdate. :-(
   
  I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (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.
   http://xml.apache.org/cocoon/faq/index.html
   
  To unsubscribe, e-mail:
   [EMAIL PROTECTED]
  For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  

-


   Please check that your question  has not already been answered in
the
   FAQ before posting.
http://xml.apache.org/cocoon/faq/index.html
   
   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail:
[EMAIL PROTECTED]
   
 
   




   

**
   The information in this e-mail is confidential and may be legally
privileged.
   It is intended solely for the addressee. Access to this e-mail by
anyone else
   is unauthorised. If you are not the intended recipient, any
disclosure,
   copying, distribution, or any action taken or omitted to be taken in
reliance
   on it, is prohibited and may be unlawful.
   Please note that emails to, from and within RTÉ may be subject to
the Freedom
   of Information Act 1997 and may be liable to disclosure.
   

**

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

   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail:
[EMAIL PROTECTED]

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail

Re: Cocoon and Xindice

2002-08-19 Thread John Moylan

This may be of some use to you, it's a snippet from my sitemap showing 
the use of stylesheets with Xindice. Note the use of map:transform 
src=stylesheets/jtest.xsl/map:transform
You are also serializing as XML specifically in your sutemap which from 
your email, does not sound like the effect you require. Try serializing 
to html instead.

How do cocoon know which DB I want to use in the xml-file?

You tell cocoon the collection(db) you want to use in the URL. eg the following URL is 
using the addressbook collection(db).


http://localhost:8080/cocoon/xmldb/addressbook/?xpath=//person[contains(fnam
e,'John')

Regards,
John







map:match pattern=xmldb/**
map:match pattern=xpath type=request-parameter
map:generate 
src=xmldb:xindice://localhost:4080/db/{../1}#{1}/
map:transform src=stylesheets/jtest.xsl
/map:transform
map:serialize/
/map:match
map:generate src=xmldb:xindice://localhost:4080/db/{1}/
map:transform src=stylesheets/jtest.xsl
/map:transform
map:serialize/

praktikant wrote:

Hello!
I'm a newbie. I tried to use the /db/addressbook shipped with Xindice. I've
found some examples on http://cocooncenter.de. But the examples didn't run
yet.
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=http://apache.org/cocoon/xmldb/1.0;
  collection:result docid=address1
person xmlns:src=http://xml.apache.org/xindice/Query;
  src:col=/db/addressbook
  src:key=address1
  fnameJohn/fname
  lnameSmith/lname
  phone type=work563-456-7890/phone
  phone type=home534-567-8901/phone
  email type=home[EMAIL PROTECTED]/email
  email type=work[EMAIL PROTECTED]/email
  address type=home34 S. Colon St./address
  address type=work9967 W. Shrimp Ave./address
/person
  /collection:result
/collection:results

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

This is the part of the sitemap.xmap:
...
map:pipeline
  map:match pattern=db_test type=wildcard
   map:generate src=db_test.xml type=file/
   map:serialize type=xml/
  /map:match
 /map:pipeline
...
--
if I type this 
http://localhost:8080/cocoon/xmldb/addressbook/?xpath=//person[contains(fnam
e,'John')
http://localhost:8080/cocoon/xmldb/addressbook/?xpath=//person[contains(fna
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. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: strange xinclude problem

2002-08-13 Thread John Moylan

I have just experienced the same problem when I tried using multiple 
xincludes:
The following styleshhet works fine with the first xinclue only but 
throws out Failed to execute pipeline.: org.xml.sax.SAXParseException: 
Premature end of file. which is probably caused by some sort of problem 
with flow control between the two xinclude's

John_

_

xsl:template match = /dailycollection
xsl:for-each select = //@src:key
xsl:element name=a
xsl:attribute name=href
xsl:value-of select=./
/xsl:attribute
table width=100% border=1tr
tdxi:include 
href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(//NewsLines/HeadLine)//td
tdxi:include 
href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(/NewsML/NewsItem/NewsComponent/NewsItem/NewsComponent/NewsComponent/Metadata/Property[@FormalName='MediaName']/@Value)//td
/tr/table

/xsl:element
/xsl:for-each

/xsl:template




Torsten Knodt wrote:

Hello Albert,
  

Hello Albert,
thanks for your fast answer.
  

I've a little strange problem with xinclude. I get a exception with
  

Premature  end of file, but accessing the URI (cocoon://...)
directly works. Has  someone a hint where to look at?
Have you checked if it is a well formed xml file?


I've checked it with xmllint, which gives no errors.
  

Ok then.



  

When I look into it, it also seems ok.
And it is created via xml serializer, so I don't know, how it shouldn't
be  well formed.
  

The xml serializer doesn't guarantee that the document is well formed,
xmllint does.



  

You may access it with cocoon:// but not with xinclude


Is it possible to see, where exactly the problem is? A line number or
the  element would be a help.
  

I don't know if a log transformer after the xinclude would be of any
help... If you want to try it put
xsl:transform type=log
  xsl:parameter name=logfile value=filename.log/
/xsl:transform
I believe that as it is within a pipe a process will be thrown for each
transform and it is not necessary that one has finished for the other to
be started so you may log only until where it crashed... it's just an
idea..


I've tried it. It looks OK in my opinion. It also ends with an endDocument.

With kind regards
   Torsten Knodt

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: strange xinclude problem

2002-08-13 Thread John Moylan

To follow up. I can confirm that using cocoon:// instead of http:// 
resolves the issue.

John

I have just experienced the same problem when I tried using multiple
xincludes:
The following styleshhet works fine with the first xinclue only but
throws out Failed to execute pipeline.: org.xml.sax.SAXParseException:
Premature end of file. which is probably caused by some sort of problem
with flow control between the two xinclude's

John_

_

xsl:template match = /dailycollection
 xsl:for-each select = //@src:key
 xsl:element name=a
 xsl:attribute name=href
 xsl:value-of select=./
 /xsl:attribute
 table width=100% border=1tr
 tdxi:include
href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(//NewsLines/HeadLine)//td
 tdxi:include
href=http://kun.rte.ie:8080/cocoon/{.}#xpointer(/NewsML/NewsItem/NewsComponent/NewsItem/NewsComponent/NewsComponent/Metadata/Property[@FormalName='MediaName']/@Value)//td
 /tr/table

 /xsl:element
 /xsl:for-each

/xsl:template


**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: strange xinclude problem

2002-08-12 Thread John Moylan

Can you post some code, I would say that this is more than likely a 
syntax problem. I'm using xinclude in 2.03 and it works a treat.
Are you including via http from a different machine? or is it a local 
include?

Torsten Knodt wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,
I've a little strange problem with xinclude. I get a exception with Premature 
end of file, but accessing the URI (cocoon://...) directly works. Has 
someone a hint where to look at?

Thanks in advance
   Torsten Knodt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9V9/QvxZktkzSmiwRAvsZAJ948lKGIu1DBt0o+BPXwMUOz7vf9gCfQkhb
zADDRBhALxLqO/497dfr2As=
=nYuh
-END PGP SIGNATURE-


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: more xindice problems

2002-08-09 Thread John Moylan

Thanks, that works.

The Addressbook.war sample that comes with xindice must have set this up 
on my test machine when I installed it. As I have no recollection of 
copying the jar to /WEB-INF/lib the first time around.

John


KOZLOV Roman wrote:

Hi John,

It seems that xindice.jar is absent in your application (cocoon/WEB-INF/lib
folder) on the second machine.

Roman

John Moylan wrote:

  

It's me again with more newbie woes. I have just finished a
cocoon2.0.3/xindice1.0/tomcat4.04/jdk1.3.0 project on my test box. All
is working beautifully!

However, When moving my application to a live machine, I get the
following error when I try to access cocoon/xmldb/collection/

Both machines classpaths/environment variables/software versions are
identical. Can anyone explain why I am getting this error and how I can
fix it?

John

*type* fatal

*message* _Problem setting up the connection to XML:DB:
org.apache.xindice.client.xmldb.DatabaseImpl_

*description* _org.apache.cocoon.ProcessingException: Problem setting up
the connection to XML:DB: org.apache.xindice.client.xmldb.DatabaseImpl:
java.lang.ClassNotFoundException:
org.apache.xindice.client.xmldb.DatabaseImpl_

*sender* org.apache.cocoon.servlet.CocoonServlet

*source* Cocoon servlet

**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]

  





**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




xpath queries not working in xmldb

2002-08-03 Thread John Moylan

Hi,

Are there issues I should be aware of when using the xmldb using xindice 
from the command line to return documents using:
xindice xpath_query -c /db/extractsdb -q 
//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is all files published on the 20020710

But, when I use the following in cocoon:
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is for all files in the collection.

Does Cocoon's XMLDB transformer have problems with attributes?

John


**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




xpath queries not working in xmldb

2002-08-01 Thread John Moylan

Hi,

Are there issues I should be aware of when using the xmldb using xindice
from the command line to return documents using:
xindice xpath_query -c /db/extractsdb -q
//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is all files published on the 20020710

But, when I use the following in cocoon:
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is for all files in the collection.

Does Cocoon's XMLDB transformer have problems with attributes, or with 
timeouts on xpath queries in Xindice( I have created an index, but I am 
querying 4000 xml files each of which is between 80k-500k.)

John



**
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
**

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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: hello example question

2002-06-18 Thread John Moylan

There is a really good article on www.ibm/developerworks/ called introduction to 
cocoon 2. It explains the whole sitemap concept in detail.

John Moylan


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




cinclude + xpointer

2002-06-18 Thread John Moylan

Does cinclude work with xpointer, I am trying to do something like:

cinclude:include src=cocoon:/directory.xml#xpointer((//NewsLines/HeadLine)/

But I am only getting directory.xml as output. I am trying to include only a section 
of the origional directory.xml which is sitemap generated.





-- 
John G. Moylan

_
pub  1024D/A5B03E9B 2002-04-24 John G Moylan [EMAIL PROTECTED]
 Key fingerprint = 4859 3C71 2CA6 99CF 62D9  5960 6613 5049 A5B0 3E9B
sub  1024g/0EF26151 2002-04-24 [expires: 2003-04-24]


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Cannot get Cocoon going with Tomcat 4.0.3

2002-06-13 Thread John Moylan


According the the FAQ, you need a different version of Xerces for some of the v4 
tomcat's. I had the same problem and simply reverted to Tomcat 3.3 which is very 
painless to set up.

John

On Thu, Jun 13, 2002 at 09:41:23AM -0400, Geoff Howard wrote:
 From: Geoff Howard [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: RE: Cannot get Cocoon going with Tomcat 4.0.3
 Date: Thu, 13 Jun 2002 09:41:23 -0400
 X-Mailer: Internet Mail Service (5.5.2653.19)
 
 or 4.0.1
 
  -Original Message-
  From: leo leonid [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 13, 2002 3:11 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Cannot get Cocoon going with Tomcat 4.0.3
  
  
  
  
  
  On Thursday, June 13, 2002, at 12:14  Uhr, Robert Nicholson wrote:
  
   Are the instructions in Installing Apache Cocoon document 
  sufficent to 
   get
   it working? I've done what's described and it's not working for me.
  
  consider using Tomcat 4.0.4 or 4.1.3.
  thus instructions reduce to putting cocoon.war in webapps dir.
  (I use RH7.2, JDK1.31)
  /Leo
  
  
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
  
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
  
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
John G. Moylan

_
pub  1024D/A5B03E9B 2002-04-24 John G Moylan [EMAIL PROTECTED]
 Key fingerprint = 4859 3C71 2CA6 99CF 62D9  5960 6613 5049 A5B0 3E9B
sub  1024g/0EF26151 2002-04-24 [expires: 2003-04-24]


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: decoding base64 tiff files embedded in XML

2002-06-13 Thread John Moylan


Not knowing how to write a reader or a serializer I think I'm going to have to run a 
batch process, something like the following in BASH/Perl and sabletron (because it was 
installed.)




DIR=/usr/local/jakarta-tomcat-3.3.1/webapps/cocoon/content

ls $DIR/*.xml  /tmp/xmlfiles

for i in `cat /tmp/xmlfiles`
do
sabcmd $DIR/base64tiff.xsl $i $i.64tiff
perl -MMIME::Base64 -ne 'print decode_base64($_)' $i.64tiff 
$i.tiff
convert $i.64tiff $i.jpg
done




My stylesheet -simple

?xml version=1.0?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=/
xsl:value-of 
select=//ContentItem/Encoding[@Notation='base64']/DataContent/
/xsl:template

/xsl:stylesheet




However, all of my tiff base64 files have ?xml version=1.0 encoding=UTF-8? 
prepended to them - I'm curios as to wether or not their is a way to avoid this at the 
top of xsl processed files using standard xslt techniques?





On Thu, Jun 13, 2002 at 03:50:16PM +0100, Ricardo Trindade wrote:
 From: Ricardo Trindade [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: decoding base64 tiff files embedded in XML
 Date: Thu, 13 Jun 2002 15:50:16 +0100
 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
 
 there is a transformer that removes some nodes from XML and changes them
 with links. I think you could use this aproach.
 
 For the actual transformation I imagine you can use some library that does
 that without a lot of effort... sun used to have a java imaging package...
 
 You could code a sitemap element (perhaps a reader) to call shell commands,
 but you would loose all portability and gain dependencies on external
 stuff(perl,etc..)
 
 -Original Message-
 From: John Moylan [mailto:[EMAIL PROTECTED]]
 Sent: quinta-feira, 13 de Junho de 2002 15:09
 To: [EMAIL PROTECTED]
 Subject: decoding base64 tiff files embedded in XML
 
 
 Hi,
 
 I'm new to this list and to Cocoon2, however I need to develop an
 application which transforms NewsML feeds into regular HTML for browsing.
 Easy you say, right? Anyway the part I'm am having difficulty with is in
 converting base64 embedded tiff images into png on the fly.
   I don't know much about Java. I have a one liner in Perl which decodes the
 tiff from the shell prompt:
 
   perl -MMIME::Base64 -ne 'print decode_base64($_)' /home/john/tiff.64
 j.tiff
 
   and an one liner which uses imagemagick's convert from the shell:
 
   convert j.tiff j.png
 
 Can I somehow use turn one or both, of these one liners into sitemap
 generators (is that the right term.) or is their any easier/better way. I
 can preprocess my XML files from the command line, but that does not seem
 like a very elegant/manageable solution.
 
 
 
 
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-- 
John G. Moylan

_
pub  1024D/A5B03E9B 2002-04-24 John G Moylan [EMAIL PROTECTED]
 Key fingerprint = 4859 3C71 2CA6 99CF 62D9  5960 6613 5049 A5B0 3E9B
sub  1024g/0EF26151 2002-04-24 [expires: 2003-04-24]


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]