Re: Finding DTD when aggregating content using XSL

2002-08-09 Thread Rick Tessner

On Fri, 2002-08-09 at 14:03, Ross Gardler wrote:
 
> Generation does not fail on any document other than those that have 
> aggregate docuements thorugh  select="document(@href)"/>
> so I don't think it is a problem with catalogs, rather it seems to be a
> problem with the XSLT transfromer not being aware of the catalogs. Is 
> there any way of informing the XSLT engine where these catalogs are?

Hmmm ... What message are you getting back from Cocoon/Forrest?  Hard to
say what's going on here or how to proceed without that ...

Are there snippets of a logfile or some sort of output detailing the
error that you could send?  Thx.
 
-- 
Rick Tessner
[EMAIL PROTECTED]

"Breathe.  Breathe again.  Keep doing that."

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

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




Re: UTF-8

2002-08-09 Thread sidharthg


Hello All
I have resoluted successfully the problem with UTF-8
The solution is
1) Create a DB with encoding UTF-8
2) In XSP or the action class write request.setCharacterEncoding("UTF-8")
3) Since the encoding by default to the serializer is UTF-8, so in response
this won't be a problem
So whatever charcters u input in any language will result in the same
charcters whatever u had inpu

Regards
Sidharth Ghai
Vmoksha Technologies
VI th Floor, Corporate Towers 'C'
Diamond District
Kodihally
Banglore


   
  
KOZLOV Roman   
  
 cc: 
  
   Subject: Re: UTF-8  
  
08/09/2002 12:23   
  
PM 
  
Please respond 
  
to cocoon-users
  
   
  
   
  




Hi,

1) What do you get without xsl processing, I mean what is in XML output of
your xsp? Is it contain proper text?
2) Try  instead
of  in
your xsl.

Roman

 By the way, my name is Roman.

[EMAIL PROTECTED] wrote:

> HI KoZ
> I am attaching the class file the xsp and the xsl as well please have
alook
> and tell me where I am wrong
> (See attached file: UOM_Catalogue.xsp)(See attached file:
> UOM_Catalogue.xsl)(See attached file: testing.java)
>
> Regards
> Sidharth Ghai
> Vmoksha Technologies
> VI th Floor, Corporate Towers 'C'
> Diamond District
> Kodihally
> Banglore
>
>
> KOZLOV Roman
>  scade.com> cc:
>Subject: Re: UTF-8
> 08/08/2002 07:25
> PM
> Please respond
> to cocoon-users
>
>
>
> Hi Siddharth,
>
> There are escaped symbols (like &ien;) in Cocoon's result. This is the
> reason of
> the different presentation. So it is necessary find the reason of
escaping.
> It
> will be great to see your xsp (if you use it) code which you use to
> retrieve
> data.
> There is a mail in the list archive concerned the same problem:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102348865427773&w=2
>
> I'm not sure that it'll  help but there is some info in the list archive
> also :
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101232288807933&w=2
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100815928226594&w=2
>
> Roman
>
> [EMAIL PROTECTED] wrote:
>
> > Hi Guys
> > I am attaching these two files with out put from a jsp and cocoon
> > Please help
> >
> > (See attached file: CocoonHtml.txt)(See attached file: jsphtml.txt)
> > Regards
> > Sidharth Ghai
> > Vmoksha Technologies
> > VI th Floor, Corporate Towers 'C'
> > Diamond District
> > Kodihally
> > Banglore
> >
> >
> > kavitha ramesh
> >  [EMAIL PROTECTED]
> > hoo.co.in>cc:
> >   Subject: Re: UTF-8
> > 08/08/2002
> > 04:40 PM
> > Please respond
> > to cocoon-users
> >
> >
> >
> > Hi Siddharth,
> >
> > I had an XML file messages_zh.xml which has the
> > messages  in chinese.I opened a chinese text editor
> > and entered the text in chinese.My XML file looks
> > like:
> >
> > 
> > 
> > 
> > »¶Ó­ÄãʹÓÃÎÒÃǵķþÎñ£(this are chinese characters)
> > 
> > 
> >
> > And when I restarted the server my browser displayed
> > chinese message,,,
> >
> > I dont know whether my example is useful for you,,,
> >
> > Kavitha.
> >
> >  --- [EMAIL PROTECTED] wrote: > Hello All
> > > I am doing the following
> > > 1) I have a Unicode database in PostgreSQl
> > > 2) I am inputting some data other than english in
> > > the database.
> > > 3) I am trying to retrieve the data back through
> > > cocoon2.0.3. AN d getting
> > > the HTML as
> > > 
> > > 
> > > 
> > > But the data which was entered is coming like this
> > >
> > >  à ¥�à ¤¸s
> > >
> > >
> > >  à ¤¦à ¥�à ¤ªà ¤¨à ¥�à ¤�
> > >
> > >
> > >
> > >
> > >
> > > 4) I am trying to do the same thing with JSP and am
> > > getting the data
> > > correct on

Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Joerg Heinicke

Hi Justin,

isn't adding a non-breaking space to the textarea (as default text) the 
best solution?

Joerg

Justin Fagnani-Bell wrote:
> Hmmm... well I'm getting some strange things happening now. The cdata 
> section is no longer working (i swear it worked :), and Chimera is not 
> rendering things correctly anymore, it's acting like Mozilla.
> 
> When it was working the textarea tags were not escaped.
> 
> For now, I made a small hack (inserting some default text) so I can 
> continue with my work and I'll revisit this ASAP.
> 
> Justin
> 
> 
> On Friday, August 9, 2002, at 03:06 PM, Joerg Heinicke wrote:
> 
>> I wonder that this is working. The  will be 
>> escaped because of CDATA section to  
>> when it's parsed and it shell be shown in the browser as text 
>>  - but it should not work.
>>
>> That was what I expect. I tried to test it, but it was not possible 
>> for me with the current Cocoon from CVS. In my sitemap there is written
>>
>>> type="text/html" name="xhtml" pool-grow="2" pool-max="64" pool-min="2" 
>> src="org.apache.cocoon.serialization.XMLSerializer">
>>  -//W3C//DTD XHTML 1.0 Strict//EN
>> > system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
>>  UTF-8
>>  
>>
>>
>> but every parameter is ignored: I get no doctype declarations and no 
>> cdata sections (even when the comment  is removed).
>>
>> What's up with XMLSerializer??
>>
>> Regards,
>>
>> Joerg
>>
>>
>>
>> Justin Fagnani-Bell wrote:
>>
>>> Yes! finally.
>>> Here's what I did. I added a  tag around my  tags in 
>>> my stylesheet, then put >> elements>cdata in my serializer definition. 
>>> Now even when the textarea has no text the tag doesn't get touched. 
>>> The browser just ignores the made up cdata tag and everythings fine.
>>> I tried what you suggested, (adding >> elements>textelement) but when the textarea 
>>> contained just text (no markup) i'd get something like this: 
>>> [CDATA[some text]] in the text field.
>>> Thanks everyone.
>>> --Justin
>>
>>
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> 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. 
> 
> 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. 

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




Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell

Hmmm... well I'm getting some strange things happening now. The cdata 
section is no longer working (i swear it worked :), and Chimera is not 
rendering things correctly anymore, it's acting like Mozilla.

When it was working the textarea tags were not escaped.

For now, I made a small hack (inserting some default text) so I can 
continue with my work and I'll revisit this ASAP.

Justin


On Friday, August 9, 2002, at 03:06 PM, Joerg Heinicke wrote:

> I wonder that this is working. The  will be 
> escaped because of CDATA section to  
> when it's parsed and it shell be shown in the browser as text 
>  - but it should not work.
>
> That was what I expect. I tried to test it, but it was not possible for 
> me with the current Cocoon from CVS. In my sitemap there is written
>
> type="text/html" name="xhtml" pool-grow="2" pool-max="64" pool-min="2" 
> src="org.apache.cocoon.serialization.XMLSerializer">
>  -//W3C//DTD XHTML 1.0 Strict//EN
>  system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
>  UTF-8
>  
>
>
> but every parameter is ignored: I get no doctype declarations and no 
> cdata sections (even when the comment  is removed).
>
> What's up with XMLSerializer??
>
> Regards,
>
> Joerg
>
>
>
> Justin Fagnani-Bell wrote:
>> Yes! finally.
>> Here's what I did. I added a  tag around my  tags in 
>> my stylesheet, then put > elements>cdata in my serializer definition. 
>> Now even when the textarea has no text the tag doesn't get touched. 
>> The browser just ignores the made up cdata tag and everythings fine.
>> I tried what you suggested, (adding > elements>textelement) but when the textarea 
>> contained just text (no markup) i'd get something like this: 
>> [CDATA[some text]] in the text field.
>> Thanks everyone.
>> --Justin
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Joerg Heinicke

I wonder that this is working. The  will be escaped 
because of CDATA section to  when it's 
parsed and it shell be shown in the browser as text 
 - but it should not work.

That was what I expect. I tried to test it, but it was not possible for 
me with the current Cocoon from CVS. In my sitemap there is written


  -//W3C//DTD XHTML 1.0 Strict//EN
 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
  UTF-8
  


but every parameter is ignored: I get no doctype declarations and no 
cdata sections (even when the comment  is removed).

What's up with XMLSerializer??

Regards,

Joerg



Justin Fagnani-Bell wrote:
> Yes! finally.
> 
> Here's what I did. I added a  tag around my  tags in my 
> stylesheet, then put  elements>cdata in my serializer definition. Now 
> even when the textarea has no text the tag doesn't get touched. The 
> browser just ignores the made up cdata tag and everythings fine.
> 
> I tried what you suggested, (adding  elements>textelement) but when the textarea 
> contained just text (no markup) i'd get something like this: [CDATA[some 
> text]] in the text field.
> 
> Thanks everyone.
> --Justin


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

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




Re: Finding DTD when aggregating content using XSL

2002-08-09 Thread Ross Gardler

Rick Tessner wrote:
> On Fri, 2002-08-09 at 13:16, Ross Gardler wrote:
> 
> I suspect the best way to handle this would be through the use of the
> catalogs.  There's a couple of ways of handling this.  The quickest, but
> not necessarily the best, would be to do the following:
> 



