SQL Transformer or ESQL Stylesheet?
Hello Cocoon! Can you write me any clues when to use sql transformer and when esql stylesheet? What is more flexible, easier, more professional etc? I'm going to write simple news portal with Xindice or MySQL as DBMS and I'm wondering what solution is better. Greetz, Konrad Inglot -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XMLForm: how to display arrays
Hello, I'm using XMLForm to allow user to query a database. How can I display results data in an array like this: RESULTS: NameTypeOwner OS -- U1 Desktop Mob Wnt U2 Laptop Mob Wxp Is there a way to do this with XForms? Thanks Sylvain (T) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auth-protect action problem
Hi, Here is the sunshine part from my sitemap. I use cocoon-2.0.4. 1/ in the map:components element !-- === SunShine === -- map:actions map:action name=sunRise_login src=org.apache.cocoon.sunshine.sunrise.acting.LoginAction/ map:action name=sunRise_logout src=org.apache.cocoon.sunshine.sunrise.acting.LogoutAction/ map:action name=sunRise_loggedIn src=org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction/ map:action name=sunShine_session src=org.apache.cocoon.sunshine.acting.SessionAction/ map:action name=sunSpot_auth src=org.apache.cocoon.sunshine.sunspot.acting.AuthAction/ map:action name=sunRise_auth src=org.apache.cocoon.sunshine.sunrise.acting.AuthAction handlers handler name=foo_handler xmlns:map=http://apache.org/cocoon/sitemap/1.0; xmlns:sunshine=http://sunshine.sundn.de/sunshine/1.0; redirect-to uri=cocoon://login_page/ authentication uri=cocoon://authuser/ /handler /handlers /map:action /map:actions 2/ in the map:pipelines element map:pipeline !-- === SunShine === -- map:match pattern=demo !-- check you are already logged -- map:act type=sunRise_loggedIn map:parameter name=handler value=foo_handler/ map:redirect-to uri=protected/display/ /map:act !-- if not go to page login-- map:generate type=serverpages src=demo/login_page.xsp/ map:transform src=demo/login_page.xsl/ map:transform type=encodeURL/ map:serialize type=html/ /map:match !-- the login which call authuser via the handler -- map:match pattern=login !-- check if the user is logged -- map:act type=sunRise_loggedIn map:parameter name=handler value=foo_handler/ map:redirect-to uri=protected/display/ /map:act !-- log the user -- map:act type=sunRise_login map:act type=sunShine_session/ map:parameter name=handler value=foo_handler/ map:parameter name=parameter_name value=request:name/ map:parameter name=parameter_password value=request:password/ !-- if the authentication is successfull then this redirect will be performed -- map:redirect-to uri=demo/ /map:act !-- authentication failed -- map:generate src=demo/login_failed.xml/ map:transform src=demo/login_failed.xsl/ map:serialize type=html/ /map:match !-- the authentication -- map:match pattern=authuser map:generate src=demo/user.xml/ !-- check the user -- map:transform src=demo/user.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=xml/ /map:match !-- = the protected resources == -- map:match pattern=protected/** map:act type=sunRise_auth map:parameter name=handler value=foo_handler/ !-- welcome page -- map:match pattern=protected/display map:generate type=serverpages src=demo/display.xsp/ map:transform type=xslt src=demo/display.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=html/ /map:match /map:act /map:match map:pipeline Hope that help. Moreover I had this error but I don't remember how I solved it. I think the handler (authentication-manager) is not in the right place. Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mail function
Title: Nachricht hi, i am quite new to cocoon, and try to write a registration using xsp. my question is, if there is a funktion like within php to automatically send a mail to me, with the registration informations. any comment would be helpfull. i searched for comments on this within the cocoon mailinglist archive, but couldn#t even find questions related to that subject. so if anyone knows links, to give me a brief overview how to archive a function like this, please mail. thanks and regards
Re: style sheet WML - XML
zze-MORY Nicolas FTRD/DMI/REN schrieb: can anyone give me the URL or the file of the official XSL style sheet wich can transform WML in XML ? Thanks Hi Nicolas, WML is an XML application. Do u want to transform it into another xml-application like xhtml or fo? Björn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: style sheet WML - XML
yeah exactly ! do you have a solution for xhtml mobile profile for example ? -Original Message- From: Björn Voigt [mailto:[EMAIL PROTECTED] Sent: lundi 17 mars 2003 12:09 To: [EMAIL PROTECTED] Subject: Re: style sheet WML - XML zze-MORY Nicolas FTRD/DMI/REN schrieb: can anyone give me the URL or the file of the official XSL style sheet wich can transform WML in XML ? Thanks Hi Nicolas, WML is an XML application. Do u want to transform it into another xml-application like xhtml or fo? Björn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auth-protect action problem
Hi, I have just been experimenting with the authentication system, below is the pipelines section of my sitemap, which is now working, but this is a 2.1system. Check carefully the documentation you have been using, I believe the authentication system as evolved between 2.0.4 and 2.1 and some of the documentation on the web site refers only to the new 2.1 system. You may have a mixture of setting and configurations in your sitemap, some for the 2.0.4 version and some for the 2.1 version Tony = map:pipelines map:component-configurations authentication-manager handlers handler name=global redirect-to uri=cocoon://login_page/ authentication uri=cocoon:raw://check/ /handler /handlers /authentication-manager /map:component-configurations !-- main pipeline -- map:pipeline map:match pattern=check map:generate type=serverpages src="" / map:serialize type=xml / /map:match map:match pattern=login_page map:read mime-type=text/xhtml src=""> /map:match map:match pattern=**/*.jpg map:read mime-type=images/jpeg src="" / /map:match map:match pattern=login_ok map:read mime-type=text/html src="" / /map:match map:match pattern=login map:act type=auth-login map:parameter name=handler value=global / map:parameter name=parameter_userid value={request-param:name} / map:parameter name=parameter_password value={request-param:password} / map:redirect-to uri=login_ok / /map:act map:read mime-type=text/html src="" / /map:match map:match pattern=logout map:act type=auth-logout map:parameter name=handler value=global / map:redirect-to uri=login_page / /map:act /map:match map:match pattern=sage/* map:mount check-reload=yes src="" uri-prefix=sage/ /map:match /map:pipeline /map:pipelines === Ungvári Sándor [EMAIL PROTECTED] 16/03/2003 14:31 Please respond to cocoon-users To:[EMAIL PROTECTED] cc: Subject:Auth-protect action problem Hi! I'd like to use the user authentication in cocoon 2.0.4. but I always get some errors. I've read much about this topic but I couldn't solve my problem. Here is my sitemap: ... pipelines map:component-configurations authentication-manager handlers handler name=userPortal redirect-to uri=login/ authentication uri=userLogin/ /handler /handlers /authentication-manager /map:component-configurations pipeline ... map:match pattern=login map:generate type=xsp src=""> map:serialize/ /map:match map:match pattern=userLogin map:act type=auth-login map:parameter name=handler value =userPortal/ map:parameter name=parameter_userid value ={request:user}/ map:parameter name=parameter_password value={request:password}/ map:redirect-to uri=services/ /map:act !-- authentication failed: Back to login-page -- map:generate type=xsp src=""> map:serialize/ /map:match map:match pattern=services map:act type=auth-protect map:parameter name=handler value =userPortal/ map:read src="" mime-type=image/gif/ /map:act /map:match ... /pipeline ... type fatal message UnnamedSelector: ComponentSelector could not find the component for hint [auth-protect] description org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint [auth-protect] sender org.apache.cocoon.servlet.CocoonServlet Should I define anything like this map:components map:actions map:action name=auth-protect logger=sitemap.action.auth-protect src=""> map:actions ... ??? If I do this the result is: message Error in sitemap configuration : org.apache.cocoon.webapps.authentication.acting.AuthAction description org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.webapps.authentication.acting.AuthAction sender org.apache.cocoon.servlet.CocoonServlet Maybe I've to add something to cocoon.xconf? Or what? Please HELP me!!! q:-) Soma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auth-protect action problem
To clarify versioninng issues of the authentication and portal frameworks: 2.0.4 contains these parts in the scratchpad area as sunrise and sunspot. So, if you use 2.0.4, there is no auth-protect action but an sunrise-... action. 2.0.5-dev (cvs) contains the authentication and portal framework in the core; the action is called auth-protect 2.1-dev (cvs) the same version as 2.0.5-dev Carsten -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 12:52 PM To: [EMAIL PROTECTED] Subject: Re: Auth-protect action problem Hi, I have just been experimenting with the authentication system, below is the pipelines section of my sitemap, which is now working, but this is a 2.1system. Check carefully the documentation you have been using, I believe the authentication system as evolved between 2.0.4 and 2.1 and some of the documentation on the web site refers only to the new 2.1 system. You may have a mixture of setting and configurations in your sitemap, some for the 2.0.4 version and some for the 2.1 version Tony = map:pipelines map:component-configurations authentication-manager handlers handler name=global redirect-to uri=cocoon://login_page/ authentication uri=cocoon:raw://check/ /handler /handlers /authentication-manager /map:component-configurations !-- main pipeline -- map:pipeline map:match pattern=check map:generate type=serverpages src=check.xsp / map:serialize type=xml / /map:match map:match pattern=login_page map:read mime-type=text/xhtml src=login_page.html/ /map:match map:match pattern=**/*.jpg map:read mime-type=images/jpeg src=bodycare/common/images/{2}.jpg / /map:match map:match pattern=login_ok map:read mime-type=text/html src=login_ok.html / /map:match map:match pattern=login map:act type=auth-login map:parameter name=handler value=global / map:parameter name=parameter_userid value={request-param:name} / map:parameter name=parameter_password value={request-param:password} / map:redirect-to uri=login_ok / /map:act map:read mime-type=text/html src=login_failed.html / /map:match map:match pattern=logout map:act type=auth-logout map:parameter name=handler value=global / map:redirect-to uri=login_page / /map:act /map:match map:match pattern=sage/* map:mount check-reload=yes src=bodycare/sage/ uri-prefix=sage/ /map:match /map:pipeline /map:pipelines === Ungvári Sándor [EMAIL PROTECTED] 16/03/2003 14:31 Please respond to cocoon-users To:[EMAIL PROTECTED] cc: Subject:Auth-protect action problem Hi! I'd like to use the user authentication in cocoon 2.0.4. but I always get some errors. I've read much about this topic but I couldn't solve my problem. Here is my sitemap: ... pipelines map:component-configurations authentication-manager handlers handler name=userPortal redirect-to uri=login/ authentication uri=userLogin/ /handler /handlers /authentication-manager /map:component-configurations pipeline ... map:match pattern=login map:generate type=xsp src=login.xsp/ map:serialize/ /map:match map:match pattern=userLogin map:act type=auth-login map:parameter name=handler value =userPortal/ map:parameter name=parameter_userid value ={request:user}/ map:parameter name=parameter_password value={request:password}/ map:redirect-to uri=services/ /map:act !-- authentication failed: Back to login-page -- map:generate type=xsp src=login.xsp/ map:serialize/ /map:match map:match pattern=services map:act type=auth-protect map:parameter name=handler value =userPortal/ map:read src=docs/bart.gif mime-type=image/gif/ /map:act /map:match ... /pipeline ... type fatal message UnnamedSelector: ComponentSelector could not find the component for hint [auth-protect] description org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
Get a sitemap parameter for an xsl page
Is it possible to get a sitemap parameter and using it into an xsl page. Here is my pipeline: map:match pattern=search map:generate type=Request/ map:transform type=Query map:parameter name=interval value=50/ /map:transform map:transform type=xslt src=proto/xsl/documents.xsl/ map:serialize/ /map:match I want to use the parameter interval in the xslt transformation. But I don't want to declare it again into the xslt transformer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auth-protect action problem
You're right, I use the scratchpad. Be careful to my code, I only use sunrise actions and not auth-protect. By the way, is there a pre compiled version of 2.1 ? At 13:10 17/03/2003 +0100, you wrote: To clarify versioninng issues of the authentication and portal frameworks: 2.0.4 contains these parts in the scratchpad area as sunrise and sunspot. So, if you use 2.0.4, there is no auth-protect action but an sunrise-... action. 2.0.5-dev (cvs) contains the authentication and portal framework in the core; the action is called auth-protect 2.1-dev (cvs) the same version as 2.0.5-dev Carsten -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 12:52 PM To: [EMAIL PROTECTED] Subject: Re: Auth-protect action problem Hi, I have just been experimenting with the authentication system, below is the pipelines section of my sitemap, which is now working, but this is a 2.1system. Check carefully the documentation you have been using, I believe the authentication system as evolved between 2.0.4 and 2.1 and some of the documentation on the web site refers only to the new 2.1 system. You may have a mixture of setting and configurations in your sitemap, some for the 2.0.4 version and some for the 2.1 version Tony = map:pipelines map:component-configurations authentication-manager handlers handler name=global redirect-to uri=cocoon://login_page/ authentication uri=cocoon:raw://check/ /handler /handlers /authentication-manager /map:component-configurations !-- main pipeline -- map:pipeline map:match pattern=check map:generate type=serverpages src=check.xsp / map:serialize type=xml / /map:match map:match pattern=login_page map:read mime-type=text/xhtml src=login_page.html/ /map:match map:match pattern=**/*.jpg map:read mime-type=images/jpeg src=bodycare/common/images/{2}.jpg / /map:match map:match pattern=login_ok map:read mime-type=text/html src=login_ok.html / /map:match map:match pattern=login map:act type=auth-login map:parameter name=handler value=global / map:parameter name=parameter_userid value={request-param:name} / map:parameter name=parameter_password value={request-param:password} / map:redirect-to uri=login_ok / /map:act map:read mime-type=text/html src=login_failed.html / /map:match map:match pattern=logout map:act type=auth-logout map:parameter name=handler value=global / map:redirect-to uri=login_page / /map:act /map:match map:match pattern=sage/* map:mount check-reload=yes src=bodycare/sage/ uri-prefix=sage/ /map:match /map:pipeline /map:pipelines === Ungvári Sándor [EMAIL PROTECTED] 16/03/2003 14:31 Please respond to cocoon-users To:[EMAIL PROTECTED] cc: Subject:Auth-protect action problem Hi! I'd like to use the user authentication in cocoon 2.0.4. but I always get some errors. I've read much about this topic but I couldn't solve my problem. Here is my sitemap: ... pipelines map:component-configurations authentication-manager handlers handler name=userPortal redirect-to uri=login/ authentication uri=userLogin/ /handler /handlers /authentication-manager /map:component-configurations pipeline ... map:match pattern=login map:generate type=xsp src=login.xsp/ map:serialize/ /map:match map:match pattern=userLogin map:act type=auth-login map:parameter name=handler value =userPortal/ map:parameter name=parameter_userid value ={request:user}/ map:parameter name=parameter_password value={request:password}/ map:redirect-to uri=services/ /map:act !-- authentication failed: Back to login-page -- map:generate type=xsp src=login.xsp/ map:serialize/ /map:match map:match pattern=services map:act type=auth-protect map:parameter name=handler value =userPortal/ map:read src=docs/bart.gif mime-type=image/gif/ /map:act /map:match ... /pipeline ... type fatal message
RE: Auth-protect action problem
-Original Message- From: Lionel Crine [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: RE: Auth-protect action problem You're right, I use the scratchpad. Be careful to my code, I only use sunrise actions and not auth-protect. By the way, is there a pre compiled version of 2.1 ? No, not that I'm aware of - only the cvs and the nightly snapshots. Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating an aggregation from a list of files
Hi, I'm trying to get Cocoon working with IMS Content Packages[IMS-CP], to help my development process, and could do with some help. Short version: Can Cocoon accept an XML file listing several other files, and make an aggregate from the files listed? If so, how? Long version: A bit of background for anyone who needs it: IMS is a group developing specifications for educational materials - content, metadata, questions answers, etc. Their Content Packaging is a standard that describes how to wrap up a load of content and metadata with a manifest file which describes the structure and navigation to use with the content (roughly speaking). From the little I know of Java, I think IMSCP is quite like a .jar file - a bunch of files with a manifest saying what's what, all rolled up in a zip. Anyway, what I want to do is use Cocoon during development for live transformations of our XML source files to HTML, prior to converting them all to static HTML ready to be zipped up. Transforming the individual content files is fairly straightforward, but creating the navigation isn't - as the structure is defined in the IMS manifest, but titles and descriptions are in metadata files pointed to by the manifest. I would like to load the manifest, XSLTransform it into a list of files, then aggregate those files, and send that on down the pipeline for more transfromations. Can this be done? There are a few options involving XSLT document(), but they usually end up hiding when files are updated, which would defeat the pupose of using Cocoon in the first place. Any thoughts on the problem would be appreiciated, Dave. [IMS-CP] http://www.imsproject.org/content/packaging/index.cfm -- TALL, OUDCE and the University of Oxford accept no legal responsibility for the contents of this message. Any views or opinions presented are only those of the author and not those of TALL, or OUDCE, or the University of Oxford. If this email has come to you in error please delete it and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
You don't have to declare it again. This is an extract of my sitemap. Notice the parameter relpath. map:match pattern=xsp/*/*.html map:generate src=xsp/{1}/{2}.xsp type=xsp/ map:transform src=xsl/html.xmlpage.xsl map:parameter name=relpath value=./../../ /map:transform map:serialize/ /map:match This is the XSL (relevant part). Notice the declaration of the parameter on top, and it's use in the code. ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=relpath/ xsl:template match=/xml/layout html head link type=text/css rel=stylesheet xsl:attribute name=hrefxsl:value-of select=$relpath//css/general.css/xsl:attribute /link /head body /body /html /xsl:template /xsl:stylesheet I don't do that because I want my sitemap to choose the value of the parameter. I read some messages and it seems that's it's not possible to use global parameters in the sitemap with cocoon 2.0.4. At 13:48 17/03/2003 +0100, you wrote: Why don't you want to declare it in the XSL ? Otherwise, it's very simple: xsl:param name=yourname/ and you can use it as xsl:value-of select=$yourname/ Is it possible to get a sitemap parameter and using it into an xsl page. Here is my pipeline: map:match pattern=search map:generate type=Request/ map:transform type=Query map:parameter name=interval value=50/ /map:transform map:transform type=xslt src=proto/xsl/documents.xsl/ map:serialize/ /map:match I want to use the parameter interval in the xslt transformation. But I don't want to declare it again into the xslt transformer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
I think there is a confusion. I only want to use a parameter which have the same value in all the pipelines without declare it in each pipeline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
You can't do that ... (In my humble opinion) Unless ... you declare it in an XML file, and use the aggregation (or include) with that file in each pipeline. Or, you can use the document() function in XSL to read the content of that single XML file, to avoid the aggregation. I think there is a confusion. I only want to use a parameter which have the same value in all the pipelines without declare it in each pipeline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xerces version in j2sdk_1.4.1
Hi all! Does anyone know the xerces version in j2sdk_1.4.1 ? And also: can I set another xerces for using (if I use java1.4)? -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsp resulting in empty xml doc and the error ComponentSelector could not find the component for hint [serverpages] in core.log
Delis, Christopher E. wrote: why don't you logically split up the queries? you can always aggregate the results of many into one resulting xml file... Dear Christopher, may be that is the soltuion, the problem is that I am not very familiar at this level of modeling with XSP. If I got that right you suggest the following. the original XSP has the following structure: page metadata general /general technical /technical !-- several other sections, all filled with queries -- /metadata /page Does logically splitup mean, I can have several XSP files, such as the following? The first main XSP page metadata !-- results of metadatageneral.xsp here included -- !-- results of metadatatechnical.xsp here included -- /metadata Is this possible? I am sorry if this sounds a bit dumb, but the problem is really that I am not familiar with this kind of technique. A hint on where to find additional documentation on this issue would be great. Thanks, Stephan /page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating an aggregation from a list of files
Hi Yves, thanks for the reply. -Original Message- From: Yves Vindevogel 17 March 2003 12:50 Something like this map:match pattern=sxw/*/*.html map:aggregate element=document map:part src=sxw/{1}/{2}.sxw!/content.xml/ map:part src=sxw/{1}/{2}.sxw!/meta.xml/ /map:aggregate map:transform src=xsl/html.sxwfiles.xsl map:parameter name=relpath value=../../ map:parameter name=use-request-parameters value=true/ /map:transform map:serialize/ /map:match Unfortunately this isn't what I'm trying to do. In your case you already know that you want to get content.xml and meta.xml, but in mine, I don't know what the filenames will be - that's largely what the IMS manifest is there to describe. Hopefully the following will make it more clear: /// Mockup IMS manifest fragment organization !-- *The 'organization' is a heirarchy for the content in the IMSCP* -- titleExample of IMSCP/title item identifier=ItemOne identifierref=ItemOneResource titleThe first item in the 'organization'/title /item item identifier=ItemTwo identifierref=ItemTwoResource titleThe second item in the 'organization'/title /item /organization resources !-- *'resource's are pointers to the content files and metadata* -- resource identifier=ItemOneResource type=webcontent adlcp:scormtype=asset metadata !-- *The metadata file is needed for a description of the file* -- schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of one of the files I want to aggregate* -- adlcp:locationItemOneMetadata.xml/adlcp:location /metadata file href=ItemOneFile.html/ /resource resource identifier=ItemTwoResource type=webcontent adlcp:scormtype=asset metadata schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of another of the files I want to aggregate* -- adlcp:locationItemTwoMetadatameta.xml/adlcp:location /metadata file href=ItemTwoFile.html/ /resource /resources \ End Mockup IMS manifest fragment / The desired aggregation would be something like: map:match pattern=*/*.html map:aggregate element=document !-- the following 'map:part's are created from the IMS manifest -- map:part src={1}/ItemOneMetadatameta.xml/ map:part src={1}/ItemTwoMetadatameta.xml/ /map:aggregate ... /map:match Does that make sense? Cheers, Dave. Hi, I'm trying to get Cocoon working with IMS Content Packages[IMS-CP], to help my development process, and could do with some help. Short version: Can Cocoon accept an XML file listing several other files, and make an aggregate from the files listed? If so, how? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
control flow inside an xmlform application
Hi all, I have got a question regarding the control flow inside an xmlform application. I have the following use case: A form with more than a 'forward' and 'back' button. E.g. a button wich adds an extra input field to the form. The user should be sent to the actual form again. form1 (start) | | form2 | add button + show this form again | | form3 (end) function inputdemo(xform) { var mybean=new Packages.inputdemo.DemoBean(); var bl=new Packages.inputdemo.businesslogic(mybean); xform.setModel(mybean); xform.sendView(form1, client/apps/inputdemo/form1.xml); bl.dosomething(); //loop until user presses NOT button 'a' while(true){ xform.sendView(form2, client/apps/inputdemo/form2.xml); if(user pressed button 'a') // ?? mybean.getList().add(new String()); else break; } xform.finish(form3, client/apps/inputdemo/form3.xml); } How can I implement this with flow and xmlform? I'm not sure, perhaps I have overlooked something really important. This behavior wasn't a problem with (form)actions+xmlform. Inside an action I would simply get the last command and this wouldn't be an problem. With continuation the command gets encrypted, and therefore it cannot be used (afaik). Cheers, Matthias Stöckel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mail function
There is a sendmail logicsheet, not documented on the website. To use it is pretty simple, here's an example of what you might do with a POST from a message form: xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:sendmail=http://apache.org/cocoon/sendmail/1.0; page xsp:logic String from = request.getParameter(from); String to = request.getParameter(to); String cc = request.getParameter(cc); String bcc = request.getParameter(bcc); String subject = request.getParameter(subject); String body = request.getParameter(body); // the java sendmail interface apparently dislikes empty string addresses if (.equals(cc)) { cc = null; } if (.equals(bcc)) { bcc = null; } /xsp:logic message-status xsp:logic boolean success = true; try { sendmail:send-mail sendmail:fromxsp:exprfrom/xsp:expr/sendmail:from sendmail:toxsp:exprto/xsp:expr/sendmail:to sendmail:ccxsp:exprcc/xsp:expr/sendmail:cc sendmail:bccxsp:exprbcc/xsp:expr/sendmail:bcc sendmail:subjectxsp:exprsubject/xsp:expr/sendmail:subject sendmail:bodyxsp:exprmessage/xsp:expr/sendmail:body sendmail:smtphostsmtp.mydomain.com/sendmail:smtphost /sendmail:send-mail } catch (Exception e) { success = false; } if (success) { successxsp:exprto/xsp:expr/success } else { errorxsp:exprto/xsp:expr/error } } /xsp:logic /message-status /page /xsp:page HTH, -Christopher boessem [EMAIL PROTECTED]To: Cocoon-Users [EMAIL PROTECTED] de cc: Subject: mail function 03/17/2003 05:11 AM Please respond to cocoon-users hi, i am quite new to cocoon, and try to write a registration using xsp. my question is, if there is a funktion like within php to automatically send a mail to me, with the registration informations. any comment would be helpfull. i searched for comments on this within the cocoon mailinglist archive, but couldn#t even find questions related to that subject. so if anyone knows links, to give me a brief overview how to archive a function like this, please mail. thanks and regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating an aggregation from a list of files
You have 3 fairly straight forward options whereby you can process your manifest to aggregate your files. 1) Use document() function within an XSL transformation 2) Transform your manifest, create XInclude statements and run through the XInclude transformer. 3) Transform your manifest, create CInclude statements and run through the CInclude transformer. CInclude allows you to call Cocoon pipelines so it is very powerful. I would recommend it. http://xml.apache.org/cocoon/userdocs/transformers/cinclude- transformer.html In a nutshell your fileGenerator will read manifest.xml manifest resource link=somefile.xml/ resource link=someotherfile.xml/ /manifest It will run it through some XSL code that will generate manifest cinclude:include src=somefile.xml/ cinclude:include src=someotherfile.xml/ /manifest This runs through CInclude with the final result manifest somefilestuff/somefile someotherfiledifferent stuff/someotherfile /manifest Note that the Cinclude statements can use the cocoon protocol which is very powerful cinclude:include src=cocoon:/somefile.xml/ Hope that helps. Darren On Monday, Mar 17, 2003, at 14:23 Europe/Berlin, David Balch wrote: Hi Yves, thanks for the reply. -Original Message- From: Yves Vindevogel 17 March 2003 12:50 Something like this map:match pattern=sxw/*/*.html map:aggregate element=document map:part src=sxw/{1}/{2}.sxw!/content.xml/ map:part src=sxw/{1}/{2}.sxw!/meta.xml/ /map:aggregate map:transform src=xsl/html.sxwfiles.xsl map:parameter name=relpath value=../../ map:parameter name=use-request-parameters value=true/ /map:transform map:serialize/ /map:match Unfortunately this isn't what I'm trying to do. In your case you already know that you want to get content.xml and meta.xml, but in mine, I don't know what the filenames will be - that's largely what the IMS manifest is there to describe. Hopefully the following will make it more clear: /// Mockup IMS manifest fragment organization !-- *The 'organization' is a heirarchy for the content in the IMSCP* -- titleExample of IMSCP/title item identifier=ItemOne identifierref=ItemOneResource titleThe first item in the 'organization'/title /item item identifier=ItemTwo identifierref=ItemTwoResource titleThe second item in the 'organization'/title /item /organization resources !-- *'resource's are pointers to the content files and metadata* -- resource identifier=ItemOneResource type=webcontent adlcp:scormtype=asset metadata !-- *The metadata file is needed for a description of the file* -- schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of one of the files I want to aggregate* -- adlcp:locationItemOneMetadata.xml/adlcp:location /metadata file href=ItemOneFile.html/ /resource resource identifier=ItemTwoResource type=webcontent adlcp:scormtype=asset metadata schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of another of the files I want to aggregate* -- adlcp:locationItemTwoMetadatameta.xml/adlcp:location /metadata file href=ItemTwoFile.html/ /resource /resources \ End Mockup IMS manifest fragment / The desired aggregation would be something like: map:match pattern=*/*.html map:aggregate element=document !-- the following 'map:part's are created from the IMS manifest -- map:part src={1}/ItemOneMetadatameta.xml/ map:part src={1}/ItemTwoMetadatameta.xml/ /map:aggregate ... /map:match Does that make sense? Cheers, Dave. Hi, I'm trying to get Cocoon working with IMS Content Packages[IMS-CP], to help my development process, and could do with some help. Short version: Can Cocoon accept an XML file listing several other files, and make an aggregate from the files listed? If so, how? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Darren Petrie [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
manage the sessions ?
What actions should I use ? How does they act between the pipeline ? Is there any documentation, besides besides these on the cocoon site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manage the sessions ?
You can use xsp-session for this. Docs: the website under XSP / Session Two good books: Cocoon, Building XML applications (Langham / Ziegeler) Cocoon, Developer's handbook (Moczar / Aston) What actions should I use ? How does they act between the pipeline ? Is there any documentation, besides besides these on the cocoon site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manage the sessions ?
I have these two books. I want to manage the sessions in the pipeline. At 14:55 17/03/2003 +0100, you wrote: You can use xsp-session for this. Docs: the website under XSP / Session Two good books: Cocoon, Building XML applications (Langham / Ziegeler) Cocoon, Developer's handbook (Moczar / Aston) What actions should I use ? How does they act between the pipeline ? Is there any documentation, besides besides these on the cocoon site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating an aggregation from a list of files
Hi Darren, Cool, CInclude looks like the ideal approach :-) I'm hoping to get a good set of tools together for working with IMSCP and Cocoon, and I'll post details when I've got something presentable. Many thanks, Dave. -Original Message- From: Darren Petrie [mailto:[EMAIL PROTECTED] Sent: 17 March 2003 13:47 To: [EMAIL PROTECTED] Subject: Re: Creating an aggregation from a list of files You have 3 fairly straight forward options whereby you can process your manifest to aggregate your files. 1) Use document() function within an XSL transformation 2) Transform your manifest, create XInclude statements and run through the XInclude transformer. 3) Transform your manifest, create CInclude statements and run through the CInclude transformer. CInclude allows you to call Cocoon pipelines so it is very powerful. I would recommend it. http://xml.apache.org/cocoon/userdocs/transformers/cinclude- transformer.html In a nutshell your fileGenerator will read manifest.xml manifest resource link=somefile.xml/ resource link=someotherfile.xml/ /manifest It will run it through some XSL code that will generate manifest cinclude:include src=somefile.xml/ cinclude:include src=someotherfile.xml/ /manifest This runs through CInclude with the final result manifest somefilestuff/somefile someotherfiledifferent stuff/someotherfile /manifest Note that the Cinclude statements can use the cocoon protocol which is very powerful cinclude:include src=cocoon:/somefile.xml/ Hope that helps. Darren On Monday, Mar 17, 2003, at 14:23 Europe/Berlin, David Balch wrote: Hi Yves, thanks for the reply. -Original Message- From: Yves Vindevogel 17 March 2003 12:50 Something like this map:match pattern=sxw/*/*.html map:aggregate element=document map:part src=sxw/{1}/{2}.sxw!/content.xml/ map:part src=sxw/{1}/{2}.sxw!/meta.xml/ /map:aggregate map:transform src=xsl/html.sxwfiles.xsl map:parameter name=relpath value=../../ map:parameter name=use-request-parameters value=true/ /map:transform map:serialize/ /map:match Unfortunately this isn't what I'm trying to do. In your case you already know that you want to get content.xml and meta.xml, but in mine, I don't know what the filenames will be - that's largely what the IMS manifest is there to describe. Hopefully the following will make it more clear: /// Mockup IMS manifest fragment organization !-- *The 'organization' is a heirarchy for the content in the IMSCP* -- titleExample of IMSCP/title item identifier=ItemOne identifierref=ItemOneResource titleThe first item in the 'organization'/title /item item identifier=ItemTwo identifierref=ItemTwoResource titleThe second item in the 'organization'/title /item /organization resources !-- *'resource's are pointers to the content files and metadata* -- resource identifier=ItemOneResource type=webcontent adlcp:scormtype=asset metadata !-- *The metadata file is needed for a description of the file* -- schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of one of the files I want to aggregate* -- adlcp:locationItemOneMetadata.xml/adlcp:location /metadata file href=ItemOneFile.html/ /resource resource identifier=ItemTwoResource type=webcontent adlcp:scormtype=asset metadata schemaADL SCORM/schema schemaversion1.2/schemaversion !-- *this is the name of another of the files I want to aggregate* -- adlcp:locationItemTwoMetadatameta.xml/adlcp:location /metadata file href=ItemTwoFile.html/ /resource /resources \ End Mockup IMS manifest fragment / The desired aggregation would be something like: map:match pattern=*/*.html map:aggregate element=document !-- the following 'map:part's are created from the IMS manifest -- map:part src={1}/ItemOneMetadatameta.xml/ map:part src={1}/ItemTwoMetadatameta.xml/ /map:aggregate ... /map:match Does that make sense? Cheers, Dave. Hi, I'm trying to get Cocoon working with IMS Content Packages[IMS-CP], to help my development process, and could do with some help. Short version: Can Cocoon accept an XML file listing several other files, and make an aggregate from the files listed? If so, how?
Re: XMLForm: how to display arrays
the repeat tag should help. -=Ivelin=- - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 3:37 AM Subject: XMLForm: how to display arrays Hello, I'm using XMLForm to allow user to query a database. How can I display results data in an array like this: RESULTS: Name Type Owner OS -- U1 Desktop Mob Wnt U2 Laptop Mob Wxp Is there a way to do this with XForms? Thanks Sylvain (T) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XMLForm: how to display arrays
Hi Ivelin, How do you create columns with repeat tag? Have you an example? Thanks Sylvain -Message d'origine- De: ivelin [mailto:[EMAIL PROTECTED] Date: lundi, 17. mars 2003 15:27 À: [EMAIL PROTECTED] Objet: Re: XMLForm: how to display arrays the repeat tag should help. -=Ivelin=- - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 3:37 AM Subject: XMLForm: how to display arrays Hello, I'm using XMLForm to allow user to query a database. How can I display results data in an array like this: RESULTS: Name Type Owner OS -- U1 Desktop Mob Wnt U2 Laptop Mob Wxp Is there a way to do this with XForms? Thanks Sylvain (T) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating XSP from XSL fails with namespace error
Hi, I try to generate an XSP page by using an XSL file. I get an error when I try to use the generated page. The error is: message The namespace prefix xsp-request was not declared. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: The namespace prefix xsp-request was not declared. This is my sitemap map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xml/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html !--map:generate src=test.xsp type=xsp/-- map:generate src=cocoon:/db/{1}/{2}.xsp type=xsp/ map:serialize type=xml/ /map:match My XSL file is this one, containing the declarations ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xsl:template match=/xml xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true xml esql:connection esql:poolimplements/esql:pool esql:execute-query esql:queryselect count(*) as fieldcount from tblSiteRegisteredUser/esql:query esql:results esql:row-results layout content esql:get-string column=fieldcount/ /content /layout /esql:row-results /esql:results esql:error-results layout content pesql:get-message//p /content /layout /esql:error-results /esql:execute-query /esql:connection /xml /xsp:page /xsl:template /xsl:stylesheet The strange thing is, when I generate with the type equal to xml, it does generate the XML. When I save it to test.xsp (that's the line in comment) and try to use it from file, it works. So the generated file by XSL is valid. But when I use it from the pipelines, it does not work because of that error Any idea ?? -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ???ESQL update table???
on a slightly different note, is there place-holder functionality in esql stylesheet language? e.g., insert into atable (field1, field2) values (?, ?) select * from atable where field1 = ? limit ? ... TIA, chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: ???ESQL update table??? Hi, This is a part of a query. My problem is that when I make a SELECT right after an INSERT I don't get the last updated query : --- esql:execute-query esql:query INSERT INTO Actions (at_name, at_order) VALUES ('esql:get-string column=at_name ancestor=1/', xsp:exprnouvOrder/xsp:expr) /esql:query esql:update-results/ /esql:execute-query esql:execute-query esql:query SELECT TOP xsp:exprmyTopCnt/xsp:expr * FROM Actions WHERE at_order = xsp:exprmyOrderID/xsp:expr ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvActionName = esql:get-string column=at_name/; /xsp:logic /esql:row-results /esql:results /esql:execute-query esql:execute-query esql:query SELECT TOP 1 * FROM Actions WHERE at_name = 'xsp:exprnouvActionName/xsp:expr' ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvAction = esql:get-int column=at_order/; /xsp:logic /esql:row-results /esql:results /esql:execute-query --- What I mean is that in the last execute-query the value esql:get-int column=at_order/ returns a value, but in my SQL Profiler I get a query witch returns another value (the right) I think that it is due to the refreshing from the insert, because the insert value is queried! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: calling Cocoon servlet from a external one
Vadim, result of the Cocoon processing in my JSP + Response already committed -- you are trying to call Cocoon too late in the game; it must be before you commit your response, i.e., call Cocoon before you have any other content generated by JSP. I thought so. I tried it at the beginning and it works there, but that's not where I want to put the data generated by Cocoon. I should investigate more. Take a look at new CocoonBean - programmatic access to the Cocoon. May be it will help. This sounds like something I could use for the task. Unfortunately I'm tied to 2.0.4 for this project :-( Thanks for your help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Press Release
Hi All, I want to develop a press release using Cocoon. I have setup Cocoon in My system no problems. Are there already pre-existing News or Press Release Program running on cocoon which I can make use of. I don't want to re-invent the wheel :). Let me know your thoughts. Have a great day. Karthikeyan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap parameter for esq connection-pool in xsp
Is there a xsp-tag / logicsheet to do this, as well? Just as you can do: xsp-request:get-parameter as=xml name=fruit/? Thanks in advance Stefan - Original Message - From: Andres, Judith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:59 PM Subject: AW: sitemap parameter for esq connection-pool in xsp Try: String pool = parameters.getParameter(pool, ); -Ursprüngliche Nachricht- Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 14:55 An: Cocoon-Users (E-Mail) Betreff: sitemap parameter for esq connection-pool in xsp Hello group, I try to establish a template structure for my reports. The all the same besides the pool-connection. If I use the following pipeline: map:pipeline map:match pattern=report-*.xml map:generate type=serverpages src=global/reports/xsp/verkauf1.xsp map:parameter name=pool value={1}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline How can I call the value of map:parameter name=pool value={1}/ within my xsp? I tried it the following way (snippet from my.xsp) ... xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic ... But this way I can only get the parameter that is called like ...?pool=something. How can I use the parameter defined in the sitemap? ...and can I define the parameter like map:parameter name=pool value={1}/? King regards Thorsten Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: void.gif
Newbie Sitemap Help
Hello All, I am really new to working with Cocoon platform, and was trying to read and understand all that I could before posting for help. have been having trouble setting up a sitemap for a test application that I am currently developing. First off, I am just trying to get a working prototype. I hoping to accomplish a way for a user to request a foo.html document have the HTML Generator with a jtidy.properties file convert it to xml/xhtml and the use a xsl sheet to convert the it to wml and serailze it with wap/wml. At this point I am really stuck on why I keep getting a fatal language error. I am not sure if it is a sitemap error or something in the pipeline causing the error. I tried placing the documents into a separate folder under $COCOON_HOME/mount/foo/ I wrote a sub-sitemap in the foo directory. Each time I try requesting the foo.html I get a couple fatal language errors. I am rather lost at this point and if anybody has an idea for me to try please let me know. Any help would be most appreciated. Thanks, Andrew Smith I have included a short message error and my sub-sitemap. Message: Langeuage Exception Description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 213, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.mount.html.sitemap_xmap should be declared abstract; it does not define method process (org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors Current Setup Linux Redhat 8.0 Tomcat 4.1.18/Cocoon 2.0.4 JDK 1.4.1_01 ?xml version=1.0 encoding=iso-8859-1? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;^ map:components map:generator src=org.apache.cocoon.generation.HTMLGenerator type=html jtidy-configjtidy.properties/jtidy-config /map:generator map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters /map:transformer map:serializer name=wml mime-type=text/vnd.wap.wml logger=sitemap.serializer.wml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype- system encodingACII/encoding omit-xml-declarationyes/omit-xml-declaration /map:serializer /map:components map:pipelines map:pipeline map:match pattern=*.html map:generate src={1}.html/ map:transform src=html2wml.xsl/ map:serialize type=wml/ /map:match !-- map:handle-errors map:serialize status-code=500/ /map:handle-errors -- /map:pipeline^M /map:pipelines^M /map:sitemap !-- End of File --^M -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xerces version in j2sdk_1.4.1
Yury Mikhienko wrote: Hi all! Does anyone know the xerces version in j2sdk_1.4.1 ? j2sdk_1.4.1 does not use xerces. And also: can I set another xerces for using (if I use java1.4)? http://java.sun.com/xml/jaxp/faq.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WritableSource output Cocoon 2.0.4
Hello, I have implemented a basic Email WritableSource. Is there a way for me to add information to the outputted page? Thank you Ciao Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generated XSP page cannot be used as input in generator
Repost Hi, I try to generate an XSP page by using an XSL file. I get an error when I try to use the generated page. The error is: message The namespace prefix xsp-request was not declared. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: The namespace prefix xsp-request was not declared. This is my sitemap map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xml/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html !--map:generate src=test.xsp type=xsp/-- map:generate src=cocoon:/db/{1}/{2}.xsp type=xsp/ map:serialize type=xml/ /map:match My XSL file is this one, containing the declarations ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xsp-session=http://apache.org/xsp/session/2.0; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xsl:template match=/xml xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true xml esql:connection esql:poolimplements/esql:pool esql:execute-query esql:queryselect count(*) as fieldcount from tblSiteRegisteredUser/esql:query esql:results esql:row-results layout content esql:get-string column=fieldcount/ /content /layout /esql:row-results /esql:results esql:error-results layout content pesql:get-message//p /content /layout /esql:error-results /esql:execute-query /esql:connection /xml /xsp:page /xsl:template /xsl:stylesheet The strange thing is, when I generate with the type equal to xml, it does generate the XML. When I save it to test.xsp (that's the line in comment) and try to use it from file, it works. So the generated file by XSL is valid. But when I use it from the pipelines, it does not work because of that error Any idea ?? -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSP generated, problem with cocoon:/ prefix
Sorry everybody, This is not a repost, but might be a bug in cocoon. I found a solution to my other problem, but I wanted to inform this group. Consider this line in the sitemap map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ This works, whereas the line map:generate src=cocoon:/db/{1}/{2}.xsp type=xsp/ gives this error: message The namespace prefix xsp-request was not declared. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: The namespace prefix xsp-request was not declared. If anybody can point me at any stupidity, please do, but I think it's a cocoon problem Anyway, I got a solution. map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xml/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ !--map:transform src=xsl/html.xmlpage.xsl map:parameter name=relpath value=./../../ /map:transform-- map:serialize type=xml/ /map:match -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP generated, problem with cocoon:/ prefix
Hello Yves, that's more than strange and definitively a bug. It's a parsing exception as you can read. It's very clear and means, that a namespace declaration is missing. ou can check, whether your xsp has a namespace declaration for xsp-request. But independent of a possible bug in your XSP - the namespace - there is a bug in Cocoon too. Regards, Joerg Yves Vindevogel wrote: Sorry everybody, This is not a repost, but might be a bug in cocoon. I found a solution to my other problem, but I wanted to inform this group. Consider this line in the sitemap map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ This works, whereas the line map:generate src=cocoon:/db/{1}/{2}.xsp type=xsp/ gives this error: message The namespace prefix xsp-request was not declared. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: The namespace prefix xsp-request was not declared. If anybody can point me at any stupidity, please do, but I think it's a cocoon problem Anyway, I got a solution. map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xml/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ !--map:transform src=xsl/html.xmlpage.xsl map:parameter name=relpath value=./../../ /map:transform-- map:serialize type=xml/ /map:match - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQL Transformer or ESQL Stylesheet?
Hello Cocoon! Can you write me any clues when to use sql transformer and when esql stylesheet? What is more flexible, easier, more professional etc? I'm going to write simple news portal with Xindice or MySQL as DBMS and I'm wondering what solution is better. Greetz, Konrad Inglot -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
control flow inside an xmlform application
Hi all, I have got a question regarding the control flow inside an xmlform application. I have the following use case: A form with more than a 'forward' and 'back' button. E.g. a button wich adds an extra input field to the form. The user should be sent to the actual form again. form1 (start) | | form2 | add button + show this form again | | form3 (end) function inputdemo(xform) { var mybean=new Packages.inputdemo.DemoBean(); var bl=new Packages.inputdemo.businesslogic(mybean); xform.setModel(mybean); xform.sendView(form1, client/apps/inputdemo/form1.xml); bl.dosomething(); //loop until user presses NOT button 'a' while(true){ xform.sendView(form2, client/apps/inputdemo/form2.xml); if(user pressed button 'a') // ?? mybean.getList().add(new String()); else break; } xform.finish(form3, client/apps/inputdemo/form3.xml); } How can I implement this with flow and xmlform? I'm not sure, perhaps I have overlooked something really important. This behavior wasn't a problem with (form)actions+xmlform. Inside an action I would simply get the last command and this wouldn't be an problem. With continuation the command gets encrypted, and therefore it cannot be used (afaik). Cheers, Matthias Stöckel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP generated, problem with cocoon:/ prefix
I'm willing to help find this one, so ask anything you need to know if you want to solve this ... Unfortunately, my XSL contains this declaration, as you can see in my code and otherwise, the generation throught http:// would not work. My XSL file is this one, containing the declarations ?xml version=3D1.0 encoding=3DUTF-8? xsl:stylesheet version=3D1.0=20 =09xmlns:xsl=3Dhttp://www.w3.org/1999/XSL/Transform=20 xmlns:fo=3Dhttp://www.w3.org/1999/XSL/Format; xmlns:xsp-session=3Dhttp://apache.org/xsp/session/2.0; xmlns:xsp-request=3Dhttp://apache.org/xsp/request/2.0=20 xmlns:esql=3Dhttp://apache.org/cocoon/SQL/v2=20 xmlns:xsp=3Dhttp://apache.org/xsp; xsl:template match=3D/xml xsp:page language=3Djava xmlns:xsp=3Dhttp://apache.org/xs= p =20 xmlns:esql=3Dhttp://apache.org/cocoon/SQL/v2; =20 xmlns:xsp-request=3Dhttp://apache.org/xsp/request/2.0; =20 xmlns:xsp-session=3Dhttp://apache.org/xsp/session/2.0; create-session=3Dtrue xml esql:connection esql:poolimplements/esql:pool esql:execute-query esql:queryselect count(*) as=20 fieldcount from tblSiteRegisteredUser/esql:query esql:results esql:row-results layout content =20 esql:get-string column=3Dfieldcount/ /content= /layout /esql:row-results /esql:results esql:error-results layout content =20 pesql:get-message//p /content /layout /esql:error-results /esql:execute-query /esql:connection /xml /xsp:page =09/xsl:template /xsl:stylesheet Hello Yves, that's more than strange and definitively a bug. It's a parsing exception as you can read. It's very clear and means, that a namespace declaration is missing. ou can check, whether your xsp has a namespace declaration for xsp-request. But independent of a possible bug in your XSP - the namespace - there is a bug in Cocoon too. Regards, Joerg Yves Vindevogel wrote: Sorry everybody, This is not a repost, but might be a bug in cocoon. I found a solution to my other problem, but I wanted to inform this group. Consider this line in the sitemap map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ This works, whereas the line map:generate src=cocoon:/db/{1}/{2}.xsp type=xsp/ gives this error: message The namespace prefix xsp-request was not declared. description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.xml.sax.SAXParseException: The namespace prefix xsp-request was not declared. If anybody can point me at any stupidity, please do, but I think it's a cocoon problem Anyway, I got a solution. map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xml/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html map:generate src=http://web/implements/db/{1}/{2}.xsp; type=xsp/ !--map:transform src=xsl/html.xmlpage.xsl map:parameter name=relpath value=./../../ /map:transform-- map:serialize type=xml/ /map:match - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] --
Re: WritableSource output Cocoon 2.0.4
I have implemented a basic Email WritableSource. Is there a way for me to add information to the outputted page? Do you mean that, once the source has been written to, you want to present something back to the browser? If so, you just do an XSLT transformation on the output of your SourceWritingTransformer stage, to return HTML for the user. Have I understood you correctly? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WritableSource output Cocoon 2.0.4
Not exacly, That is fine, what I would like is to be able to change the result I get from the SourceWritingTransformer. For exemple, if the email cannot be sent because of a bad address, I would like to be able to insert, in the resulting XML, my own error message...(something that I can later pass thru XSLT and tell the user the address was bad instead of just a message saying the source got an error Failed to cancel) The error messages seem to be hard coded in the SourceWritingTransformer and I was wondering if there is another way I am not aware of to change this. Eric On Lundi, mars 17, 2003, at 15:22 America/Montreal, Upayavira wrote: I have implemented a basic Email WritableSource. Is there a way for me to add information to the outputted page? Do you mean that, once the source has been written to, you want to present something back to the browser? If so, you just do an XSLT transformation on the output of your SourceWritingTransformer stage, to return HTML for the user. Have I understood you correctly? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Graphics in XSL:FO?
I am trying to get cocoon to render an instance to PDF which includes a graphic reference. I have used the fo:external-graphic src=file:///c:/stuff/foo.jpg/ tag and have my cocoon running in say c:\tomcat\webapps\cocoon. If I run the FO output through Fop on the command line I see my graphic; if I access it through cocoon URL I get a blank screen result and no error messages. Any ideas!? Thanks in advance! Best, -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing parameters from xsp to xsp
Hi, I need to pass request parameters from one XSP to another This is my sitemap map:match pattern=db/*/*.xsp map:generate src=db/{1}/{2}.xsp type=xsp/ map:transform src=xsl/db.generatexsp.xsl/ map:serialize type=xml/ /map:match map:match pattern=db/*/*.html map:generate src=http://web/implements/db/{1}/{2}.xsp/ map:serialize type=xml/ /map:match As you can see, I call the XSP from my call to the HTML. I need one XSP as a generator, because it must execute an ESQL query. But, the XSP called in that match (html match) calls another XSP that uses the request parameters. However, they are not passed in that call. I cannot use map:parameter name=use-request-parameters since this is for a transformer. I need the same kind of thing, but for a generator. Anyone with an idea ?? Some code: This is my XSP that is called: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true xml query select fnSiteRegisteredUserInsert ('xsp-request:get-parameter name=email/', 'xsp-request:get-parameter name=password/') /query results result value0/value messageYou have been registered/message /result /results errors error valueERROR: Cannot insert a duplicate key into unique index tblsiteregistereduser_login_key/value messageYou already exist/message /error /errors /xml /xsp:page As you can see, that needs the parameters. This is the XSL for transformation to a valid XSP ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; xsl:template match=/xml xsp:page language=java create-session=true xml esql:connection esql:poolimplements/esql:pool esql:execute-query esql:query xsl:value-of select=query/ /esql:query esql:results esql:row-results result esql:get-columns/ /result /esql:row-results /esql:results esql:error-results erroresql:get-message//error /esql:error-results /esql:execute-query /esql:connection /xml /xsp:page /xsl:template /xsl:stylesheet -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon.war file not getting generated for Cocoon-2.1build...??
hi all, I recently downloaded the Cocoon-2.1 using the CVS Head tag from the code repository. After running build -Dinclude.webapp.libs=yes webapp...i also got a Build successfull message.But when i try to look for cococoon.war file in the /build/cocoon-2.1-dev directory thats getting created at the the end of build..i cannot find it.Instaed of that i am just seeing these jar files there: cocoon.jar + cocoon-deprecated.jar +cocoon-scratchpad.jar. My system setup is: Win2000 Advanced Server JDK1.4 Any help would be appreciated. thanks, Gautam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon.war file not getting generated for Cocoon-2.1 build...??
Gautam, The build proceedure has been changed fairly recently. It's briefly documented in the INSTALL document that is located in the root directory of the CVS checkout. To build the war, type build war from the command line. All options (including webapp libs, scratchpad libs, samples, documentation) are controlled by build.properties and blocks.properties files. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating an aggregation from a list of files
2) Transform your manifest, create XInclude statements and run through the XInclude transformer. 3) Transform your manifest, create CInclude statements and run through the CInclude transformer. CInclude allows you to call Cocoon pipelines so it is very powerful. I would recommend it. http://xml.apache.org/cocoon/userdocs/transformers/cinclude- transformer.html NB XInclude also allows you to call cocoon:// protocol. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Creating an aggregation from a list of files
Hi David Note that you can use the Zip Archive Serializer to generate the entire IMS package - you don't need to generate static files and zip them in some later stage; it can all be done in Cocoon. http://xml.apache.org/cocoon/userdocs/serializers/ziparchive-serializer.html You can use the jar: protocol to read the contents of such a file, too, if necessary. Cheers Con From the little I know of Java, I think IMSCP is quite like a .jar file - a bunch of files with a manifest saying what's what, all rolled up in a zip. Anyway, what I want to do is use Cocoon during development for live transformations of our XML source files to HTML, prior to converting them all to static HTML ready to be zipped up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQLTransformer
I'm using the SQLTransformer to insert somewhat large data sets into an Oracle database. I generate XML from a spreadsheet input. Each row gets its own execute-queryqueryblah, blah.../query/execute-query block. I am hitting the database over an SSH port-mapped link, so it is kind of slow. Sometimes my browser gets impatient and give up before receiving the entire XML output of the SQLTransformer. In this case, I usually see the log showing continued inserts into the database. Some times, I stop seeing SQLTransformer output, but still see my own transformer continuing to generate rows from the spreadsheet. So, it seems like the SQLTransformer gets wedged! I've seen this after getting through 300+ rows. This last time, it was at 388, then nothing after that. Anyone else see anything like this? I data sets up to around 12,000 rows that I need to insert, so. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon.war file not being created for Cocoon-2.1 dev
hi there, it worked!!!and yup these is a better way to do it..much easier than typing evrything next to build in dos prompt in case of windows user like me!!I missed the war option because i don't think it being mentioned anywhere.Even in the wiki where i looked for helped i did find a link there: http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1DevSetupWin2000 ...which mentions the old way of building the 2.1-dev code..which was what i was following..for these past 1 whole day:( you need to add your comments to it..it helped a lot. and most of all ,thankQ very much...for your **2 cents**;) regards, Gautam [EMAIL PROTECTED] 03/16/03 01:15PM Gautam, The build system has been changed recently. To get the war file, run the following command: build war The build is now set up with blocks, so you can include / exclude functionality a lot more easily. This also makes it easier to build cocoon without the samples or documentation. The full story is contained in the INSTALL file. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Press Release
karthikeyan.balasubramanian wrote: Hi All, I want to develop a press release using Cocoon. I have setup Cocoon in My system no problems. Are there already pre-existing News or Press Release Program running on cocoon which I can make use of. I don't want to re-invent the wheel :). Let me know your thoughts. You could use Lenya, which is a CMS based on Cocoon. You may want to check it out at http://www.wyona.org/download/downloading_and_installing.html but it's a bit shaky at the moment, because we simplified the directory structure and renamed certain files, because the project might be moving to ASF as a Cocoon subproject. Michael Have a great day. Karthikeyan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WritableSource output Cocoon 2.0.4
Well, right now the way I have it setup is pretty simple, I have an xsp page that generates an email message(I made up some simili-MIME xml tags) then this goes thru an XSL file that transforms the output into a mime complient mail message, this is the input my MailSource receives, it implements a OutputStream and what I do is simply send the message when the close() method of the OutputStream is called, here is the source: The sourceWritingTransformer in 2.1 is quite different to the one in 2.0.4. I don't know whether it is 'back-compatible', or whether you'd have to upgrade your app to 2.1. You could at least give it a go. From looking at the code, I see lots of message=some kind of text + pe, where pe is a processingException, which means that your exception text will make it into the ougoing SAX stream, which is what you want. Alternatively, hack the 2.0.4 SourceWritingTransformer to do what you want. Hope that doesn't cause too many headaches! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sql transformer question; *not* esql... (was RE: ???ESQL update table???)
i replied to the wrong topic. sorry... what i meant to ask was: is there a place-holder mechanism available using the sql transformer? --chris -Original Message- From: Delis, Christopher E. To: '[EMAIL PROTECTED]' Sent: 3/17/03 9:48 AM Subject: RE: ???ESQL update table??? on a slightly different note, is there place-holder functionality in esql stylesheet language? e.g., insert into atable (field1, field2) values (?, ?) select * from atable where field1 = ? limit ? ... TIA, chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: ???ESQL update table??? Hi, This is a part of a query. My problem is that when I make a SELECT right after an INSERT I don't get the last updated query : --- esql:execute-query esql:query INSERT INTO Actions (at_name, at_order) VALUES ('esql:get-string column=at_name ancestor=1/', xsp:exprnouvOrder/xsp:expr) /esql:query esql:update-results/ /esql:execute-query esql:execute-query esql:query SELECT TOP xsp:exprmyTopCnt/xsp:expr * FROM Actions WHERE at_order = xsp:exprmyOrderID/xsp:expr ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvActionName = esql:get-string column=at_name/; /xsp:logic /esql:row-results /esql:results /esql:execute-query esql:execute-query esql:query SELECT TOP 1 * FROM Actions WHERE at_name = 'xsp:exprnouvActionName/xsp:expr' ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvAction = esql:get-int column=at_order/; /xsp:logic /esql:row-results /esql:results /esql:execute-query --- What I mean is that in the last execute-query the value esql:get-int column=at_order/ returns a value, but in my SQL Profiler I get a query witch returns another value (the right) I think that it is due to the refreshing from the insert, because the insert value is queried! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WritableSource output Cocoon 2.0.4
I think I will download the source to 2.1 and see if I can integrate it. Thanks for the help! The sourceWritingTransformer in 2.1 is quite different to the one in 2.0.4. I don't know whether it is 'back-compatible', or whether you'd have to upgrade your app to 2.1. You could at least give it a go. From looking at the code, I see lots of message=some kind of text + pe, where pe is a processingException, which means that your exception text will make it into the ougoing SAX stream, which is what you want. Alternatively, hack the 2.0.4 SourceWritingTransformer to do what you want. Hope that doesn't cause too many headaches! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cant get an exception
Hi, I have built my own generator, using the tutorials. I can get it to work in a test harness and it produces a well-formed set of SAX events. However once inside cocoon, I get nothing, just an empty HTML page. I have recreated the cocoon libraries environment on the command line and it works. A simple helloworld generator works, so I am deploying OK, nothing in the error logs. Apart from attatching a debugger to the VM, I am at a loss as where to go from here. If you have a strategy for this, please let me know. tia, Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xerces version in j2sdk_1.4.1
On Mon, 17 Mar 2003 10:07:51 -0800 Charles Yates [EMAIL PROTECTED] wrote: Yury Mikhienko wrote: Hi all! Does anyone know the xerces version in j2sdk_1.4.1 ? j2sdk_1.4.1 does not use xerces. And also: can I set another xerces for using (if I use java1.4)? http://java.sun.com/xml/jaxp/faq.html Good point! Thank you! -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sql transformer question; *not* esql... (was RE: ???ESQL update table???)
Christopher, IIUC, you need substitution: go to http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html and look for the Substitution topic Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Delis, Christopher E. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 1:53 AM To: Delis, Christopher E.; ''[EMAIL PROTECTED]' ' Subject: sql transformer question; *not* esql... (was RE: ???ESQL update table???) i replied to the wrong topic. sorry... what i meant to ask was: is there a place-holder mechanism available using the sql transformer? --chris -Original Message- From: Delis, Christopher E. To: '[EMAIL PROTECTED]' Sent: 3/17/03 9:48 AM Subject: RE: ???ESQL update table??? on a slightly different note, is there place-holder functionality in esql stylesheet language? e.g., insert into atable (field1, field2) values (?, ?) select * from atable where field1 = ? limit ? ... TIA, chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: ???ESQL update table??? Hi, This is a part of a query. My problem is that when I make a SELECT right after an INSERT I don't get the last updated query : --- esql:execute-query esql:query INSERT INTO Actions (at_name, at_order) VALUES ('esql:get-string column=at_name ancestor=1/', xsp:exprnouvOrder/xsp:expr) /esql:query esql:update-results/ /esql:execute-query esql:execute-query esql:query SELECT TOP xsp:exprmyTopCnt/xsp:expr * FROM Actions WHERE at_order = xsp:exprmyOrderID/xsp:expr ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvActionName = esql:get-string column=at_name/; /xsp:logic /esql:row-results /esql:results /esql:execute-query esql:execute-query esql:query SELECT TOP 1 * FROM Actions WHERE at_name = 'xsp:exprnouvActionName/xsp:expr' ORDER BY at_id DESC /esql:query esql:results esql:row-results xsp:logic nouvAction = esql:get-int column=at_order/; /xsp:logic /esql:row-results /esql:results /esql:execute-query --- What I mean is that in the last execute-query the value esql:get-int column=at_order/ returns a value, but in my SQL Profiler I get a query witch returns another value (the right) I think that it is due to the refreshing from the insert, because the insert value is queried! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCEMENT] Fins 0.1.0 released (aka ChartTransformer)
Folks, we are pleased to introduce you the FINS Project (aka ChartTransformer). The aim of this project is to equip the Cocoon community with a set of sitemap components able to generate professional charts in different formats (SVG, PNG, JPEG) using the JFreeChart library. The long-term goal is the implementation of all the chart types contained in that library. The project home page, kindly hosted by CocoonDev, can be found at: http://www.cocoondev.org/projects/fins.html The first release is the 0.1.0, which adds a number of significant improvement over ChartTransformer: 1) New chart types: time series, XY 2) Improved performance: you can now use a serializer to gain 5x-10x performance improvements for your raster charts 3) Some cosmetics: background images 4) Logarithmic Y axis and moving averages on time series 5) More samples On the con side, the XML schema for input documents has changed... we're sorry, but this move was necessary to accomodate those new chart types. Enjoy ! The Fins team. P.S. On a personal note, let me remember you that, on my 30 Jan 2003 message (to cocoon-dev), I promised to do some things... here's their status: 1) Bring the JFreeChartTransformer (aka ChartTransformer) under the aegis of CocoonDev. DONE. 2) Start collaborating with the Wings project on a common XML schema for charts, hence letting the user choose which transformer suits him/her best NOT DONE: unfortunately me and the Wings team weren't able, so far, to converge on a common schema. 3) Setup a new Cocoon-GIS sub-project in CocoonDev DONE... though it is almost empty: me and David Crossley will work on it during the next few weeks. 4) Donate, to the prospective Cocoon-GIS project (see 3), a transformer to connect Cocoon with ArcIMS, a proprietary web-mapping package NOT DONE YET: see point 3 I plan to complete the deliver of points 3 and 4 in a few weeks... hopefully :| - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]