Usage of cocoo://

2002-10-03 Thread aps olute
Couple of snippet code i'd like to get clarification map:match pattern=**/*.html map:generate src=cocoon:/{1}/index.xml/ this means to look for another matcher with pattern of **/index.xml on this sitemap.xmap correct? map:transform src=cocoon:/xsl-source/ similarly for this, it searches

Re: question about escaping

2002-10-03 Thread Dmitry Olyenyov
Pavel Natov [EMAIL PROTECTED] writes:   I'm still not sure about the problem that I have but here is the question:   I retrieve some data from Oracle database using ESQL logicsheet in a XSP file. esql:results esql:row-results titleesql:get-string column=title//title

CVS... :-(

2002-10-03 Thread Barbara Post
Hi all, Well, how strange : Tomcat 4.0.5, jdk 1.3.1, the jars, xconf and xmap files from yesterday mornng's CVS, my configuration and pipelines added, Tomcat's work directory cleaned, then : description org.apache.cocoon.ProcessingException: Failed to load sitemap from

Re: CVS... :-(

2002-10-03 Thread Antonio Gallardo Rivera
Barbara: Try to remove the work directory of TOMCAT. sometimes it works. Antonio Gallardo El Jueves, 03 de Octubre de 2002 01:24, Barbara Post escribió: Hi all, Well, how strange : Tomcat 4.0.5, jdk 1.3.1, the jars, xconf and xmap files from yesterday mornng's CVS, my configuration and

embedding html in xml ?

2002-10-03 Thread Jessica Niewint
Until my books are arriving I have to continue to post all my questions that couldn't be answered by mysql and the internet In my database is saved a paragraph which contains not only pure text, but also an url . Via esql (xsp) I read this data and generate with my xsl and html document.

Re: question about escaping

2002-10-03 Thread Patrik Husfloen
Dmitry Olyenyov wrote: snip/ The right way is esql:get-xml column=content/ so simple.. :) thanks, saved me a bunch of headaches /patrik - Please check that your question has not already been answered in the FAQ before

Re: Usage of cocoo://

2002-10-03 Thread Joerg Heinicke
The match is searched in the root sitemap. http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html (in the middle of the page in Aggregating all pseudo protocols are described) Regards, Joerg aps olute wrote: Couple of snippet code i'd like to get clarification map:match

getting mad

2002-10-03 Thread Barbara Post
I switched back to my jars and files that worked before the tests I did this morning (Sept. 13 CVS), and get the same error... auth-protect action is in cause. Now nothing works, I've lost all my project :'( Feel depressed. And I have pounds to loose, depressing too. Of course deleted Tomcat's

RE: embedding html in xml ?

2002-10-03 Thread Luca Morandini
Jessica, XHTML is XML... hence you can treat HTML as XML in you stylesheets (of course the serializer must be HTML). For instance, something like: xsl:variable link=@link a href=$linkclickable link/a or: xsl:element name=a xsl:attribute name=hrefxsl:value-of=@link//xsl:attribute

RE: getting mad

2002-10-03 Thread Piroumian Konstantin
Try to do 'build clean install' from sources. Should help. If not, then try to see in logs what happens and what is the real problem (sometimes the error messages contain too sparse information). Konstantin -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent:

Re: getting mad

2002-10-03 Thread Antonio Gallardo Rivera
Some more tips: 1-Sometimes helps too. Shutdown all Java app you are using. 2-rebuild 2 times. I dont know why but its helps: ./build.sh -Dinclude.webapp.libs=true \ -Dinclude.scratchpad.libs=true installwar ./build.sh installwar (It looks like in the first

RE: embedding html in xml ?

2002-10-03 Thread Jessica Niewint
Thanks Luca, but my problem is that the stored text in the database which belongs to the parameter tag is something like this: blablablablabla a href=somelink.tosomething.com blablabla/ablablablabla ... so the contained html in the stored text could be also an image, table, etc

Re: Cocoon with IBM WebSphere

2002-10-03 Thread Werner Guttmann
Robert, IBM was reknown for their inability to produce products that are *not* really compatible with the relevant specifications. WebSphere 3.5.x is such an example. I am using WebSphere 4.0.2 and 4.0.3, and all these teething problems are now a matter of past ... I would strongly advise you

RE: embedding html in xml ?

2002-10-03 Thread Luca Morandini
Jessica, 1) your XML document is well-formed XML, don't worry about mixed content: ain't XHTML well-formed XML ? 2) you could serve your HTML (both text and link) with something like: xsl:template match=parameter xsl:copy-of select=./node()/ /xsl:template Best regards,

R: embedding html in xml ?

2002-10-03 Thread Lorenzo De Sio
What about xsl:value-of select=html_field_name disable-output-escaping=yes/ ? L. -Messaggio originale- Da: Jessica Niewint [mailto:[EMAIL PROTECTED]] Inviato: giovedì 3 ottobre 2002 11.06 A: [EMAIL PROTECTED] Oggetto: embedding html in xml ? Until my books are arriving I

RE: embedding html in xml ?

2002-10-03 Thread Luca Morandini
Lorenzo, you don't need the disable-output-escaping to do that, xsl:value-of converts everything into plain text just the same. Anyway, I inferred Jessica wanted to retain her links, not convert them into text. Best regards, - Luca

Re: embedding html in xml ?

2002-10-03 Thread Jessica Niewint
At 12.57 03/10/2002 +0200, you wrote: Thanks to both of you ... I really have no idea what I would do without this mailinglist Thanks again ... Jessi What about xsl:value-of select=html_field_name disable-output-escaping=yes/ ? L. -Messaggio originale- Da: Jessica

Re: Combining Cocoon and Struts

2002-10-03 Thread Dag Nygaard
Werner Guttmann wrote: We have been using both of the following two options to establish a clean contract between Struts and Cocoon: - Use of XMLizable interface from within XSPs - Use of Castor XML In both cases, you would use Struts actions to go to the model and return you the data

How to synchronize combos...

2002-10-03 Thread Antonio Gallardo Rivera
Hi! I have a table called clientsproducts with 3 keys: cli_id Client pro_id (Product) cat_id (Category) In this example, the pro_id and cat_id are a complex key from the table products, because every product has a category. And one category can have many products. When I need to

R: embedding html in xml ?

2002-10-03 Thread Lorenzo De Sio
Luca, I agree it converts them to plain text anyway, but since this text is HTML, I guess it's much different having it serialized as lt;pgt;testlt;/pgt; instead of ptest/p. Or maybe I missed something :-)) L. -Messaggio originale- Da: Luca Morandini [mailto:[EMAIL PROTECTED]]

Re: embedding html in xml ?

2002-10-03 Thread Patrik Husfloen
funny how often this question comes up, you might want to see the thread question about escaping that deals with this exact same problem. Dmitry Olyenyov wrote: The right way is esql:get-xml column=content/ /patrik Jessica Niewint wrote: Thanks Luca, but my problem is that the stored

Re: [PATCH] New xsp-session:getxml tag

2002-10-03 Thread Patrik Husfloen
I'm just nitpicking, but I'd like to see xsp-session:get-xml instead :) /patrik Antonio Gallardo Rivera wrote: Hi! Here you will find the lastest development of the xsp-session:getxml tag. It works with the lastest Cocoon 2.1 CVS (02-Oct-2002 21:50 CST). Since 1 user asked me about