I am using Forrest (http://xml.apache.org/forrest) to generate the 
documentation. Forrest use Cocoon, it has a slightly different set-up in 
terms of where the catalog files are but I have checked that the catalog 
is in the place indicated in cocoon.xconf and it all fits with your 
description.

Generation does not fail on any document other than those that have 
aggregate docuements thorugh 
so I don't think it is a problem with catalogs, rather it seems to be a
problem with the XSLT transfromer not being aware of the catalogs. Is 
there any way of informing the XSLT engine where these catalogs are?

Ross



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

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




Re: Finding DTD when aggregating content using XSL

2002-08-09 Thread Rick Tessner

On Fri, 2002-08-09 at 13:48, Rick Tessner wrote:
 
> Finally, create this new file "resources/entities/document-v11/catalog"
> with the single line
> 
>   PUBLIC "-//APACHE/DTD Documentation V1.1//EN" document-v11.dtd
> 

Ooops .. should be quotes around the document-v11.dtd.  So, that line
shold read

PUBLIC "-//APACHE/DTD Documentation V1.1//EN" "document-v11.dtd"

-- 
Rick Tessner
[EMAIL PROTECTED]

"Breathe.  Breathe again.  Keep doing that."

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

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




Re: Finding DTD when aggregating content using XSL

2002-08-09 Thread Rick Tessner

On Fri, 2002-08-09 at 13:16, Ross Gardler wrote:
> I am trying to bring multiple documents together into a single document 
> in order to create a book in which each document is a separate chapter. 
> However, I do not want the structure of the book to be stored in the 
> sitemap, I want this in a separate XML file.



> However, the xslt transformer fails becasue it is looking for, and can;t 
> find, the DTD for the included chapters, in the same directory as the 
> XML file. The doctype line in each of the chapter documents is:
> 
>  "document-v11.dtd">
> 
> Replacing "document-v11.dtd" with the path to the dtd does not work as 
> it then looks for the entity files in the wrong place. Besides, doing 
> this would mean I couldn't move any files without breaking the doctype 
> so I'm not keen on this.
> 
> I don't know much about catalogs but I suspect what is happening is that
> cocoon works fine as it is aware of my DTD catalog, but the XSL
> transformer fails on the as it is not aware of the catalog. Any ideas 
> how to solve this? (if indeed this is the problem).

Hi Ross,

I suspect the best way to handle this would be through the use of the
catalogs.  There's a couple of ways of handling this.  The quickest, but
not necessarily the best, would be to do the following:

1. In the webapp/cocoon directory, there is a sub-directory
   called resources/entities.  Will will want to create a new
   sub-directory here and edit the "catalog" file found here to
   reference a new catalog file.
2. Create a directory under resources/entities called
   "document-v11".
3. Copy the document-v11.dtd and any other files it references
   (such as possibly characters.ent any others?) to this new
   directory.
4. Edit the "resources/entities/catalog" file and add a line to
   the bottom that reads

CATALOG document-v11/catalog

Finally, create this new file "resources/entities/document-v11/catalog"
with the single line

PUBLIC "-//APACHE/DTD Documentation V1.1//EN" document-v11.dtd

You shouldn't have to make any changes to your documentation.  Although,
you may have to restart your engine for cocoon to re-read the
resources/entities/catalog file to find the new stuff.
 
-- 
Rick Tessner
[EMAIL PROTECTED]

"Breathe.  Breathe again.  Keep doing that."

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

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




filter transformer with paginator??

2002-08-09 Thread apurva zaveri

Does it makes senese or is it even possible to use
filter transformer with the paginator???

Would it improve performance?

-Apurva

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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

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




Finding DTD when aggregating content using XSL

2002-08-09 Thread Ross Gardler

I am trying to bring multiple documents together into a single document 
in order to create a book in which each document is a separate chapter. 
However, I do not want the structure of the book to be stored in the 
sitemap, I want this in a separate XML file.

So what I have is a description of the chapters I want in an xml file 
(thanks to Joerg Heinicke):


   
  ...
   
   
 
 
 ...
   


A stylesheet to perform the inclusion:

http://www.w3.org/1999/XSL/Tranform";>



  










And a pipeline to create the pdf book:


   
   
   
   


However, the xslt transformer fails becasue it is looking for, and can;t 
find, the DTD for the included chapters, in the same directory as the 
XML file. The doctype line in each of the chapter documents is:



Replacing "document-v11.dtd" with the path to the dtd does not work as 
it then looks for the entity files in the wrong place. Besides, doing 
this would mean I couldn't move any files without breaking the doctype 
so I'm not keen on this.

I don't know much about catalogs but I suspect what is happening is that
cocoon works fine as it is aware of my DTD catalog, but the XSL
transformer fails on the as it is not aware of the catalog. Any ideas 
how to solve this? (if indeed this is the problem).

Ross


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

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




RE: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Geoff Howard

yes, this might make a nice little HOW-TO, although i'm a little suspicious
that the behaviour may be dependent on xslt engine implementation.  If
someone does this up for the docs, it would be wise to check out the
behaviour with saxon, and xsltc or some other engines.

Geoff

> -Original Message-
> From: Luca Morandini [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:19 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Keeping HTMLSerializer from altering markup?
> 
> 
> Justin,
> 
> could you please summarize your problem (and the solution 
> you've found) and post it   to the mailing list with a 
> "[SUMMARY]" tag in
> the subject line ?
> 
> Best regards,
> 
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> 
> > -Original Message-
> > From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 6:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Keeping HTMLSerializer from altering markup?
> >
> >
> > Yes! finally.
> >
> > Here's what I did. I added a  tag around my 
>  tags in my
> > stylesheet, then put  > elements>cdata in my serializer 
> definition. Now
> > even when the textarea has no text the tag doesn't get touched. The
> > browser just ignores the made up cdata tag and everythings fine.
> >
> > I tried what you suggested, (adding  > elements>textelement) but when the textarea
> > contained just text (no markup) i'd get something like 
> this: [CDATA[some
> > text]] in the text field.
> >
> > Thanks everyone.
> > --Justin
> >
> >
> > On Friday, August 9, 2002, at 07:57 AM, Geoff Howard wrote:
> >
> > >> method, but what is cdata-section-elements? Could it be 
> of use to me
> > >> here?
> > >
> > > cdata-section-elements is a declaration in xsl:output 
> element of xsl
> > > which
> > > allows you to cause the contents of an element to be 
> surrounded by a
> > >  block, which causes the character data to 
> pass through
> > > transformation untouched.  I use this when serializing 
> page parts in XML
> > > that contain html and need further processing later.  
> Whether it will do
> > > what you want when used with HTMLSerializer I don't know, but it's
> > > worth a
> > > shot.  Technically, the Serializer is only setting up the 
> output method
> > > of
> > > the xsl transformation engine (probably xalan, unless 
> you've configured
> > > it
> > > to use something else) and in XSL's view, 
> cdata-section-elements is
> > > irrelevant to html output method.  Having said that, it 
> will probably be
> > > dependant on the implementation and might work.  If you 
> modify your
> > > serializer definition to the following:
> > >
> > >  > > src="org.apache.cocoon.serialization.HTMLSerializer">
> > >textarea
> > > 
> >
> >
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> 
> >
> > 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. 
> 
> 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. 

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




RE: Problems with SQLTransformer

2002-08-09 Thread Albert Cervera Areny

Yes!!! Finally that worked! Buff I've spent so many hours with it... I
think I should revise the namespace lesson ;-)

Thanks to everyone for your suggestions!



I promise to come back soon with a new challenge:
   Italy:  one
   Rest of the world: zero ;-)
and hopefully some answers too

> Albert,
>
> you should declare the "sql" namespace in usuaris.xsl; moreover, don't
> forget to add "sql:" in front of "row" and "rowset" template matching.
>
> Yes, I know the "sql:" namespace is not displayed in your SQLTransformer
> output, but, nevertheless, could you please try ?
>
> Best regards,
>
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -
>
>
>> -Original Message-
>> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 09, 2002 5:13 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Problems with SQLTransformer
>>
>>
>> Hi,
>>
>> This is what I receive after the SQLTransform when I look it through
>> the browser (option view source code)
>>
>> 
>> 
>> 
>> 081778
>> 
>> name
>> paswd
>> progname
>> 
>> 
>>
>> After the XSLTransform, the browser gives an error (because no initial
>> tag in the xml file) and if I look at the source code of the page I
>> see:
>>
>> 
>>
>>
>> 081778namepassdprogname
>>
>> About the usuaris.xsl it is quite simple:
>>
>> 
>>
>> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>>
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> > Your step a) makes it sound like this has nothing to do with SQL
>> transformer - that's the step that works unless I misunderstand you.
>> When you say you see only data and no xml tags in the browser that
>> sounds like a common non-problem I see all the time.  A few
>> questions: 1) Are the tags there when you do View Source in your
>> browser? 2) When in e) you say modifications have no effect do you
>> mean that if you literally re-arrange or remove items from the final
>> output those changes are not reflected?
>>
>> I mean that if instead of the above code I put the following for
>> usuaris.xsl: 
>>
>> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>> 
>>
>> Or
>>
>> 
>>
>> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>> 
>>hello
>> 
>> 
>>
>> The output is exactly the same!
>>
>> > 3) Have you ensured that any namespaces in use are not the problem?
>> (the xsl is looking for  but is finding  ?)
>> >
>> > Geoff Howard
>> >
>> >> -Original Message-
>> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> >> Sent: Friday, August 09, 2002 10:01 AM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Problems with SQLTransformer
>> >>
>> >>
>> >> Hi,
>> >>   I start a new thread about it because the problem deserves
>> >> this and I'm
>> >> desperate ;-)
>> >>
>> >> 
>> >> 
>> >>   
>> >> 
>> >> 
>> >> 
>> >>
>> >> Looking at the source code of the generated xml with the browser I
>> see only data no xml tags. Only the initial one: 
>> >> I've been making some changes and it seems like after the
>> >> SQLTransform I
>> >> can't put a XSLTransform. I've tried the following things:
>> >>a) Take off the XSL transform and the result is correct.
>> >> The data I get
>> >> can be processed with xalan and usuaris.xsl and I get a new
>> >> well formed
>> >> XML file.
>> >>b) Change the name of usuaris.xsl (just in case I was modifing
>> the
>> >> wrong one) and it gives an error as cocoon can't find the file.
>> >>c) Leave usuaris.xsl empty and It gives an error.
>> >>d) Only leave the initial and final xsl:stylesheet tags
>> >> and the output
>> >> is the same.
>> >>e) Various modifications in the xsl file but does not seem
>> >> to affect to
>> >> the output unless it is bad formed, then it gives an error.
>> >> So the file
>> >> is processed but incorrectly?
>> >>
>> >> I don't know if it might be a bug or I'm really doing something
>> very wrong, but it should be pretty stright forward, shouldn't it?
>> >>
>> >> Well... thanks for your patience ;-)
>> >>
>> >>
>> >> > Thanks! It worked without problems!
>> >> >
>> >> > But of  course I couldn't wait until having another problem ;-)
>> The
>> >> thing is that I'm trying to make this work:
>> >> >
>> >> > sitemap.xmap:
>> >> >
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> > 
>> >> >
>> >> > While debugging I commented the last transform and data arrives
>> as I
>> >> expect. In fact, I save the xml generated file with the browser and
>> process it with xalan using the usuaris.xsl and it works!
>> >> But if I use
>> >> > this transform in the sitemap I get all the fields returned
>> >> but without
>> >> >

RE: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Luca Morandini

Justin,

could you please summarize your problem (and the solution you've found) and post it   
to the mailing list with a "[SUMMARY]" tag in
the subject line ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 6:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Keeping HTMLSerializer from altering markup?
>
>
> Yes! finally.
>
> Here's what I did. I added a  tag around my  tags in my
> stylesheet, then put  elements>cdata in my serializer definition. Now
> even when the textarea has no text the tag doesn't get touched. The
> browser just ignores the made up cdata tag and everythings fine.
>
> I tried what you suggested, (adding  elements>textelement) but when the textarea
> contained just text (no markup) i'd get something like this: [CDATA[some
> text]] in the text field.
>
> Thanks everyone.
> --Justin
>
>
> On Friday, August 9, 2002, at 07:57 AM, Geoff Howard wrote:
>
> >> method, but what is cdata-section-elements? Could it be of use to me
> >> here?
> >
> > cdata-section-elements is a declaration in xsl:output element of xsl
> > which
> > allows you to cause the contents of an element to be surrounded by a
> >  block, which causes the character data to pass through
> > transformation untouched.  I use this when serializing page parts in XML
> > that contain html and need further processing later.  Whether it will do
> > what you want when used with HTMLSerializer I don't know, but it's
> > worth a
> > shot.  Technically, the Serializer is only setting up the output method
> > of
> > the xsl transformation engine (probably xalan, unless you've configured
> > it
> > to use something else) and in XSL's view, cdata-section-elements is
> > irrelevant to html output method.  Having said that, it will probably be
> > dependant on the implementation and might work.  If you modify your
> > serializer definition to the following:
> >
> >  > src="org.apache.cocoon.serialization.HTMLSerializer">
> >textarea
> > 
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell

Yes! finally.

Here's what I did. I added a  tag around my  tags in my 
stylesheet, then put cdata in my serializer definition. Now 
even when the textarea has no text the tag doesn't get touched. The 
browser just ignores the made up cdata tag and everythings fine.

I tried what you suggested, (adding textelement) but when the textarea 
contained just text (no markup) i'd get something like this: [CDATA[some 
text]] in the text field.

Thanks everyone.
--Justin


On Friday, August 9, 2002, at 07:57 AM, Geoff Howard wrote:

>> method, but what is cdata-section-elements? Could it be of use to me
>> here?
>
> cdata-section-elements is a declaration in xsl:output element of xsl 
> which
> allows you to cause the contents of an element to be surrounded by a
>  block, which causes the character data to pass through
> transformation untouched.  I use this when serializing page parts in XML
> that contain html and need further processing later.  Whether it will do
> what you want when used with HTMLSerializer I don't know, but it's 
> worth a
> shot.  Technically, the Serializer is only setting up the output method 
> of
> the xsl transformation engine (probably xalan, unless you've configured 
> it
> to use something else) and in XSL's view, cdata-section-elements is
> irrelevant to html output method.  Having said that, it will probably be
> dependant on the implementation and might work.  If you modify your
> serializer definition to the following:
>
>  src="org.apache.cocoon.serialization.HTMLSerializer">
>textarea
> 


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

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




(SUMMARY)Re: Servlet generating an XML--->How to write the pipeline?

2002-08-09 Thread kavitha ramesh

Hi Skip,

It works,,,Thanks a lot!!!

Kavitha


 


--- Skip Carter <[EMAIL PROTECTED]> wrote: > 
> Kavitha,
> 
> > I have the class, Servlet.class and I have placed
> it
> > in the Web-Inf folder.Now my main sitemap is as
> > follows:
> > 
> > (what should be
> there
> > in the Servlet folder?)
> > 
> > 
> > (what should be the
> source?)
> > 
> > 
> > 
> >  
> > 
> > My servlet generates an xml file as an output
> stream.
> > 
> > and is the following URL be used to see the
> result?
> > 
> > http://localhost:8080/cocoon/Servlet
> 
> Ok, let me try to help by giving a step-by-step
> description:
> 
> your servlet class file is located in:  
> WEB-INF/classes/
> 
> web.xml has:
> 
>   
> Hello
> HelloXML   
>   
> 
>   
> Hello
> /internal/Hello   
> 
>   
> 
> 
> 
> sitemap.xmap has:
> 
>
> 
>
> value="true"/>
> 
> src="http://localhost:8080/cocoon/internal/Hello{
> requestQuery}" />
> src="stylesheets/hello.xsl" />
>
>
>   
> 
> 
> so that the Web request: 
> http://localhost:8080/cocoon/HelloWorld   should 
> invoke this pattern
> 
> (if you know to type:
> http://localhost:8080/cocoon/internal/Hello   you
> will 
> get the XML output).
> 
> 
> Hope that is more clear for you.
> 
> 
> -- 
>  Dr. Everett (Skip) Carter  Phone: 831-641-0645
> FAX:  831-641-0647
>  Taygeta Scientific Inc.INTERNET:
> [EMAIL PROTECTED]
>  1340 Munras Ave., Suite 314WWW:
> http://www.taygeta.com
>  Monterey, CA. 93940
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
>  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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

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




Re: Cocoon & mysql

2002-08-09 Thread Michael Mangeng

Yep..