RE: embedding html in xml ?

2002-10-03 Thread Luca Morandini
Lorenzo, quoting from the XSLT 1.0 - W3C Recommendation 16 November 1999: The xsl:value-of element is instantiated to create a text node in the result tree. The required select attribute is an expression; this expression is evaluated and the resulting object is converted to a string as if by

Re: How to synchronize combos...

2002-10-03 Thread Ugo Cei
Antonio Gallardo Rivera wrote: if (i 0) { a.concat(WHERE cat_id=); a.concat(Integer.toString(i)); } Strings in Java are immutable! The concat(String) method returns a *NEW* String [1]. a = a.concat(WHERE cat_id=); a = a.concat(Integer.toString(i));

Re: Cocoon with IBM WebSphere

2002-10-03 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: I'm trying to get Cocoon loaded under WebSphere 3.4.5. This has full support for Servlet 2.2 so according to the Cocoon requirements it shouldn't be an issue. Unfortunately, you problem doesn't have something to do with Servlet 2.2 compatibility... Root Error-1:

Re: [PATCH] New xsp-session:getxml tag

2002-10-03 Thread Antonio Gallardo Rivera
May be you are right :) but in: http://xml.apache.org/cocoon/developing/webapps/authentication.html You will find: session:getxml and not session:get-xml This is the reason I choose the name: xsp-session:getxml I am newbie in Cocoon. I let to the Cocoon developers the work of choose the