The .jar´s in /WEB-INF/lib are automatically added to the classpath by
tomcat. The same is true for the /WEB-INF/classes/ dir. (you can check the
classpath´s value in /WEB-INF/logs/core.log

Here this line looks like:
DEBUG   (2002-08-09) 17:02.08:026   [core] (Unknown-URI)
Unknown-thread/Cocoon: Classpath =
/usr/local/tomcat/webapps/cocoon/WEB-INF/classes:/usr/[a-lot-of-files/dirs]

I think your internal server error is of another nature.
Check TOMCAT_HOME/logs/*.log and CONTEXT_ROOT/WEB-INF/logs/*.log for
furthere information.

greetings
mike
- Original Message -
From: "Jessica Niewint" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 6:05 PM
Subject: Re: Cocoon & mysql


> Sorry but I think I haven't understand you,
>
> You do not have to mention a JARs in /WEB-INF/lib/ in
web.xml.
> Restoring the old web.xml and restart tomcat.
>
> what does it mean, I can add my mm.mysql driver to the web-inf/lib folder
> without changing the web.xml file? If I do this I got a Internal Sever
Error.
> If I add an extra-classpath and list the driver in the load class
> element  I got no internal server error but I got the java-exception in
the
> log file.  I really have no idea what I made wrong with my driver
> installation ...
>
>
> At 17.39 09/08/2002 +0200, you wrote:
> >Hi Jessica
> >
> >You do not have to mention a JARs in /WEB-INF/lib/ in
web.xml.
> >Restoring the old web.xml and restart tomcat.
> >
> >If the error is still there, try to locate it in
> >/WEB-INF/logs/*.logs.
> >
> >greetings
> >mike
> >- Original Message -
> >From: "Jessica Niewint" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, August 09, 2002 5:20 PM
> >Subject: Cocoon & mysql
> >
> >
> > > Ok I want to connect to mysql and I heard that there will be problems
with
> > > jdk1.4. and the mm.mysql.driver ... so I actually have:
> > >
> > > jdk 1.2.2
> > > cocoon 2.0.3
> > > tomcat 4.0.4 ...
> > >
> > > everything works fine until I try to implement the mm.mysql.driver
> > > (2.0.14). I downloaded the driver , unjared it.  I tried to install
the
> > > driver by enter the extra-classpath for the driver in the
> > > $COCOON_HOME/WEB-INF/web.xml file (my ABSOLUTE-PATH-TO-ARCHIVE is
> > > "/jdbc/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar") and by copy the
> > > mm.mysql-2.0.14-bin.jar file  into the $COCOON_HOME/WEB-INF/lib
directory
> > > and add in both cases to the load-class element in the web.xml file
> > > "org.gjt.mm.msyql.Driver" ...
> > > When I try to open the httpd://localhost:8181/cocoon page I got an
> >internal
> > > server error ... so what did I forget ? Where was I wrong ???
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > 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. 
> >
> >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. 
>
> 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. 

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




RE: POST request with XSP

2002-08-09 Thread Vadim Gritsenko

> From: Boscoe [mailto:[EMAIL PROTECTED]]
> 
> Vadim Gritsenko wrote:
> 
> >>From: Boscoe [mailto:[EMAIL PROTECTED]]
> >>
> >>Well,
> >>
> >>just read a bit further: StreamGenerator seems to be exactly what I
> >>need. But how can XSP access data from a StreamGenerator ?
> >
> >You've got to know that pipeline (no aggregation) has to have one and
> >only generator. Thus, either XSP or StreamGenerator can be used as
entry
> >point.
> >
> >OTOH, there are possibilities to access this data from the XSP by
means
> >of inclusion. I don't know why you want to use XSP and
StreamGenerator
> >simultaneously, but it is possible to create yet another pipeline
with
> >the StreamGenerator and get its content in your XSP using util
> >logicsheet.
> >
> As I said earlier:
> 
> the parameters I want to send in my request are deeply structured so
it is
> logical to format them in XML.
>
> If there is any other way to process a POST request containing XML
content in
> XSP, please let me know.

As I asked above, it's unclear why do you want to use specifically XSP
here. It's one of the possibilities, yes, but in this case it might be
not the best one.

As for solution (XSP + RequestGenerator), it is outlined above.

Vadim


> TIA
> 
> Boscoe
> 


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

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




Re: POST request with XSP

2002-08-09 Thread Boscoe

Vadim Gritsenko wrote:

>>From: Boscoe [mailto:[EMAIL PROTECTED]]
>>
>>Well,
>>
>>just read a bit further: StreamGenerator seems to be exactly what I
>>need. But how can XSP access data from a StreamGenerator ?
>>
>>
>
>You've got to know that pipeline (no aggregation) has to have one and
>only generator. Thus, either XSP or StreamGenerator can be used as entry
>point.
>
>OTOH, there are possibilities to access this data from the XSP by means
>of inclusion. I don't know why you want to use XSP and StreamGenerator
>simultaneously, but it is possible to create yet another pipeline with
>the StreamGenerator and get its content in your XSP using util
>logicsheet.
>
As I said earlier:

the parameters I want to send in my request are deeply structured so it is logical to 
format them in XML.

If there is any other way to process a POST request containing XML content in XSP, 
please let me know. 

TIA 

Boscoe






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

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




Re: Cocoon & mysql

2002-08-09 Thread Jessica Niewint

Sorry but I think I haven't understand you,

You do not have to mention a JARs in /WEB-INF/lib/ in web.xml.
Restoring the old web.xml and restart tomcat.

what does it mean, I can add my mm.mysql driver to the web-inf/lib folder 
without changing the web.xml file? If I do this I got a Internal Sever Error.
If I add an extra-classpath and list the driver in the load class 
element  I got no internal server error but I got the java-exception in the 
log file.  I really have no idea what I made wrong with my driver 
installation ...


At 17.39 09/08/2002 +0200, you wrote:
>Hi Jessica
>
>You do not have to mention a JARs in /WEB-INF/lib/ in web.xml.
>Restoring the old web.xml and restart tomcat.
>
>If the error is still there, try to locate it in
>/WEB-INF/logs/*.logs.
>
>greetings
>mike
>- Original Message -
>From: "Jessica Niewint" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, August 09, 2002 5:20 PM
>Subject: Cocoon & mysql
>
>
> > Ok I want to connect to mysql and I heard that there will be problems with
> > jdk1.4. and the mm.mysql.driver ... so I actually have:
> >
> > jdk 1.2.2
> > cocoon 2.0.3
> > tomcat 4.0.4 ...
> >
> > everything works fine until I try to implement the mm.mysql.driver
> > (2.0.14). I downloaded the driver , unjared it.  I tried to install the
> > driver by enter the extra-classpath for the driver in the
> > $COCOON_HOME/WEB-INF/web.xml file (my ABSOLUTE-PATH-TO-ARCHIVE is
> > "/jdbc/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar") and by copy the
> > mm.mysql-2.0.14-bin.jar file  into the $COCOON_HOME/WEB-INF/lib directory
> > and add in both cases to the load-class element in the web.xml file
> > "org.gjt.mm.msyql.Driver" ...
> > When I try to open the httpd://localhost:8181/cocoon page I got an
>internal
> > server error ... so what did I forget ? Where was I wrong ???
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > 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. 
>
>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. 

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




Re: Problems with SQLTransformer

2002-08-09 Thread KOZLOV Roman

Hi,

Could you try to add to your xsl a template for the root node like this:




or just modify the template for rowset like this:




Roman

Albert Cervera Areny wrote:

> Hi,
>
> This is what I receive after the SQLTransform when I look it through the
> browser (option view source code)
>
> 
> 
> 
> 081778
> 
> name
> paswd
> progname
> 
> 
>
> After the XSLTransform, the browser gives an error (because no initial tag
> in the xml file) and if I look at the source code of the page I see:
>
> 
>
> 081778namepassdprogname
>
> About the usuaris.xsl it is quite simple:
>
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> > Your step a) makes it sound like this has nothing to do with SQL
> > transformer - that's the step that works unless I misunderstand you.
> > When you say you see only data and no xml tags in the browser that
> > sounds like a common non-problem I see all the time.  A few questions:
> > 1) Are the tags there when you do View Source in your browser?
> > 2) When in e) you say modifications have no effect do you mean that if
> > you literally re-arrange or remove items from the final output those
> > changes are not reflected?
>
> I mean that if instead of the above code I put the following for usuaris.xsl:
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
>
> Or
>
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
>hello
> 
> 
>
> The output is exactly the same!
>
> > 3) Have you ensured that any namespaces in use are not the problem? (the
> > xsl is looking for  but is finding  ?)
> >
> > Geoff Howard
> >
> >> -Original Message-
> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, August 09, 2002 10:01 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: Problems with SQLTransformer
> >>
> >>
> >> Hi,
> >>   I start a new thread about it because the problem deserves
> >> this and I'm
> >> desperate ;-)
> >>
> >> 
> >> 
> >>   
> >> 
> >> 
> >> 
> >>
> >> Looking at the source code of the generated xml with the browser I see
> >> only data no xml tags. Only the initial one: 
> >> I've been making some changes and it seems like after the
> >> SQLTransform I
> >> can't put a XSLTransform. I've tried the following things:
> >>a) Take off the XSL transform and the result is correct.
> >> The data I get
> >> can be processed with xalan and usuaris.xsl and I get a new
> >> well formed
> >> XML file.
> >>b) Change the name of usuaris.xsl (just in case I was modifing the
> >> wrong one) and it gives an error as cocoon can't find the file.
> >>c) Leave usuaris.xsl empty and It gives an error.
> >>d) Only leave the initial and final xsl:stylesheet tags
> >> and the output
> >> is the same.
> >>e) Various modifications in the xsl file but does not seem
> >> to affect to
> >> the output unless it is bad formed, then it gives an error.
> >> So the file
> >> is processed but incorrectly?
> >>
> >> I don't know if it might be a bug or I'm really doing something very
> >> wrong, but it should be pretty stright forward, shouldn't it?
> >>
> >> Well... thanks for your patience ;-)
> >>
> >>
> >> > Thanks! It worked without problems!
> >> >
> >> > But of  course I couldn't wait until having another problem ;-) The
> >> thing is that I'm trying to make this work:
> >> >
> >> > sitemap.xmap:
> >> >
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> >
> >> > While debugging I commented the last transform and data arrives as I
> >> expect. In fact, I save the xml generated file with the browser and
> >> process it with xalan using the usuaris.xsl and it works!
> >> But if I use
> >> > this transform in the sitemap I get all the fields returned
> >> but without
> >> > any XML tags. (It should return as xalan all the authentication XML
> >> structure)
> >> >
> >> > Yes I know I'm using the same stylesheet twice but its for an
> >> > authentication process and It should work :-)
> >> >
> >> > The strange thing is that last step  >> > src="stylesheets/usuaris.xsl"/>. Any clue?
> >> >
> >> > Thanks, once again!
> >> >
> >> > PS: I believe, after so many problems, some day I will be
> >> able to answer
> >> > all the questions in this list ;-) May be a new Trivial
> >> Pursuit about
> >> > cocoon? That
> >> >
> >> >
> >> > On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
> >> >> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >> >> >
> >> >> > I get the following error while trying to connect to a postgresql
> >> >>
> >> >> database
> >> >>
> >> >> > throw the SQLTransformer:
> >> >> >
> >> >> > java.sql.SQLException: No suitable driver
> >> >> >
> >> >> > I've seen in the list archives that it's been reported
> >> various times
> >> >>
> >>

Problems with 2.0.3

2002-08-09 Thread Artur Bialecki


I'm upgrading from 2.0.2 to 2.0.3 and now I get the following error:

ERROR   (2002-08-09) 11:15.00:338   [sitemap] (/NASApp/dfc/common/controlpanel.xml) 
Thread-39/Handler: Error compiling sitemap
java.io.FileNotFoundException: /WEB-INF/work/org/apache/cocoon/www/sitemap_xmap.java 
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at java.io.FileOutputStream.(FileOutputStream.java:62)
at java.io.FileOutputStream.(FileOutputStream.java:132)
at java.io.FileWriter.(FileWriter.java:63)
at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:96)
at org.apache.cocoon.util.IOUtils.serializeString(IOUtils.java:83)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:385)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:333)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
at java.lang.Thread.run(Thread.java:484)

Is the / in front of WEB-INF what's causing the problem?
Any ideas how to fix this?

I also noticed that src/webapp/WEB-INF/cocoon.xconf
is missing "compiler" parameter for 

(iAS6.5, win/solaris, jdk1.3.1, cocoon is one of many servlets in ear(war))

Thanks,

Artur...

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

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




RE: Problems with SQLTransformer

2002-08-09 Thread Geoff Howard

> 
> 081778namepassdprogname
> 

This looks like the "default" template for elements which just copies their
value.  As an experiment, try this: 



http://www.w3.org/1999/XSL/Transform";>








 
 
 
   
   
   
 



 

> > 2) When in e) you say modifications have no effect do you 
> mean that if
> > you literally re-arrange or remove items from the final output those
> > changes are not reflected?
> 
> I mean that if instead of the above code I put the following 
> for usuaris.xsl:

...

> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
>hello
> 
> 
> 
> The output is exactly the same!

Well, if you can't get "hello" to show up in that last example, then it
looks more like you've got some kind of caching issue going on.  The sql
transformer should keep any caching from happening, but maybe there's a
problem.  I'd recommend first making absolutely sure that your browser is
not caching these results, then make sure cocoon is not caching them.
Either change to a non-caching pipeline, or shut cocoon down, find the work
directory and delete everything from it, and the restart cocoon and try
again.  

Geoff

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

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




RE: Problems with SQLTransformer

2002-08-09 Thread Luca Morandini

Albert,

you should declare the "sql" namespace in usuaris.xsl; moreover, don't forget to add 
"sql:" in front of "row" and "rowset" template
matching.

Yes, I know the "sql:" namespace is not displayed in your SQLTransformer output, but, 
nevertheless, could you please try ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with SQLTransformer
>
>
> Hi,
>
> This is what I receive after the SQLTransform when I look it through the
> browser (option view source code)
>
> 
> 
> 
> 081778
> 
> name
> paswd
> progname
> 
> 
>
> After the XSLTransform, the browser gives an error (because no initial tag
> in the xml file) and if I look at the source code of the page I see:
>
> 
>
>
> 081778namepassdprogname
>
> About the usuaris.xsl it is quite simple:
>
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> > Your step a) makes it sound like this has nothing to do with SQL
> > transformer - that's the step that works unless I misunderstand you.
> > When you say you see only data and no xml tags in the browser that
> > sounds like a common non-problem I see all the time.  A few questions:
> > 1) Are the tags there when you do View Source in your browser?
> > 2) When in e) you say modifications have no effect do you mean that if
> > you literally re-arrange or remove items from the final output those
> > changes are not reflected?
>
> I mean that if instead of the above code I put the following for usuaris.xsl:
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
>
> Or
>
> 
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
>hello
> 
> 
>
> The output is exactly the same!
>
> > 3) Have you ensured that any namespaces in use are not the problem? (the
> > xsl is looking for  but is finding  ?)
> >
> > Geoff Howard
> >
> >> -Original Message-
> >> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >> Sent: Friday, August 09, 2002 10:01 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: Problems with SQLTransformer
> >>
> >>
> >> Hi,
> >>   I start a new thread about it because the problem deserves
> >> this and I'm
> >> desperate ;-)
> >>
> >> 
> >> 
> >>   
> >> 
> >> 
> >> 
> >>
> >> Looking at the source code of the generated xml with the browser I see
> >> only data no xml tags. Only the initial one: 
> >> I've been making some changes and it seems like after the
> >> SQLTransform I
> >> can't put a XSLTransform. I've tried the following things:
> >>a) Take off the XSL transform and the result is correct.
> >> The data I get
> >> can be processed with xalan and usuaris.xsl and I get a new
> >> well formed
> >> XML file.
> >>b) Change the name of usuaris.xsl (just in case I was modifing the
> >> wrong one) and it gives an error as cocoon can't find the file.
> >>c) Leave usuaris.xsl empty and It gives an error.
> >>d) Only leave the initial and final xsl:stylesheet tags
> >> and the output
> >> is the same.
> >>e) Various modifications in the xsl file but does not seem
> >> to affect to
> >> the output unless it is bad formed, then it gives an error.
> >> So the file
> >> is processed but incorrectly?
> >>
> >> I don't know if it might be a bug or I'm really doing something very
> >> wrong, but it should be pretty stright forward, shouldn't it?
> >>
> >> Well... thanks for your patience ;-)
> >>
> >>
> >> > Thanks! It worked without problems!
> >> >
> >> > But of  course I couldn't wait until having another problem ;-) The
> >> thing is that I'm trying to make this work:
> >> >
> >> > sitemap.xmap:
> >> >
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> >
> >> > While debugging I commented the last transform and data arrives as I
> >> expect. In fact, I save the xml generated file with the browser and
> >> process it with xalan using the usuaris.xsl and it works!
> >> But if I use
> >> > this transform in the sitemap I get all the fields returned
> >> but without
> >> > any XML tags. (It should return as xalan all the authentication XML
> >> structure)
> >> >
> >> > Yes I know I'm using the same stylesheet twice but its for an
> >> > authentication process and It should work :-)
> >> >
> >> > The strange thing is that last step  >> > src="stylesheets/usuaris.xsl"/>. Any clue?
> >> >
> >> > Thanks, once again!
> >> >
> >> > PS: I believe, after so many problems, some day I will be
> >> able to answer
> >> > all the questions in thi

RE: Problems with SQLTransformer

2002-08-09 Thread Geoff Howard

> -Original Message-
> From: Christian Haul [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with SQLTransformer
> 
> 
> You need to copy all other elements explicitly!

? I don't see any that he didn't handle.

> 
> 
> 
>   
> 
>   
> 
> 
> Best, to use logicsheet-util.xsl in your own logicsheets.
> 
>   Chris.

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

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




Re: Cocoon & mysql

2002-08-09 Thread Michael Mangeng

Hi Jessica

You do not have to mention a JARs in /WEB-INF/lib/ in web.xml.
Restoring the old web.xml and restart tomcat.

If the error is still there, try to locate it in
/WEB-INF/logs/*.logs.

greetings
mike
- Original Message -
From: "Jessica Niewint" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 5:20 PM
Subject: Cocoon & mysql


> Ok I want to connect to mysql and I heard that there will be problems with
> jdk1.4. and the mm.mysql.driver ... so I actually have:
>
> jdk 1.2.2
> cocoon 2.0.3
> tomcat 4.0.4 ...
>
> everything works fine until I try to implement the mm.mysql.driver
> (2.0.14). I downloaded the driver , unjared it.  I tried to install the
> driver by enter the extra-classpath for the driver in the
> $COCOON_HOME/WEB-INF/web.xml file (my ABSOLUTE-PATH-TO-ARCHIVE is
> "/jdbc/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar") and by copy the
> mm.mysql-2.0.14-bin.jar file  into the $COCOON_HOME/WEB-INF/lib directory
> and add in both cases to the load-class element in the web.xml file
> "org.gjt.mm.msyql.Driver" ...
> When I try to open the httpd://localhost:8181/cocoon page I got an
internal
> server error ... so what did I forget ? Where was I wrong ???
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: POST request with XSP

2002-08-09 Thread Vadim Gritsenko

> From: Boscoe [mailto:[EMAIL PROTECTED]]
> 
> Well,
> 
> just read a bit further: StreamGenerator seems to be exactly what I
> need. But how can XSP access data from a StreamGenerator ?

You've got to know that pipeline (no aggregation) has to have one and
only generator. Thus, either XSP or StreamGenerator can be used as entry
point.

OTOH, there are possibilities to access this data from the XSP by means
of inclusion. I don't know why you want to use XSP and StreamGenerator
simultaneously, but it is possible to create yet another pipeline with
the StreamGenerator and get its content in your XSP using util
logicsheet.


Vadim


> Boscoe wrote:
> 
> > Vadim,
> >
> > thank you  for your quick response. Yes, it works indeed. Used the
> > wrong Content-Type :-[ .
> >
> > Now, another problem:
> > I like to send request parameters in XML documents. The thing is
that
> > my parameters can be deeply structured so that  the form parameter
> > solution is inconvient.
> > If I could access the servlet request, I could read the document
from
> > its input source, but the request which is available in XSP doesn't
> > support this.
> >
> > Any suggestions ?
> >
> > Thank you
> >
> > Boscoe


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

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




Cocoon & mysql

2002-08-09 Thread Jessica Niewint

Ok I want to connect to mysql and I heard that there will be problems with 
jdk1.4. and the mm.mysql.driver ... so I actually have:

jdk 1.2.2
cocoon 2.0.3
tomcat 4.0.4 ...

everything works fine until I try to implement the mm.mysql.driver 
(2.0.14). I downloaded the driver , unjared it.  I tried to install the 
driver by enter the extra-classpath for the driver in the 
$COCOON_HOME/WEB-INF/web.xml file (my ABSOLUTE-PATH-TO-ARCHIVE is 
"/jdbc/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar") and by copy the 
mm.mysql-2.0.14-bin.jar file  into the $COCOON_HOME/WEB-INF/lib directory 
and add in both cases to the load-class element in the web.xml file 
"org.gjt.mm.msyql.Driver" ...
When I try to open the httpd://localhost:8181/cocoon page I got an internal 
server error ... so what did I forget ? Where was I wrong ???


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

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




Re: Problems with SQLTransformer

2002-08-09 Thread Christian Haul

On 09.Aug.2002 -- 05:13 PM, Albert Cervera Areny wrote:
> Hi,
> 
> This is what I receive after the SQLTransform when I look it through the
> browser (option view source code)
> 
> 
> 
> 
> 081778
> 
> name
> paswd
> progname
> 
> 
> 
> After the XSLTransform, the browser gives an error (because no initial tag
> in the xml file) and if I look at the source code of the page I see:
> 
> 
> 
> 
> 081778namepassdprogname
> 
> About the usuaris.xsl it is quite simple:
> 
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

You need to copy all other elements explicitly!



  

  


Best, to use logicsheet-util.xsl in your own logicsheets.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




RE: Problems with SQLTransformer

2002-08-09 Thread Albert Cervera Areny

Hi,

This is what I receive after the SQLTransform when I look it through the
browser (option view source code)




081778

name
paswd
progname



After the XSLTransform, the browser gives an error (because no initial tag
in the xml file) and if I look at the source code of the page I see:




081778namepassdprogname

About the usuaris.xsl it is quite simple:



http://www.w3.org/1999/XSL/Transform";>


















> Your step a) makes it sound like this has nothing to do with SQL
> transformer - that's the step that works unless I misunderstand you.
> When you say you see only data and no xml tags in the browser that
> sounds like a common non-problem I see all the time.  A few questions:
> 1) Are the tags there when you do View Source in your browser?
> 2) When in e) you say modifications have no effect do you mean that if
> you literally re-arrange or remove items from the final output those
> changes are not reflected?

I mean that if instead of the above code I put the following for usuaris.xsl:


http://www.w3.org/1999/XSL/Transform";>


Or



http://www.w3.org/1999/XSL/Transform";>

   hello



The output is exactly the same!

> 3) Have you ensured that any namespaces in use are not the problem? (the
> xsl is looking for  but is finding  ?)
>
> Geoff Howard
>
>> -Original Message-
>> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, August 09, 2002 10:01 AM
>> To: [EMAIL PROTECTED]
>> Subject: Problems with SQLTransformer
>>
>>
>> Hi,
>>   I start a new thread about it because the problem deserves
>> this and I'm
>> desperate ;-)
>>
>> 
>> 
>>   
>> 
>> 
>> 
>>
>> Looking at the source code of the generated xml with the browser I see
>> only data no xml tags. Only the initial one: 
>> I've been making some changes and it seems like after the
>> SQLTransform I
>> can't put a XSLTransform. I've tried the following things:
>>a) Take off the XSL transform and the result is correct.
>> The data I get
>> can be processed with xalan and usuaris.xsl and I get a new
>> well formed
>> XML file.
>>b) Change the name of usuaris.xsl (just in case I was modifing the
>> wrong one) and it gives an error as cocoon can't find the file.
>>c) Leave usuaris.xsl empty and It gives an error.
>>d) Only leave the initial and final xsl:stylesheet tags
>> and the output
>> is the same.
>>e) Various modifications in the xsl file but does not seem
>> to affect to
>> the output unless it is bad formed, then it gives an error.
>> So the file
>> is processed but incorrectly?
>>
>> I don't know if it might be a bug or I'm really doing something very
>> wrong, but it should be pretty stright forward, shouldn't it?
>>
>> Well... thanks for your patience ;-)
>>
>>
>> > Thanks! It worked without problems!
>> >
>> > But of  course I couldn't wait until having another problem ;-) The
>> thing is that I'm trying to make this work:
>> >
>> > sitemap.xmap:
>> >
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> > While debugging I commented the last transform and data arrives as I
>> expect. In fact, I save the xml generated file with the browser and
>> process it with xalan using the usuaris.xsl and it works!
>> But if I use
>> > this transform in the sitemap I get all the fields returned
>> but without
>> > any XML tags. (It should return as xalan all the authentication XML
>> structure)
>> >
>> > Yes I know I'm using the same stylesheet twice but its for an
>> > authentication process and It should work :-)
>> >
>> > The strange thing is that last step > > src="stylesheets/usuaris.xsl"/>. Any clue?
>> >
>> > Thanks, once again!
>> >
>> > PS: I believe, after so many problems, some day I will be
>> able to answer
>> > all the questions in this list ;-) May be a new Trivial
>> Pursuit about
>> > cocoon? That
>> >
>> >
>> > On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
>> >> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> >> >
>> >> > I get the following error while trying to connect to a postgresql
>> >>
>> >> database
>> >>
>> >> > throw the SQLTransformer:
>> >> >
>> >> > java.sql.SQLException: No suitable driver
>> >> >
>> >> > I've seen in the list archives that it's been reported
>> various times
>> >>
>> >> but
>> >>
>> >> > none of the solutions seems to correct my problem.
>> >> >
>> >> > web.xml:
>> >> >
>> >> >   
>> >> > load-class
>> >> > 
>> >> >   org.postgresql.Driver
>> >> > 
>> >> >   
>> >> >   
>> >> > extra-classpath
>> >> > /usr/share/java/postgresql.jar
>> >>
>> >> AFAIR, this will not work and has different purpose.
>> >>
>> >> Please jar under WEB-INF/lib.
>> >>
>> >> Vadim
>> >>
>> >>
>> >>
>> >> > cocoon.xconf:
>> >> >
>> >> > 
>> >> >  
>> >> > 
>> >> > org.postgresql.Driver
>> >> >
>> jdbc:postgresql://loca

RE: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Geoff Howard

> method, but what is cdata-section-elements? Could it be of use to me 
> here?

cdata-section-elements is a declaration in xsl:output element of xsl which
allows you to cause the contents of an element to be surrounded by a
 block, which causes the character data to pass through
transformation untouched.  I use this when serializing page parts in XML
that contain html and need further processing later.  Whether it will do
what you want when used with HTMLSerializer I don't know, but it's worth a
shot.  Technically, the Serializer is only setting up the output method of
the xsl transformation engine (probably xalan, unless you've configured it
to use something else) and in XSL's view, cdata-section-elements is
irrelevant to html output method.  Having said that, it will probably be
dependant on the implementation and might work.  If you modify your
serializer definition to the following:


   textarea


and try again, you'll know soon enough.  

If it doesn't work, I'd try changing them to entities like 
and see if you luck out and the translation engine decides to output these as characters. You may be able to affect this outcome by trying various combinations of the doctype-public and encoding parameters for your html serializer. The bottom line is that xhtml would be better for this, and you might want to look more into what the problem with Mozilla is. Geoff Howard - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>

Re: tomcat4.0.4 Cocoon 2.0.2 j2sdk1.4

2002-08-09 Thread Antonio Gallardo Rivera

I have a similar config like you. I recommend you upgrade to cocoon 2.0.3

You can get it from http://xml.apache.com



El Viernes, 09 de Agosto de 2002 04:36, Jessica Niewint escribió:
> I want to connect to a mysql database. Since I read that there are a lot of
> problems using the mm.myslq.Driver with my combination of tomcat, cocoon ,
> java  I just wanted to know there are any other solutions. or the only one
> is to change my version of Java ???
>
> Thanks in advanced.
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: Problems with SQLTransformer

2002-08-09 Thread Luca Morandini

Albert,

may you show us usuaris.xsl ?

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 4:01 PM
> To: [EMAIL PROTECTED]
> Subject: Problems with SQLTransformer
>
>
> Hi,
>   I start a new thread about it because the problem deserves this and I'm
> desperate ;-)
>
> 
> 
>   
> 
> 
> 
>
> Looking at the source code of the generated xml with the browser I see
> only data no xml tags. Only the initial one: 
> I've been making some changes and it seems like after the SQLTransform I
> can't put a XSLTransform. I've tried the following things:
>a) Take off the XSL transform and the result is correct. The data I get
> can be processed with xalan and usuaris.xsl and I get a new well formed
> XML file.
>b) Change the name of usuaris.xsl (just in case I was modifing the
> wrong one) and it gives an error as cocoon can't find the file.
>c) Leave usuaris.xsl empty and It gives an error.
>d) Only leave the initial and final xsl:stylesheet tags and the output
> is the same.
>e) Various modifications in the xsl file but does not seem to affect to
> the output unless it is bad formed, then it gives an error. So the file
> is processed but incorrectly?
>
> I don't know if it might be a bug or I'm really doing something very
> wrong, but it should be pretty stright forward, shouldn't it?
>
> Well... thanks for your patience ;-)
>
>
> > Thanks! It worked without problems!
> >
> > But of  course I couldn't wait until having another problem ;-)
> > The thing is that I'm trying to make this work:
> >
> > sitemap.xmap:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > While debugging I commented the last transform and data arrives as I
> > expect. In fact, I save the xml generated file with the browser and
> > process it with xalan using the usuaris.xsl and it works! But if I use
> > this transform in the sitemap I get all the fields returned but without
> > any XML tags. (It should return as xalan all the authentication XML
> > structure)
> >
> > Yes I know I'm using the same stylesheet twice but its for an
> > authentication process and It should work :-)
> >
> > The strange thing is that last step  > src="stylesheets/usuaris.xsl"/>. Any clue?
> >
> > Thanks, once again!
> >
> > PS: I believe, after so many problems, some day I will be able to answer
> > all the questions in this list ;-) May be a new Trivial Pursuit about
> > cocoon? That
> >
> >
> > On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
> >> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >> >
> >> > I get the following error while trying to connect to a postgresql
> >>
> >> database
> >>
> >> > throw the SQLTransformer:
> >> >
> >> > java.sql.SQLException: No suitable driver
> >> >
> >> > I've seen in the list archives that it's been reported various times
> >>
> >> but
> >>
> >> > none of the solutions seems to correct my problem.
> >> >
> >> > web.xml:
> >> >
> >> >   
> >> > load-class
> >> > 
> >> >   org.postgresql.Driver
> >> > 
> >> >   
> >> >   
> >> > extra-classpath
> >> > /usr/share/java/postgresql.jar
> >>
> >> AFAIR, this will not work and has different purpose.
> >>
> >> Please jar under WEB-INF/lib.
> >>
> >> Vadim
> >>
> >>
> >>
> >> > cocoon.xconf:
> >> >
> >> > 
> >> >  
> >> > 
> >> > org.postgresql.Driver
> >> > jdbc:postgresql://localhost/cocoon:5432
> >> cocoon
> >> > password
> >> >  
> >> > 
> >> >
> >> > I don't know if org.postgresql.Driver is necessari in both files but
> >> I started I've tried it in just one of them and doesn't work
> >> neighter. Of course access to the database is enabled correctly, the
> >> port is
> >>
> >> 5432 as
> >>
> >> > NMAP says ;) and I can connect from psql. All connection data seems
> >> to
> >>
> >> be
> >>
> >> > correct... Any other ideas??
> >> >
> >> >
> >> > Thanks!
> >> >
> >> > Albert Cervera Areny
> >>
> >> -
> >> Please check that your question  has not already been answered in the
> >> FAQ before posting. 
> >>
> >> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> > --
> > Albert Cervera Areny
> > Dept. Informàtica Sedifa, S.L.
> >
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTEC

RE: Problems with SQLTransformer

2002-08-09 Thread Geoff Howard

Your step a) makes it sound like this has nothing to do with SQL transformer
- that's the step that works unless I misunderstand you.  When you say you
see only data and no xml tags in the browser that sounds like a common
non-problem I see all the time.  A few questions:
1) Are the tags there when you do View Source in your browser?
2) When in e) you say modifications have no effect do you mean that if you
literally re-arrange or remove items from the final output those changes are
not reflected?
3) Have you ensured that any namespaces in use are not the problem? (the xsl
is looking for  but is finding  ?)

Geoff Howard

> -Original Message-
> From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:01 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with SQLTransformer
> 
> 
> Hi,
>   I start a new thread about it because the problem deserves 
> this and I'm
> desperate ;-)
> 
> 
> 
>   
> 
> 
> 
> 
> Looking at the source code of the generated xml with the browser I see
> only data no xml tags. Only the initial one: 
> I've been making some changes and it seems like after the 
> SQLTransform I
> can't put a XSLTransform. I've tried the following things:
>a) Take off the XSL transform and the result is correct. 
> The data I get
> can be processed with xalan and usuaris.xsl and I get a new 
> well formed
> XML file.
>b) Change the name of usuaris.xsl (just in case I was modifing the
> wrong one) and it gives an error as cocoon can't find the file.
>c) Leave usuaris.xsl empty and It gives an error.
>d) Only leave the initial and final xsl:stylesheet tags 
> and the output
> is the same.
>e) Various modifications in the xsl file but does not seem 
> to affect to
> the output unless it is bad formed, then it gives an error. 
> So the file
> is processed but incorrectly?
> 
> I don't know if it might be a bug or I'm really doing something very
> wrong, but it should be pretty stright forward, shouldn't it?
> 
> Well... thanks for your patience ;-)
> 
> 
> > Thanks! It worked without problems!
> >
> > But of  course I couldn't wait until having another problem ;-)
> > The thing is that I'm trying to make this work:
> >
> > sitemap.xmap:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > While debugging I commented the last transform and data arrives as I
> > expect. In fact, I save the xml generated file with the browser and
> > process it with xalan using the usuaris.xsl and it works! 
> But if I use
> > this transform in the sitemap I get all the fields returned 
> but without
> > any XML tags. (It should return as xalan all the authentication XML
> > structure)
> >
> > Yes I know I'm using the same stylesheet twice but its for an
> > authentication process and It should work :-)
> >
> > The strange thing is that last step  > src="stylesheets/usuaris.xsl"/>. Any clue?
> >
> > Thanks, once again!
> >
> > PS: I believe, after so many problems, some day I will be 
> able to answer
> > all the questions in this list ;-) May be a new Trivial 
> Pursuit about
> > cocoon? That
> >
> >
> > On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
> >> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >> >
> >> > I get the following error while trying to connect to a postgresql
> >>
> >> database
> >>
> >> > throw the SQLTransformer:
> >> >
> >> > java.sql.SQLException: No suitable driver
> >> >
> >> > I've seen in the list archives that it's been reported 
> various times
> >>
> >> but
> >>
> >> > none of the solutions seems to correct my problem.
> >> >
> >> > web.xml:
> >> >
> >> >   
> >> > load-class
> >> > 
> >> >   org.postgresql.Driver
> >> > 
> >> >   
> >> >   
> >> > extra-classpath
> >> > /usr/share/java/postgresql.jar
> >>
> >> AFAIR, this will not work and has different purpose.
> >>
> >> Please jar under WEB-INF/lib.
> >>
> >> Vadim
> >>
> >>
> >>
> >> > cocoon.xconf:
> >> >
> >> > 
> >> >  
> >> > 
> >> > org.postgresql.Driver
> >> > 
> jdbc:postgresql://localhost/cocoon:5432
> >> cocoon
> >> > password
> >> >  
> >> > 
> >> >
> >> > I don't know if org.postgresql.Driver is necessari in 
> both files but
> >> I started I've tried it in just one of them and doesn't work
> >> neighter. Of course access to the database is enabled 
> correctly, the
> >> port is
> >>
> >> 5432 as
> >>
> >> > NMAP says ;) and I can connect from psql. All connection 
> data seems
> >> to
> >>
> >> be
> >>
> >> > correct... Any other ideas??
> >> >
> >> >
> >> > Thanks!
> >> >
> >> > Albert Cervera Areny
> >>
> >> 
> -
> >> Please check that your question  has not already been 
> answered in the
> >> FAQ before posting. 
> 
> >>
> >> To unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> >> For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> >

RE: font embedding driving me mad!!!

2002-08-09 Thread Geoff Howard

After my misguided answer, I checked out the bug report at bugzilla - it
looks like it just needs to be resubmitted in diff format (the submitter
must have sent a complete file).  If you're motivated, you should be able to
download the posted file, and create the diff yourself in cvs and resubmit
it.

Geoff

> -Original Message-
> From: Litrik De Roy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: font embedding driving me mad!!!
> 
> 
> I have seen the same problem, and I am also 100% sure that my 
> configuration
> is correct.
> 
> There is an open bug report for this at
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6533
> 
> It is a little bit strange because there seems to be a patch 
> for it, but it
> hasn't been integrated in the source code yet. Can one of the 
> developers
> please take a look at it and if the patch does work commit it 
> to the CVS.
> 
> I'm geting tired of the Times New Roman in the PDFs ;o)
> 
> Litrik De Roy
> www.litrik.com
> 
> 
> - Original Message -
> From: "kyle koss" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 08, 2002 10:33 PM
> Subject: font embedding driving me mad!!!
> 
> 
> > I have been trying unsuccessfully for the last couple of days to get
> > font embedding to work under cocoon. I have followed the 
> instructions in
> > the cocoon users guide, but I still have a problem. I have 
> created the
> > metrics files, and the config file, which according to the 
> log files,
> > cocoon is finding.
> >
> > It seems that it is using the fonts, but not embedding them 
> in the pdf,
> > even though I have included the embed-file attribute in config.
> >
> > I tried making the pdf with FOP standalone, which was 
> successful - the
> > fonts were included. But doing the exact same thing in 
> cocoon (using the
> > same fop.jar -- 0.20.3) did not work.
> >
> > When I make the pdf in cocoon, it produces the pdf, but 
> Acrobat gives me
> > a warning saying the font could not be created or found, 
> and the text
> > shows up as a series of dots!!
> >
> > Any help you could provide would be greatly appreciated, as this is
> > starting to drive me crazy.
> >
> > Kyle Koss
> >
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: Encoding on ESQL query

2002-08-09 Thread yuryx

Hiloliddin Karimov wrote:

> Hi All,
>
>  
>
> I try retrieve column that have cyrillic letters by ESQL:
>
>  
>
> 
>
> 
> ...
>
>   
>
> SELECT username FROM users
>
> WHERE fname LIKE %name="fname"/>%
>
>   
>
> ...
>
try

or
String param=new 
String(request.getParameter("text1").getBytes("ISO-8859-1"),"windows-1251");

Regards.
Yury.

>  
>
> and fname has cyrillic letter, so, when I try retrieve some record, no 
> results.
>
> How I know it should to encode.
>
>  
>
> Any ideas, tips, or help would be greatly appreciated.
>
> Thanks very much!
>
> Hill
>
>  
>
> MS SQL; Tomcat 4.0; Cocoon 2.1 dev; Java SDK 1.4;
>




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

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




Encoding on ESQL query

2002-08-09 Thread Hiloliddin Karimov








Hi All,

 

I try retrieve column that
have cyrillic letters by
ESQL:

 

 version="1.0"
encoding="windows-1251"?>



ššš SELECT username FROM users 

ššš WHERE fname LIKE
%%esql:parameter>

š esql:query>

...

 

and fname has cyrillic letter, so, when I try retrieve some record, no
results.

How I know it should to
encode.

 

Any ideas, tips, or help
would be greatly appreciated.

Thanks very much!

Hill

 

MS SQL; Tomcat 4.0; Cocoon
2.1 dev; Java SDK 1.4;








Problems with SQLTransformer

2002-08-09 Thread Albert Cervera Areny

Hi,
  I start a new thread about it because the problem deserves this and I'm
desperate ;-)



  




Looking at the source code of the generated xml with the browser I see
only data no xml tags. Only the initial one: 
I've been making some changes and it seems like after the SQLTransform I
can't put a XSLTransform. I've tried the following things:
   a) Take off the XSL transform and the result is correct. The data I get
can be processed with xalan and usuaris.xsl and I get a new well formed
XML file.
   b) Change the name of usuaris.xsl (just in case I was modifing the
wrong one) and it gives an error as cocoon can't find the file.
   c) Leave usuaris.xsl empty and It gives an error.
   d) Only leave the initial and final xsl:stylesheet tags and the output
is the same.
   e) Various modifications in the xsl file but does not seem to affect to
the output unless it is bad formed, then it gives an error. So the file
is processed but incorrectly?

I don't know if it might be a bug or I'm really doing something very
wrong, but it should be pretty stright forward, shouldn't it?

Well... thanks for your patience ;-)


> Thanks! It worked without problems!
>
> But of  course I couldn't wait until having another problem ;-)
> The thing is that I'm trying to make this work:
>
> sitemap.xmap:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> While debugging I commented the last transform and data arrives as I
> expect. In fact, I save the xml generated file with the browser and
> process it with xalan using the usuaris.xsl and it works! But if I use
> this transform in the sitemap I get all the fields returned but without
> any XML tags. (It should return as xalan all the authentication XML
> structure)
>
> Yes I know I'm using the same stylesheet twice but its for an
> authentication process and It should work :-)
>
> The strange thing is that last step  src="stylesheets/usuaris.xsl"/>. Any clue?
>
> Thanks, once again!
>
> PS: I believe, after so many problems, some day I will be able to answer
> all the questions in this list ;-) May be a new Trivial Pursuit about
> cocoon? That
>
>
> On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
>> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
>> >
>> > I get the following error while trying to connect to a postgresql
>>
>> database
>>
>> > throw the SQLTransformer:
>> >
>> > java.sql.SQLException: No suitable driver
>> >
>> > I've seen in the list archives that it's been reported various times
>>
>> but
>>
>> > none of the solutions seems to correct my problem.
>> >
>> > web.xml:
>> >
>> >   
>> > load-class
>> > 
>> >   org.postgresql.Driver
>> > 
>> >   
>> >   
>> > extra-classpath
>> > /usr/share/java/postgresql.jar
>>
>> AFAIR, this will not work and has different purpose.
>>
>> Please jar under WEB-INF/lib.
>>
>> Vadim
>>
>>
>>
>> > cocoon.xconf:
>> >
>> > 
>> >  
>> > 
>> > org.postgresql.Driver
>> > jdbc:postgresql://localhost/cocoon:5432
>> cocoon
>> > password
>> >  
>> > 
>> >
>> > I don't know if org.postgresql.Driver is necessari in both files but
>> I started I've tried it in just one of them and doesn't work
>> neighter. Of course access to the database is enabled correctly, the
>> port is
>>
>> 5432 as
>>
>> > NMAP says ;) and I can connect from psql. All connection data seems
>> to
>>
>> be
>>
>> > correct... Any other ideas??
>> >
>> >
>> > Thanks!
>> >
>> > Albert Cervera Areny
>>
>> -
>> Please check that your question  has not already been answered in the
>> FAQ before posting. 
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> --
> Albert Cervera Areny
> Dept. Informàtica Sedifa, S.L.
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.L.



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

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




RE: SunRise with container managed security...

2002-08-09 Thread Carsten Ziegeler

You can add the principal to the context, if you add it in the
authentication resource, like currently in the demo the name
of the user is added. You can include any transformer,
generator etc. you want and add the required info.

Carsten

> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 2:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: SunRise with container managed security...
>
>
>
> I think a more important feature is to be able to populate the
> J2EE security
> realm with a Principal name and roles, once authenticated through sunrise.
> Since sunrise is doing a good job at protecting the URLs, I am not so
> concerned about the url constraints in web.xml.
> However I would like to have the principal available in the context when
> obtaining J2ee resources: Transactions, Datasources, EJBs, JMS, etc.
>
>
>
>
> - Original Message -
> From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 09, 2002 12:52 AM
> Subject: RE: SunRise with container managed security...
>
>
> > Per Kreipke wrote:
> > >
> > > > I think, two users have reported this on the user list some months
> ago.
> > > >
> > > > Carsten
> > >
> > > Sorry, meaning what? Someone else mentioned it or did the work to
> > > integrate
> > > the two? I can't find anything about it on the MARC archive.
> > >
> > Sorry, I had little time yesterday..so I only wrote short mails...
> > Yes, someone mentioned it and integrated it. I don't know how he did it.
> >
> > Basically, this approach should work:
> > The container managed security is outside of Cocoon, so if a protected
> > document is called and the request enters Cocoon, the user must be
> > authenticatd.
> > Otherwise the contained would have denied the access.
> >
> > Now, you can write an automatically log-in handler for Cocoon.
> > For the protected document, test if the usre is already logged-in via
> > the handler. If so, serve the document.
> > If the user is not logged-in via the handler (but then he is already
> > authorized by the container) you can invoke the login-action and write
> > an authentication pipeline for the handler which does nothing more
> > than getting the user, roles, principles from the container and
> > returning them to the handler.
> > That's it.
> >
> > I must confess, that you have to write a simple authentication pipeline
> > for it - I think spending 4 hours on it would be enough and you
> > have the container integration.
> >
> > HTH
> > Carsten
> >
> > > I was thinking that one way to do so would be to satisfy the login
> request
> > > with an XSP page that enumerates the  block with
> > > the values
> > > of getRemoteUser(), the roles, etc.
> > >
> > > Per
> > >
> > > > > -Original Message-
> > > > > From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, August 07, 2002 9:24 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: SunRise with container managed security...
> > > > >
> > > > >
> > > > > I've had the demo code working and gotten the SunRise
> > > > > authentication to work
> > > > > off static files and am about to try it off a DB.
> > > > >
> > > > > However, what I'm really interested in, since Cocoon isn't the
> > > > > only servlet
> > > > > running, is integrating the SunRise components with the Tomcat
> > > > Realm based
> > > > > security. Has that been done before?
> > > > >
> > > > > Per
> > > > >
> > > > >
> > > >
> > -
> > > > > Please check that your question  has not already been answered in
> the
> > > > > FAQ before posting.
> 
> > > > >
> > > > > 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.

> > >
> > > 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. 
> >
> > 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. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check t

placing my directory outside cocoon

2002-08-09 Thread kavitha ramesh

Hi,

I have an application called "mts" (which has html,
jsp's and servlets ) which has its own Web-Inf and
web.xml, where the servlets are mapped.The directory
mts is placed outside cocoon.Now the servlets inside
mts generates an xml file and I would like to use xslt
with cocoon.In this case I dont want to place the
servlets(.class files) inside cocoon Web-Inf.I want
them to stay in mts Web-Inf.

And I just want my xml generated from the servlets to
be transformed using xsl in cocoon and my entire
application lies outside cocoon.

For my case how would the pipeline look like?

Please help me,,,

Kavitha Ramesh.


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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

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




Re: SunRise with container managed security...

2002-08-09 Thread Ivelin Ivanov


I think a more important feature is to be able to populate the J2EE security
realm with a Principal name and roles, once authenticated through sunrise.
Since sunrise is doing a good job at protecting the URLs, I am not so
concerned about the url constraints in web.xml.
However I would like to have the principal available in the context when
obtaining J2ee resources: Transactions, Datasources, EJBs, JMS, etc.




- Original Message -
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 12:52 AM
Subject: RE: SunRise with container managed security...


> Per Kreipke wrote:
> >
> > > I think, two users have reported this on the user list some months
ago.
> > >
> > > Carsten
> >
> > Sorry, meaning what? Someone else mentioned it or did the work to
> > integrate
> > the two? I can't find anything about it on the MARC archive.
> >
> Sorry, I had little time yesterday..so I only wrote short mails...
> Yes, someone mentioned it and integrated it. I don't know how he did it.
>
> Basically, this approach should work:
> The container managed security is outside of Cocoon, so if a protected
> document is called and the request enters Cocoon, the user must be
> authenticatd.
> Otherwise the contained would have denied the access.
>
> Now, you can write an automatically log-in handler for Cocoon.
> For the protected document, test if the usre is already logged-in via
> the handler. If so, serve the document.
> If the user is not logged-in via the handler (but then he is already
> authorized by the container) you can invoke the login-action and write
> an authentication pipeline for the handler which does nothing more
> than getting the user, roles, principles from the container and
> returning them to the handler.
> That's it.
>
> I must confess, that you have to write a simple authentication pipeline
> for it - I think spending 4 hours on it would be enough and you
> have the container integration.
>
> HTH
> Carsten
>
> > I was thinking that one way to do so would be to satisfy the login
request
> > with an XSP page that enumerates the  block with
> > the values
> > of getRemoteUser(), the roles, etc.
> >
> > Per
> >
> > > > -Original Message-
> > > > From: Per Kreipke [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, August 07, 2002 9:24 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: SunRise with container managed security...
> > > >
> > > >
> > > > I've had the demo code working and gotten the SunRise
> > > > authentication to work
> > > > off static files and am about to try it off a DB.
> > > >
> > > > However, what I'm really interested in, since Cocoon isn't the
> > > > only servlet
> > > > running, is integrating the SunRise components with the Tomcat
> > > Realm based
> > > > security. Has that been done before?
> > > >
> > > > Per
> > > >
> > > >
> > >
> -
> > > > Please check that your question  has not already been answered in
the
> > > > FAQ before posting.

> > > >
> > > > 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. 
> > >
> > > 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. 
> >
> > 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. 
>
> 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. 

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




Re: POST request with XSP

2002-08-09 Thread Boscoe

Well,

just read a bit further: StreamGenerator seems to be exactly what I 
need. But how can XSP access data from a StreamGenerator ?


Boscoe wrote:

> Vadim,
>
> thank you  for your quick response. Yes, it works indeed. Used the 
> wrong Content-Type :-[ .
>
> Now, another problem:
> I like to send request parameters in XML documents. The thing is that 
> my parameters can be deeply structured so that  the form parameter 
> solution is inconvient.
> If I could access the servlet request, I could read the document from 
> its input source, but the request which is available in XSP doesn't 
> support this.
>
> Any suggestions ?
>
> Thank you
>
> Boscoe
>



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

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




tomcat4.0.4 Cocoon 2.0.2 j2sdk1.4

2002-08-09 Thread Jessica Niewint



I want to connect to a mysql database. Since I read that there are a lot of 
problems using the mm.myslq.Driver with my combination of tomcat, cocoon , 
java  I just wanted to know there are any other solutions. or the only one 
is to change my version of Java ???

Thanks in advanced.


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

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




RE: cocoon.xconf in subdirectory

2002-08-09 Thread Leigh Dodds

I have to admit to not having tried that in detail -- I was going 
by what I was seeing in the Cocoon examples.

I'll investigate and confirm that I'm not talking rubbish.

Apologies if I've lead you down the wrong track.

L.

> -Original Message-
> From: Leszek Gawron [mailto:[EMAIL PROTECTED]]
> Sent: 09 August 2002 11:28
> To: [EMAIL PROTECTED]
> Subject: cocoon.xconf in subdirectory
> 
> 
> Following the statement :
> 
> >!Sub-Sitemaps and Components
> 
> >Since Cocoon 2.0.X it has been possible to include additional cocoon.xconf
> >files in sub-directories. These will be automatically processed by Cocoon,
> >allowing the declaration and use of additional components, JDBC connections,
> >etc. Again this enables multiple users to more easily share a single
> >Cocoon instance.
> I was trying to put the appropriate datasource definition for my cocoon
> application in th application folder (/cocoon/cdn)
> 
> The cocoon says that no datasource can be found so my cocoon.xconf is not
> being processed. I also tried to put it into /cocoon/cdn/WEB-INF but that gave
> no result also 
> my cocoon.xconf file is simple:
> 
> coon version="2.0">
>   
>   
>   
>   false
>   jdbc:izmado:Provider=MSDASQL;Driver={Sql 
> Server};Server=OUZO\CDN_OPTIMA;Database=CDN_Demo;USER ID=SA;
>   sa
>   
>   
>   
> 
> 
> Is this all really possible ? 
>   ouzo
> -- 
> __
>  | /  \ |Leszek Gawron//  \\
> \_\\  //_/  [EMAIL PROTECTED]  _\\()//_
>  .'/()\'. Phone: +48(600)341118 / //  \\ \
>   \\  //  recursive: adj; see recursive  | \__/ |
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: Yet another No suitable driver error

2002-08-09 Thread Albert Cervera Areny

Thanks! It worked without problems!

But of  course I couldn't wait until having another problem ;-)
The thing is that I'm trying to make this work:

sitemap.xmap:











While debugging I commented the last transform and data arrives as I expect.
In fact, I save the xml generated file with the browser and process it
with xalan using the usuaris.xsl and it works! But if I use this transform
in the sitemap I get all the fields returned but without any XML tags. (It
should return as xalan all the authentication XML structure)

Yes I know I'm using the same stylesheet twice but its for an
authentication process and It should work :-)

The strange thing is that last step . Any clue?

Thanks, once again!

PS: I believe, after so many problems, some day I will be able to answer
all the questions in this list ;-) May be a new Trivial Pursuit about
cocoon? That


On Thursday 08 August 2002 14:33, Vadim Gritsenko wrote:
> > From: Albert Cervera Areny [mailto:[EMAIL PROTECTED]]
> >
> > I get the following error while trying to connect to a postgresql
>
> database
>
> > throw the SQLTransformer:
> >
> > java.sql.SQLException: No suitable driver
> >
> > I've seen in the list archives that it's been reported various times
>
> but
>
> > none of the solutions seems to correct my problem.
> >
> > web.xml:
> >
> >   
> > load-class
> > 
> >   org.postgresql.Driver
> > 
> >   
> >   
> > extra-classpath
> > /usr/share/java/postgresql.jar
>
> AFAIR, this will not work and has different purpose.
>
> Please jar under WEB-INF/lib.
>
> Vadim
>
>
>
> > cocoon.xconf:
> >
> > 
> >  
> > 
> > org.postgresql.Driver
> > jdbc:postgresql://localhost/cocoon:5432
> > cocoon
> > password
> >  
> > 
> >
> > I don't know if org.postgresql.Driver is necessari in both files but I
> > started I've tried it in just one of them and doesn't work neighter.
> > Of course access to the database is enabled correctly, the port is
>
> 5432 as
>
> > NMAP says ;) and I can connect from psql. All connection data seems to
>
> be
>
> > correct... Any other ideas??
> >
> >
> > Thanks!
> >
> > Albert Cervera Areny
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.L.




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

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




cocoon.xconf in subdirectory

2002-08-09 Thread Leszek Gawron

Following the statement :

>!Sub-Sitemaps and Components

>Since Cocoon 2.0.X it has been possible to include additional cocoon.xconf
>files in sub-directories. These will be automatically processed by Cocoon,
>allowing the declaration and use of additional components, JDBC connections,
>etc. Again this enables multiple users to more easily share a single
>Cocoon instance.
I was trying to put the appropriate datasource definition for my cocoon
application in th application folder (/cocoon/cdn)

The cocoon says that no datasource can be found so my cocoon.xconf is not
being processed. I also tried to put it into /cocoon/cdn/WEB-INF but that gave
no result also 
my cocoon.xconf file is simple:

coon version="2.0">
  


false
jdbc:izmado:Provider=MSDASQL;Driver={Sql 
Server};Server=OUZO\CDN_OPTIMA;Database=CDN_Demo;USER ID=SA;
sa


  


Is this all really possible ? 
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


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

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




Re: Redirect/Rewrite Module

2002-08-09 Thread Michael Wechner



ROSSEL Olivier wrote:

>>I have a situation where I would like to do a lot of 
>>URI-redirects/rewrites. I know I can do this via the sitemap,
>>but other people would be doing this. So for the reason of "Separation
>>of Concern" I would like to separate this from the actual sitemap.
>>
>>My question is what are the possibilties to do something like that?
>>
>>-One way would probably be to have a separate sitemap dedicated to 
>>redirects, which is mounted by the actual sitemap.
>>
> 
> Exactly.
> I  think this is the more robust system.
> URL patterns will make the redirection via map:redirect, except
> for special cases where you would need XSP ou may be actions.
> I think it is the most flexible way to do the trick.


Sounds good to me as well (KISS)

But what about Apache-Struts? Any ideas?

Thanks

Michael



> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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




Re: POST request with XSP

2002-08-09 Thread Boscoe

Vadim,

thank you  for your quick response. Yes, it works indeed. Used the wrong 
Content-Type :-[ .

Now, another problem:
I like to send request parameters in XML documents. The thing is that my 
parameters can be deeply structured so that  the form parameter solution 
is inconvient.
If I could access the servlet request, I could read the document from 
its input source, but the request which is available in XSP doesn't 
support this.

Any suggestions ?

Thank you

Boscoe

Vadim Gritsenko wrote:

>>From: Boscoe [mailto:[EMAIL PROTECTED]]
>>
>>Hello,
>>
>>newbie to Cocoon. Just sent a POST request to a XSP page. Tried to
>>access a request parameter via
>>
>>request.getParameter(parameter);
>>
>>It failed. GET works. Searched for POST in the mail archives, but gave
>>up because there is a lady called Barbara Post which seems to be
>>intensely involved in Cocoon ;-)
>>
>>
>
>See docs/xsp/request.xsp, it has POST, and it works.
>
>Vadim
>
>  
>




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

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




Re: Leftover tags from I18n

2002-08-09 Thread Alex Romayev


--- Joerg Heinicke <[EMAIL PROTECTED]> wrote:
> Alex Romayev wrote:
>  > exclude-result-prefixes in the same file as
> declares
>  > the prefix worked.
> 
> 
> A little explanation:
> 
> Namespace prefix and namespace uri are two different
> things. You can declare 
> xmlns:bla="http://apache.org/cocoon/i18n/2.0"; and
> the i18n transformer 
> should work nevertheless (I didn't tested it ;-) ).
> Furthermore you can mix 
> the prefixes or add more prefixes with the same uri.
> 
> If you tell the XSLT in one stylesheet to remove the
> namespace i18n prefix 
> without telling it which namespace uri to remove (so
> without a bound 
> namespace uri), it does not know what to do.
> 
> Conclusion:
> If you bind the namespace
> "http://apache.org/cocoon/i18n/2.0"; to the 
> namespace prefix i18n in the last stylesheet in pipe
> (even if you don't need 
> it) a exclude-result-prefix should work too. 
I've tried that -- still doesn't work, only works as
per your original suggestion, which was using the
"exclude" in each stylesheet that outputs namespaced
elements.

So you
> would only need it in 
> one stylesheet. You only may not copy elements or
> attributes with namespaces 
> to the output - namespaces are copied independent of
> exclude-result-prefix.
> 
> Regards,
> 
> Joerg
> 
> -- 
> 
> System Development
> VIRBUS AG
> Fon  +49(0)341-979-7419
> Fax  +49(0)341-979-7409
> [EMAIL PROTECTED]
> www.virbus.de
> 
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> 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. 

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




Re: Re: Serving soap with Cocoon ?

2002-08-09 Thread Andreas Kühne

Hi Marcus,

couldn't you post it one day earlier ?

I have to figure it out yesterday on my own ! 
I can confirm that it works that way.

Perhaps you want to use a RequestGenerator before to make a switch according to the 
'soapaction'-attribute. But for a simple server it's ok.

Greetings 

Andreas

> > > 
> > > Hi All,
> > > 
> > >   Hope all is well.
> > > 
> > >   I've just been looking through the soap examples in HEAD, which
> > >   look really great for requesting data from a soap server
> > somewhere.
> > > 
> > >   Has anyone done the opposite ? ie. have Cocoon act as the soap
> > >   server ?
> > > 
> > >   eg. to make a soap request from a Cocoon app, and have it
> > deliver
> > >   the result.
> > > 
> > > soap request >   --
> > >  | Cocoon Application |
> > > soap response <---   --
> > > 
> > >   (or have I missed something here ?)
> > 
> > AFAIU, SOAP request is just HTTP post with text/xml body. You can use
> > (IIRC) stream generator to read it. SOAP response is just HTTP response
> > with XML payload - that's the thing Cocoon is best at.
> 
>   Thats exactly what I thought. 
> 
> > Do I miss something?
> 
>   I don't think so, but I haven't really played with soap much up
>   till now, hence my q.
>   
>   So we could have something like:
>   
>   
> 
> 
> 
>   
> 
>   Would be perfect (for what I need) actually...
>   
>   Cheers,
>   
>   Marcus
> 
> -- 
> .
>  ,,$,  Marcus Crafter
> ;$'  ':Computer Systems Engineer
> $: :   ManageSoft GmbH
>  $   o_)$$$:   82-84 Mainzer Landstrasse
>  ;$,_/\ &&:'   60327 Frankfurt Germany
>' /( &&&
>\_'
>   .
> &&&:
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 


__
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104


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

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




AW: Use value from a form: Is Request-Generator what I need?

2002-08-09 Thread Sternath Elmar
I think what you need is RequestParamAction:






-Ursprungliche Nachricht-
Von: Hahn Kurt (CHA) [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. August 2002 09:49
An: [EMAIL PROTECTED]
Betreff: Use value from a form: Is Request-Generator what I need?


Hi,
I would like to use a value from a HTML-form (post-method) in a query. I
guess this is possible in Cocoon, but I can't see how. I was reading the
description of the Request-Generator, but I'm not sure if this is what I
need. Can anybody give me a general direction where I have to look, or maybe
point me to a good example?
(I already have a Cocoon-system up and running)
Thanks

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

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. 

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


RE: Redirect/Rewrite Module

2002-08-09 Thread ROSSEL Olivier

> I have a situation where I would like to do a lot of 
> URI-redirects/rewrites. I know I can do this via the sitemap,
> but other people would be doing this. So for the reason of "Separation
> of Concern" I would like to separate this from the actual sitemap.
> 
> My question is what are the possibilties to do something like that?
> 
> -One way would probably be to have a separate sitemap dedicated to 
> redirects, which is mounted by the actual sitemap.

Exactly.
I  think this is the more robust system.
URL patterns will make the redirection via map:redirect, except
for special cases where you would need XSP ou may be actions.
I think it is the most flexible way to do the trick.

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

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




Redirect/Rewrite Module

2002-08-09 Thread Michael Wechner

Hi

I have a situation where I would like to do a lot of 
URI-redirects/rewrites. I know I can do this via the sitemap,
but other people would be doing this. So for the reason of "Separation
of Concern" I would like to separate this from the actual sitemap.

My question is what are the possibilties to do something like that?

-One way would probably be to have a separate sitemap dedicated to 
redirects, which is mounted by the actual sitemap.

-Or to have the redirects in a separate file, which is "pulled in" by
the actual sitemap as an external entity

-Or to have an action/component, where every request is sent through and 
is acting
as an redirect/rewrite module (and maybe calling Cocoon again!!)

Any thoughts on this?

Thanks a lot in advance

Michael


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

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. 
>>
>>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. 
>
>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. 

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




Re: Use value from a form: Is Request-Generator what I need?

2002-08-09 Thread Christian Haul

On 09.Aug.2002 -- 09:48 AM, Hahn Kurt (CHA) wrote:
> Hi,
> I would like to use a value from a HTML-form (post-method) in a query. I
> guess this is possible in Cocoon, but I can't see how. I was reading the
> description of the Request-Generator, but I'm not sure if this is what I
> need. Can anybody give me a general direction where I have to look, or maybe
> point me to a good example?

Actually, options are too various to list them all. Here are some of them:
*) xsp + logicsheets: esql + request
*) DatabaseSelectAction(s) and friends
*) SQLTransformer
*) Custom Action
*) ...

The examples contain quite a lot of this. Look at the "Employee" examples,
the tutorial, the "Modular Database Actions" example. The example for
the SQLTransformer does not use parameters IMO, but the docs should
explain how to do it.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

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




Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell

Thanks for the replies guys, unfortunately I'm still kinda stuck.

I tried the xhtml serializer (which is really an xml serializer) and the 
xml serializer They almost work, but not quite. First, Mozilla 1.0 won't 
render tables correctly ( bgcolor attribute, though Chimera renders 
fine) for some reason. More importantly they turn an empty set of tags 
(ie. ) into one tag () which is fine for 
most tags, but for textarea (in Mozilla at least) it causes the text 
field to be filled with the contents of the html file after the 
 tag to the end of file.

I'm not sure whether  is correct in XHTML. If it's not then 
this could probably be called a bug in an xhtml serializer, even though 
this makes sense in terms of xml. If it is correct (which i suspect) 
then it's a bug in Mozilla. Either way it's a PITA.

One solution might be to turn off combining empty tags in the xml 
serializer. Is there a way to do this? There's no docs on the 
cofiguration parameters for any of the serializers, and I'm a little 
confused by the source. It looks like XMLSerializer, and HTMLSerializer 
(through AbstractTextSerializer) get a transformer to do the conversion, 
and pass a bunch of parameters to it. I assume method is the xslt output 
method, but what is cdata-section-elements? Could it be of use to me 
here?

Another thing I tried was using a TextSerializer, with the mime-type set 
to text/html. I figured that for text output it wouldn't mess with the 
tags, only problem was that mozilla wouldn't render any of the tags, 
just the text. This is probably because of a namepsace or dtd issue and 
I'm gonna try to fix it.

Justin

oh yeah, on more thing that may be important. I'm using cocoon 2.0.1. It 
didn't include an xhtml entry in  so I copied it from 
2.0.3. If the serializers behave differently that could be an issue, but 
I don't think I can upgrade right now. I'll see.

On Friday, August 9, 2002, at 12:42 AM, KOZLOV Roman wrote:

> Hi,
>
> Just a question, if XHTML is XML then is it possible to use XML 
> serializer?
> If not, why?
>
> Roman
>
> Vadim Gritsenko wrote:
>
>>> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
>>>
>>> Hi list,
>>>
>>>   I have a page with a form generated by Cocoon. There's a textarea in
>>> the form where you can edit some xml (possibly xhtml). Because the
>> form
>>> is an HTML form I'm using an HTMLSerializer. But I want to keep the
>>> serializer from altering the markup in the textarea, because if it's
>>> xhtml content it will turn 's into 's. Then when the text is
>>> saved and you visit the form again, or view the page the text is on, I
>>> get a parsing error.



>> Try xhtml serializer, it comes with default sitemap.
>>
>> Vadim
>>


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

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




Use value from a form: Is Request-Generator what I need?

2002-08-09 Thread Hahn Kurt (CHA)
Hi,
I would like to use a value from a HTML-form (post-method) in a query. I
guess this is possible in Cocoon, but I can't see how. I was reading the
description of the Request-Generator, but I'm not sure if this is what I
need. Can anybody give me a general direction where I have to look, or maybe
point me to a good example?
(I already have a Cocoon-system up and running)
Thanks

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

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


Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Joerg Heinicke

KOZLOV Roman wrote:
 > Hi,
 >
 > Just a question, if XHTML is XML then is it possible to use XML serializer?
 > If not, why?
 >
 > Roman

Yes, it's possible of course. When serializing a document as XHTML instead 
of XML, the doctype declaration for XHTML will be added.

Regards,

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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

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




Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread KOZLOV Roman

Hi,

Just a question, if XHTML is XML then is it possible to use XML serializer?
If not, why?

Roman

Vadim Gritsenko wrote:

> > From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]]
> >
> > Hi list,
> >
> >   I have a page with a form generated by Cocoon. There's a textarea in
> > the form where you can edit some xml (possibly xhtml). Because the
> form
> > is an HTML form I'm using an HTMLSerializer. But I want to keep the
> > serializer from altering the markup in the textarea, because if it's
> > xhtml content it will turn 's into 's. Then when the text is
> > saved and you visit the form again, or view the page the text is on, I
> > get a parsing error.
> >
> > My xml fil looks somethng like this:
> >
> > 
> >
> >  
> >Here's some text that will get messed up by HTMLSerializer
> >
> >Then I'll get an error.
> >  
> >
> > 
> >
> > I use an xslt template to turn this into my form that looks likt this:
> >
> > 
> > 
> >
> > I've tried a few things with no luck so far. I added a
> > xmlns="http://www.w3.org/1999/xhtml"; attribute to the text element
> > hoping that HTMLSerializer would then leave it alone, but my
> stylesheet
> > won't copy the text now.
>
> http://www.w3.org/1999/xhtml";>
>   
> 
>
> But it won't help you.
>
> Try xhtml serializer, it comes with default sitemap.
>
> Vadim
>
> > I tried copying the xml serializer component in
> > , renaming it "xhtml" and changing the mime-type to
> > text/html, but the browser wouldn't render it.
> >
> > (Along a similar line, I was trying to use jTidy to turn html into
> > xhtml, in case the user didn't enter well-formed xml. But I'm dealing
> > with html fragments and jTidy kept wraping everything in ,
> > etc...)
> >
> > Any ideas?
> >
> > Thanks,
> >Justin
> =
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> 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. 

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




RE: ... and another No suitable driver error

2002-08-09 Thread Hay Bruce

Hi Kim,

I tried your first suggestion with the same results as before:
No suitable driver.

I had already the driver in the web.xml and believe it is loaded
correctly since I get the message
Unknown-thread/CocoonServlet: Trying to load class: oracle.jdbc.driver.OracleDriver
in the access.log along with no errors when I restart Tomcat.

Any other suggestions?

Thanks,

Bruce

-Original Message-
From: Kim Jelmoni [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 9. August 2002 09:04
To: [EMAIL PROTECTED]
Subject: Re: ... and another No suitable driver error


Hi,

try in cocoon.xconf with driver



true
jdbc:oracle:thin:@prdwh1:1521:ITFP1A
.
.
oracle.jdbc.driver.OracleDriver
  

or at least in web.xml

init-param>
   load-class
   
 oracle.jdbc.driver.OracleDriver
   
 

you need to load the driver at start.

Kim

Hay Bruce wrote:
> Hi everyone,
> 
> While trying to access an Oracle 8.1.7 database via an XSP 
> page using ESQL I get the following error:
> 
> java.lang.RuntimeException: Error opening connection to dburl: : No suitable driver
> 
> The connection pool is defined in cocoon.xconf as:
> 
>
>   
>   true
>   jdbc:oracle:thin:@prdwh1:1521:ITFP1A
>   .
>   .
> 
> 
> and the XSP code accessing the database (attempting, I should say)
> is simply:
> 
>
>   
> oracle-pool
> 
>   select user from dual
> 
> 
>   
> 
>   
> 
> 
> 
>   
> 
> 
> There is no problem in loading the JDBC driver since I don't get a
> java.lang.ClassNotFoundException at this point -->
> Unknown-thread/CocoonServlet: Trying to load class: oracle.jdbc.driver.OracleDriver
> 
> A small java application which connects using the method:
> 
> Connection conn =
>   DriverManager.getConnection ("jdbc:oracle:thin:@prdwh1:1521:ITFP1A",
>  "", "");
> 
> does work.
> 
> I'm using Tomcat 4.0.4, Cocoon 2.0.3 (cocoon-2.0.3-vm14-bin.tar.gz) and JDK 1.4
> with the Oracle classes from classes12.zip (renamed as .jar and installed in
> $COCOON_HOME/WEB-INF/lib).
> 
> Any ideas?
> 
>   Bruce
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> 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. 

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. 

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