Re: How to synchronize combos...

2002-10-03 Thread Antonio Gallardo Rivera
Thanks Ugo! I know I have a really big problem, I am newbie in Java, XML, XSL and Cocoon at the same time: 1-XML dont make me problem because is very easy. 2-Cocoon I think is very logical, but have some dark sides to me (I think). 3-For Java I need to have the API Docs in a browser to write

Re: embedding html in xml ?

2002-10-03 Thread Jessica Niewint
I will have a look at. since I am a newbie to the xml-cocoon world sometime it is even difficult to ask the right question for a problem. But in this case, everything is resolved now, Thanks again Jessica At 14.12 03/10/2002 +0200, you wrote: funny how often this question comes up, you might

PROBLEM: saving files in cocoon

2002-10-03 Thread dariusrr
hi guys Iwas just wondering if i can save any xml or html forms produced using the sitemap or any other method in cocoon?? thanks alot darius

Re: PROBLEM: saving files in cocoon

2002-10-03 Thread Barbara Post
yes, have a look onto WriteSourceTransformer (CVS only, not 2.0.3). - Original Message - From: dariusrr To: [EMAIL PROTECTED] Sent: Thursday, October 03, 2002 3:12 PM Subject: PROBLEM: saving files in cocoon hi guys Iwas just wondering if i can

R: embedding html in xml ?

2002-10-03 Thread Lorenzo De Sio
Luca, I'm sure you're right with the specification. I was just sharing a humble real life example. I actually have an XSP containing esql:get-columns/. One of the columns contains HTML (which BTW most of the times isn't even well-formed at all :-)), as I guessed in Jessica's case. If I don't

Re: SPAM: Cocoon 2 Developers Wanted...

2002-10-03 Thread Lajos Moczar
Whoops - sorry about the spam. I guess you have to do that at least once in your career ;) Lajos - Please check that your question has not already been answered in the FAQ before posting.

Re: Cocoon on Headless Linux with JDK1.4

2002-10-03 Thread Ted T. Garrett II
Running tomcat's startup.sh with -Djava.awt.headless=true included in the JAVA_OPTS or CATALINA_OPTS variables works fine for me, but I don't have a machine currently installed that doesn't have the x-windows libraries loaded. Running ldd on /usr/lib/java/bin/java indicates no dependencies on

Re: R: embedding html in xml ?

2002-10-03 Thread Jessica Niewint
At 16.21 03/10/2002 +0200, you wrote: Luca, I'm sure you're right with the specification. I was just sharing a humble real life example. I actually have an XSP containing esql:get-columns/. One of the columns contains HTML (which BTW most of the times isn't even well-formed at all :-)), as I

Bugs ?

2002-10-03 Thread Barbara Post
1. When I use this : map:match pattern=getxml map:act type=auth-protect map:parameter name=handler value=baepphandler/ map:generate src=xml/getxml.xml/ map:transform type=session/ map:serialize type=xml/ /map:act /map:match and a map aggregate with several