JXTemplate question

2012-11-16 Thread mika


Can you help me out with this.

This works:
input type=text value=#{$inneritem}/input

This doesn't
textarea#{$inneritem}/textarea

Or it does actually work, but the result in a) is xxx and in b) 
tagnamexxx/tagname


What I am doing this template is to create an html page out of xml 
derived from CForms binding. Guess this would have been easier with 
XSL..
So the idea is to initialize form controls with values from XML 
elements, not with the whole XML elements.


- mika -

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: JXTemplate question

2012-11-16 Thread Robby Pelssers
What is the actual value of inneritem?  A tag? And yes... using XSLT this would 
have been a breeze ;-)

But maybe you use the wrong xpath expression?  I'm not sure what the binding 
returns. 

Suppose your current xpath looks like

/root/tagname

Give following a try
/root/tagname/text()
/root/tagname/node()

Robby




-Original Message-
From: m...@digikartta.net [mailto:m...@digikartta.net] 
Sent: Friday, November 16, 2012 2:33 PM
To: users@cocoon.apache.org
Subject: JXTemplate question


 Can you help me out with this.

 This works:
 input type=text value=#{$inneritem}/input

 This doesn't
 textarea#{$inneritem}/textarea

 Or it does actually work, but the result in a) is xxx and in b)  
tagnamexxx/tagname

 What I am doing this template is to create an html page out of xml  derived 
from CForms binding. Guess this would have been easier with  XSL..
 So the idea is to initialize form controls with values from XML  elements, not 
with the whole XML elements.

 - mika -

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org




Re: JXTemplate question

2012-11-16 Thread Francesco Chicchiriccò
On 16/11/2012 14:32, m...@digikartta.net wrote:

 Can you help me out with this.

 This works:
 input type=text value=#{$inneritem}/input

 This doesn't
 textarea#{$inneritem}/textarea

 Or it does actually work, but the result in a) is xxx and in b)
 tagnamexxx/tagname

 What I am doing this template is to create an html page out of xml
 derived from CForms binding. Guess this would have been easier with XSL..
 So the idea is to initialize form controls with values from XML
 elements, not with the whole XML elements.

Hi,
I am not fresh with JX and CForms since long time, so I can't help you
directly; anyway, I've found this old thread [1] that might be useful in
your case (especially the latest reply).

I'd suggest to search at http://cocoon.markmail.org/ : it seems that
your issue used to be a common pattern.

Regards.

[1] http://markmail.org/message/ixibbm2zu7zn7fgf

-- 
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/



RE: JXTemplate question

2012-11-16 Thread mika


Yes!
This one works.

#{$inneritem/text()}

Thanks Robby!
- mika -


On Fri, 16 Nov 2012 13:48:27 +, Robby Pelssers 
robby.pelss...@nxp.com wrote:

What is the actual value of inneritem?  A tag? And yes... using XSLT
this would have been a breeze ;-)

But maybe you use the wrong xpath expression?  I'm not sure what the
binding returns.

Suppose your current xpath looks like

/root/tagname

Give following a try
/root/tagname/text()
/root/tagname/node()

Robby




-Original Message-
From: m...@digikartta.net [mailto:m...@digikartta.net]
Sent: Friday, November 16, 2012 2:33 PM
To: users@cocoon.apache.org
Subject: JXTemplate question


 Can you help me out with this.

 This works:
 input type=text value=#{$inneritem}/input

 This doesn't
 textarea#{$inneritem}/textarea

 Or it does actually work, but the result in a) is xxx and in b)
tagnamexxx/tagname

 What I am doing this template is to create an html page out of xml
derived from CForms binding. Guess this would have been easier with
XSL..
 So the idea is to initialize form controls with values from XML
elements, not with the whole XML elements.

 - mika -

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



question regarding the Cocoon 3 API

2011-07-07 Thread Robby Pelssers
Hi,

Are my following assumptions right?


-  setConfiguration is typically used when using sitemap

-  but for setup(params) method the API states that this is the shared 
map for all components... so it should not be called directly

but it gets indirectly called when executing pipeline.setup(outputstream, 
params)?



If it was not intended this way, then 
https://issues.apache.org/jira/browse/COCOON3-68 applies.



-  But I still can see the need that different components need to be 
able to be  setup with different maps of parameters. Suppose both components 
need a id parameter but for
the generator this needs to be value 'x' and for e.g. the transformer value 
'y'. Then using a shared map will not work.


Kind regards,
Robby






public interface PipelineComponent {

/**
 * This method is called after pipeline run - regardless if the run was
 * successful or an exception was thrown.
 */
void finish();

/**
 * Pass component specific configuration parameters to the pipeline
 * component in a generic way. This is useful in environments that
 * automatically assemble pipelines with their components and can't use the
 * components constructors or setters.
 *
 * @param configuration The {@link Map} of configuration parameters.
 */
void setConfiguration(MapString, ? extends Object configuration);

/**
 * The shared object map for this pipeline run.
 *
 * @param parameters A {@link Map} of parameters that are available to all
 *{@link PipelineComponent}s. This is a modifiable map that can
 *be changed by this pipeline component.
 */
void setup(MapString, Object parameters);
}


Re: Cocoon 2.2 block+sitemap question

2010-11-03 Thread Fawzib Rojas
I have a webapp (war) that we use at our company it has a few blocks 
(let say block-a to block-d), I want to install that war at our clients 
but they should not have block-b. The simplest option would be just 
remove that block and serve a simple document if its not found. The 
other option is have 2 projects one for us one for clients which seems 
extra work since the only difference is:


a) block-b not included
b) change a matcher in block-a sitemap from this:

map:pipeline
  map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
  /map:match
/map:pipeline

to this:

map:pipeline

  map:match pattern=document
map:generate type=file src=block-a-resources/document.xml /
map:serialize type=xml/
  /map:match
/map:pipeline


On 11/2/2010 11:17 AM, Robby Pelssers wrote:

I have a more urgent question to you...

why would you want to sometimes not include block-b???  I think your design 
should be reconsidered drastically because this makes no sense to me... so i'll 
await your reponse for a good reason ;-)

Robby


-Oorspronkelijk bericht-
Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com]
Verzonden: di 2-11-2010 14:43
Aan: users@cocoon.apache.org
Onderwerp: Cocoon 2.2 block+sitemap question

I have 2 blocks (block-a and block-b) and I want to serve an xml from
block-b in block-a so i did the following:

block-a/block-servlet-service.xml:
servlet:context mount-path=/block-a
context-path=blockcontext:/block-a/
servlet:connections
entry key=block-b value-ref=com.my-company.block-b.service/
/servlet:connections
/servlet:context

block-a/sitemap.xml:
map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
/map:pipeline

That way i can read the my document using /block-a/document.  In certain
instances block-b wont be included in the war so I want the
/block-a/document to go to a default document in block-a so I thought of
adding an error handler, something like this:

map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
map:handle-errors
map:select type=exception
map:when test=error
map:generate type=file src=block-a-resources/document.xml /
map:serialize type=xml/
/map:when
/map:select
/map:handle-errors
/map:pipeline

Since the connection in the block-a/block-servlet-service.xml cannot be
made the war is not loaded so this method wont work. Is there another
way to do this?

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org




Re: Cocoon 2.2 block+sitemap question

2010-11-03 Thread Andre Juffer
I have to admit that your design is somewhat odd. Apparently you have a 
particular block in your webapp that is only to be used by your company 
but not by your clients.


There is no obvious solution. You could create a Makefile for running 
make or a shell script on *nix boxes. It would copy the relevant blocks 
of your webapp into a separate folder, then automatically replaces the 
relevant portions of your block a sitemap into something else that does 
not rely on block b, and, finally, run maven to create the war for your 
clients. You can do this each time you want to deploy a stripped webapp 
to your clients. This would be a fully automated solution.


If you deploy your webapp to your own server that is also accessible by 
your clients, you could consider to make a small modification in the 
block-a sitemap. Before serving the document, first call a flowscript 
function that decides whether or not block b in fact should called. If 
not, then continue with a pipeline in block a that servers the document 
from block-a-resources/document.xml, otherwise continue with a pipeline 
that calls block b. The flowscript could check whether or not the 
request is from within the company or from outside (e.g. by IP addresses).


Best regards,
Andre


On 11/03/2010 02:29 PM, Fawzib Rojas wrote:

I have a webapp (war) that we use at our company it has a few blocks
(let say block-a to block-d), I want to install that war at our clients
but they should not have block-b. The simplest option would be just
remove that block and serve a simple document if its not found. The
other option is have 2 projects one for us one for clients which seems
extra work since the only difference is:

a) block-b not included
b) change a matcher in block-a sitemap from this:

map:pipeline
   map:match pattern=document
 map:generate src=servlet:block-b:/document /
 map:serialize type=xml /
   /map:match
/map:pipeline

to this:

map:pipeline

   map:match pattern=document
 map:generate type=file src=block-a-resources/document.xml /
 map:serialize type=xml/
   /map:match
/map:pipeline


On 11/2/2010 11:17 AM, Robby Pelssers wrote:

I have a more urgent question to you...

why would you want to sometimes not include block-b???  I think your design 
should be reconsidered drastically because this makes no sense to me... so i'll 
await your reponse for a good reason ;-)

Robby


-Oorspronkelijk bericht-
Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com]
Verzonden: di 2-11-2010 14:43
Aan:users@cocoon.apache.org
Onderwerp: Cocoon 2.2 block+sitemap question

I have 2 blocks (block-a and block-b) and I want to serve an xml from
block-b in block-a so i did the following:

block-a/block-servlet-service.xml:
servlet:context mount-path=/block-a
context-path=blockcontext:/block-a/
servlet:connections
entry key=block-b value-ref=com.my-company.block-b.service/
/servlet:connections
/servlet:context

block-a/sitemap.xml:
map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
/map:pipeline

That way i can read the my document using /block-a/document.  In certain
instances block-b wont be included in the war so I want the
/block-a/document to go to a default document in block-a so I thought of
adding an error handler, something like this:

map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
map:handle-errors
map:select type=exception
map:when test=error
map:generate type=file src=block-a-resources/document.xml /
map:serialize type=xml/
/map:when
/map:select
/map:handle-errors
/map:pipeline

Since the connection in the block-a/block-servlet-service.xml cannot be
made the war is not loaded so this method wont work. Is there another
way to do this?

-
To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org
For additional commands, e-mail:users-h...@cocoon.apache.org




-
To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org
For additional commands, e-mail:users-h...@cocoon.apache.org





--
Andre H. Juffer  | Phone: +358-8-553 1161
Biocenter Oulu and   | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat   | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: Cocoon 2.2 block+sitemap question

2010-11-03 Thread Robby Pelssers
I think the main question is if it (block-b) is protected software which cannot 
be distributed to your client.  If that is no issue, you could for instance try 
out if you can replace the value of the @src from

servlet:block-b:/document
to 
${document-pattern} 

and inject this as a property into the sitemap using 
cocoon-spring-configurator.  The property then would get a different value 
depending on the environment profile which is loaded at initialization of the 
spring context.

If my proposal is a suitable approach feel free to ask for more information 
if you get stuck.

Kind regards,
Robby Pelssers



-Oorspronkelijk bericht-
Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com]
Verzonden: wo 3-11-2010 13:29
Aan: users@cocoon.apache.org
Onderwerp: Re: Cocoon 2.2 block+sitemap question
 
I have a webapp (war) that we use at our company it has a few blocks 
(let say block-a to block-d), I want to install that war at our clients 
but they should not have block-b. The simplest option would be just 
remove that block and serve a simple document if its not found. The 
other option is have 2 projects one for us one for clients which seems 
extra work since the only difference is:

a) block-b not included
b) change a matcher in block-a sitemap from this:

map:pipeline
   map:match pattern=document
 map:generate src=servlet:block-b:/document /
 map:serialize type=xml /
   /map:match
/map:pipeline

to this:

map:pipeline

   map:match pattern=document
 map:generate type=file src=block-a-resources/document.xml /
 map:serialize type=xml/
   /map:match
/map:pipeline


On 11/2/2010 11:17 AM, Robby Pelssers 
begin_of_the_skype_highlighting end_of_the_skype_highlighting wrote:
 I have a more urgent question to you...

 why would you want to sometimes not include block-b???  I think your design 
 should be reconsidered drastically because this makes no sense to me... so 
 i'll await your reponse for a good reason ;-)

 Robby


 -Oorspronkelijk bericht-
 Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com]
 Verzonden: di 2-11-2010 14:43
 Aan: users@cocoon.apache.org
 Onderwerp: Cocoon 2.2 block+sitemap question

 I have 2 blocks (block-a and block-b) and I want to serve an xml from
 block-b in block-a so i did the following:

 block-a/block-servlet-service.xml:
 servlet:context mount-path=/block-a
 context-path=blockcontext:/block-a/
 servlet:connections
 entry key=block-b value-ref=com.my-company.block-b.service/
 /servlet:connections
 /servlet:context

 block-a/sitemap.xml:
 map:pipeline
 map:match pattern=document
 map:generate src=servlet:block-b:/document /
 map:serialize type=xml /
 /map:match
 /map:pipeline

 That way i can read the my document using /block-a/document.  In certain
 instances block-b wont be included in the war so I want the
 /block-a/document to go to a default document in block-a so I thought of
 adding an error handler, something like this:

 map:pipeline
 map:match pattern=document
 map:generate src=servlet:block-b:/document /
 map:serialize type=xml /
 /map:match
 map:handle-errors
 map:select type=exception
 map:when test=error
 map:generate type=file src=block-a-resources/document.xml /
 map:serialize type=xml/
 /map:when
 /map:select
 /map:handle-errors
 /map:pipeline

 Since the connection in the block-a/block-servlet-service.xml cannot be
 made the war is not loaded so this method wont work. Is there another
 way to do this?

 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org


winmail.dat
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Cocoon 2.2 block+sitemap question

2010-11-02 Thread Fawzib Rojas
I have 2 blocks (block-a and block-b) and I want to serve an xml from 
block-b in block-a so i did the following:


block-a/block-servlet-service.xml:
servlet:context mount-path=/block-a 
context-path=blockcontext:/block-a/

servlet:connections
entry key=block-b value-ref=com.my-company.block-b.service/
/servlet:connections
/servlet:context

block-a/sitemap.xml:
map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
/map:pipeline

That way i can read the my document using /block-a/document.  In certain 
instances block-b wont be included in the war so I want the 
/block-a/document to go to a default document in block-a so I thought of 
adding an error handler, something like this:


map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
map:handle-errors
map:select type=exception
map:when test=error
map:generate type=file src=block-a-resources/document.xml /
map:serialize type=xml/
/map:when
/map:select
/map:handle-errors
/map:pipeline

Since the connection in the block-a/block-servlet-service.xml cannot be 
made the war is not loaded so this method wont work. Is there another 
way to do this?


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: Cocoon 2.2 block+sitemap question

2010-11-02 Thread Robby Pelssers
I have a more urgent question to you...

why would you want to sometimes not include block-b???  I think your design 
should be reconsidered drastically because this makes no sense to me... so i'll 
await your reponse for a good reason ;-)

Robby


-Oorspronkelijk bericht-
Van: Fawzib Rojas [mailto:f_ro...@spectron-msim.com]
Verzonden: di 2-11-2010 14:43
Aan: users@cocoon.apache.org
Onderwerp: Cocoon 2.2 block+sitemap question
 
I have 2 blocks (block-a and block-b) and I want to serve an xml from 
block-b in block-a so i did the following:

block-a/block-servlet-service.xml:
servlet:context mount-path=/block-a 
context-path=blockcontext:/block-a/
servlet:connections
entry key=block-b value-ref=com.my-company.block-b.service/
/servlet:connections
/servlet:context

block-a/sitemap.xml:
map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
/map:pipeline

That way i can read the my document using /block-a/document.  In certain 
instances block-b wont be included in the war so I want the 
/block-a/document to go to a default document in block-a so I thought of 
adding an error handler, something like this:

map:pipeline
map:match pattern=document
map:generate src=servlet:block-b:/document /
map:serialize type=xml /
/map:match
map:handle-errors
map:select type=exception
map:when test=error
map:generate type=file src=block-a-resources/document.xml /
map:serialize type=xml/
/map:when
/map:select
/map:handle-errors
/map:pipeline

Since the connection in the block-a/block-servlet-service.xml cannot be 
made the war is not loaded so this method wont work. Is there another 
way to do this?

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


winmail.dat
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Re: Quick question about Matcher flow

2010-09-18 Thread Luca Morandini

On 09/17/2010 06:55 PM, Sands Alden Fish wrote:

Hi all, I'm trying to make sure I understand what happens in a certain
pipeline flow using Matchers.

If you've got an embedded matcher, with further pipeline elements after
it, and the inner matcher doesn't match, does the pipeline default to
the elements below it?


Default it's not the word I would use, let's just say that the execution flow will 
proceed to the next element, regardless if the previous is matched or not... 
selectors are a different beast, but matchers work like this.




And more to the point, if the matcher matches, do those additional
elements after it get included in pipeline processing?


Yes.



Perhaps the
example will illuminate best:

map:match pattern=disseminate-package/*/*/**
map:match type=request-parameter pattern=package
map:read type=DisseminationPackageReader
map:parameter name=handle value={../1}/{../2}/
map:parameter name=name value={../3}/
map:parameter name=package value={1}/
/map:read
/map:match
map:read type=DisseminationPackageReader
map:parameter name=handle value={1}/{2}/
map:parameter name=name value={3}/
/map:read
/map:match

It appears to me that the DisseminationPackageReader will execute twice
in the situation where the package parameter is present. Is this true?


That is what I would expect.



Shouldn't this be using a request-parameter Selector or some such
mechanism to decide whether to use the first or the second pipeline?


Yes.

Regards,

Luca Morandini
[http://www.lucamorandini.it]


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Quick question about Matcher flow

2010-09-17 Thread Sands Alden Fish
Hi all, I'm trying to make sure I understand what happens in a certain pipeline 
flow using Matchers.

If you've got an embedded matcher, with further pipeline elements after it, and 
the inner matcher doesn't match, does the pipeline default to the elements 
below it?

And more to the point, if the matcher matches, do those additional elements 
after it get included in pipeline processing?  Perhaps the example will 
illuminate best:

 map:match pattern=disseminate-package/*/*/**
map:match type=request-parameter pattern=package
   map:read type=DisseminationPackageReader
  map:parameter name=handle value={../1}/{../2}/
  map:parameter name=name value={../3}/
  map:parameter name=package value={1}/
   /map:read
/map:match
map:read type=DisseminationPackageReader
   map:parameter name=handle value={1}/{2}/
   map:parameter name=name value={3}/
/map:read
 /map:match

It appears to me that the DisseminationPackageReader will execute twice in the 
situation where the package parameter is present.  Is this true?

Shouldn't this be using a request-parameter Selector or some such mechanism to 
decide whether to use the first or the second pipeline?


--
sands fish
Software Engineer
MIT Libraries
Technology Research  Development
sa...@mit.edumailto:sa...@mit.edu
E25-131






Question about sitemap context (ProcessInfoProvider ??)

2010-04-13 Thread Robby Pelssers
Hi all,

I was wondering if it was possible to put beans persistent in the context which 
is available to the sitemap.  I'm not sure if the ProcessInfoProvider is the 
bean responsible for maintaining the context.

My use case is as follows:

I have one bean 'datasheetApplication' which knows all about the 
folderstructure of the filesystem containing the data (xml files).

What I basically want is to do something like:

Sitemap.xmap:

  !-- 
   {1}: state
   --
  map:match pattern=generatePackageDatasheet-step-final/*
map:generate src=cocoon:/generatePackageDatasheet-step-1/{1}/
map:transform src=xslt/batch/topics/copyImages.xslt type=saxon
  map:parameter name=path 
value={datasheetApplication.getPackageTopicsDirPath()}/
/map:transform
map:serialize type=xml/
  /map:match


 

ApplicationContext.xml:

  bean id=datasheetApplication 
class=com.nxp.spider2.application.DatasheetApplicationImpl
property name=spider ref=spiderBean/
property name=templatesURI value=${datasheet.templates_uri}/
property name=legalInformationAutomotiveFileName 
value=${datasheet.legal_information_automotive}/
property name=legalInformationNonAutomotiveFileName   
value=${datasheet.legal_information_non-automotive}/   
property name=contactInformationFileName 
value=${datasheet.contact_information}/
property name=revisionHistoryFileName 
value=${datasheet.revision_history}/
property name=topicsDirName value=${datasheet.topicsDirName}/
property name=productsDirName value=${datasheet.productsDirName}/ 
property name=packagesDirName value=${datasheet.packagesDirName}/ 
  
  /bean

  bean id=processInfoProvider 
class=org.apache.cocoon.processing.impl.ProcessInfoProviderImpl/  


Is it possible to add the datasheetApplication bean to the sitemap context so I 
can do something like:

map:parameter name=path 
value={datasheetApplication.getPackageTopicsDirPath()}/


Kind regards,
Robby Pelssers




cocoon.load question

2010-03-22 Thread Robby Pelssers
Hi all,

I have a flowscript function where I need to load another script lazy because 
it get's generated on the fly...

But my first impression is that Cocoon tries to cache a script when it has been 
loaded the first time and even worse... I think cocoon already tries to preload 
scripts (when using cocoon.load) on startup which it can't for this use case 
since no request parameters are present.


var id = cocoon.request.id;
var state = cocoon.request.state;
var uri = 'product/topics/' + id + / + state;  // E.g. 
product/topics/PH3330L/released  - this pipeline should JSON on the fly


cocoon.load(uri);


Will this approach work or am I gonna run into big troubles?

Thx in advance,
Robby Pelssers


[C3] Maybe a stupid question, but...

2010-03-17 Thread Francesco Chicchiriccò

Hello gents,
I have a traditional (servlet / JSP / taglib / ...) web application  
in which I can get XHTML documents only as strings (they are stored as  
property values in a JCR repository). This means:


String (XHTML) - JSP (through custom taglib)

I would like to do some content rewriting of these XHTML documents  
before sending to the output JSP, so basically:


String (XHTML) - Cocoon pipeline, including one or more  
transformation and the HTML serializer - JSP



My web application is already managed via maven 2; how can I include  
cocoon 3? Is there any document / how to about this?


Besides this, what generator should best fit the role, in terms of  
performance, of parsing an XML document from a String? SAX or the  
brand new StAX?


Thanks in advance.
Cheers.


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Logging question cocoon 2.2 tomcat 6

2010-03-16 Thread Søren Krum
Hello!

i have a tomcat 6.0.20 and in it runs a application using cocoon. We did
an upgrade from 2.1 to 2.2, which hm, yes worked after a while ;-)

But there is something that confuses me: I find in the catalina.out
(tomcats logging configuration we did not touch at all) i find a nice
line (actually two...) for each resource recived from cocoon:

Here some line of example:

INFO: 'portal-login-service' Processed by Apache Cocoon in 712 milliseconds.
Mar 16, 2010 10:39:11 AM org.apache.cocoon.servlet.RequestProcessor service
INFO: 'xsl-portal-page-service' Processed by Apache Cocoon in 14
milliseconds.
Mar 16, 2010 10:39:11 AM org.apache.cocoon.servlet.RequestProcessor service
INFO: 'portal-login-service' Processed by Apache Cocoon in 16 milliseconds.
Mar 16, 2010 10:39:11 AM org.apache.cocoon.servlet.RequestProcessor service
INFO: '' Processed by Apache Cocoon in 1.699 seconds.
Mar 16, 2010 10:39:12 AM org.apache.cocoon.servlet.RequestProcessor service
INFO: 'res/images/favicon.ico' Processed by Apache Cocoon in 23
milliseconds.

I tried to change the log level in the tomcat conf/logging.properties by
specifying:

org.apache.cocoon.servlet.RequestProcessor.level = WARNING

but it looks like that line is barely ignored. Is there another place
where cocoon sets logging levels? For hibernate and some other (even
cocoon) packages it works as expected to set up their log level.

Some hints? Or experiences to shift the whole logging from tomcat to
log4j? Does that help to get a more predictable logging?


-- 
Med vennlig hilsen

Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Question regarding zip serializer (filename becomes xxxx.continue)

2010-01-13 Thread Jasha Joachimsthal
Hi Robby,



2009/12/15 Robby Pelssers robby.pelss...@ciber.com:
 Hi all,



 I’ve setup some Pipelines which transform some xml documents into DITA
 format.  So what I and up with is a map and several topic’s.



 The user should be able to render a html preview or download the DITA result
 fragments as zip-file.



 So in my flowscipt I check which submitbutton the user hits and dynamically
 determine the pipeline which needs to get invoked:

   var view =

     submitId.equals(viewXML)

     ? datasheetContainer

     : productId + .zip;



   //generate xml snippet which lists the selected topics and start the
 complete datasheet process from there

   cocoon.sendPage(

     view,

       {

         data: viewData2

       }

   );





 My relevant sitemap snippets:

   map:match pattern=datasheetContainer

     map:generate src=data/datasheet.jx type=jx label=step-1/

     map:transform type=cinclude label=step-2/

     map:transform src=xslt/includePackageAndProductXml.xslt
 label=step-3/

     map:transform type=cinclude label=step-4/

     map:transform src=xslt/addGroupId.xslt type=saxon
 label=step-5/

     map:transform src=xslt/createMapAndTopics.xslt type=saxon
 label=step-6/

     map:transform src=xslt/sortNonQuantitativeTables.xslt/

     map:transform type=cinclude label=step-7/

     map:transform src=xslt/replaceBoxDimensions.xslt type=saxon
 label=step-8/

     map:transform src=xslt/mergeParametricTableCells.xslt
 type=saxon label=step-9/

     map:transform src=xslt/cleanup.xslt type=saxon/

     map:transform src=xslt/escapeHtml.xslt type=saxon/

     map:serialize type=productxml/

   /map:match



   map:match pattern=*.zip

     map:generate src=cocoon://datasheetContainer/

     map:transform src=xslt/datasheet2zip.xslt type=saxon
 label=zip/

     map:serialize type=zip/

   /map:match



 The problem I am facing is that the download dialogue now pops up with

 U have chosen to download the file xxx.continue



 But what I wanted was PH3330L.zip for example.



 Anyone who knows if I can change this behaviour somehow?

Yes, use the set-header action
In map:components
  map:actions
map:action name=set-header logger=sitemap.action.set-header
src=org.apache.cocoon.acting.HttpHeaderAction/
  /map:actions

In the map:pipeline
  map:match pattern=*.zip
map:act type=set-header
  map:parameter name=Content-Disposition 
value=attachment;
filename={1}.zip/
/map:act

BTW you're doing 3 includes inside the datasheetContainer pipeline.
It's better to split that one up into 3 pipelines with 1 include each
(you'll notice when you measure the response times).

Regards

Jasha Joachimsthal

j.joachimst...@onehippo.com - ja...@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA
94952 +1 (707) 7734646

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: Question regarding zip serializer (filename becomes xxxx.continue)

2010-01-13 Thread Robby Pelssers
Hey Joachim,

Thx for the 2 tips I will definitely follow up on your advice. You probably 
also read the reply on this thread of another solution I found for setting the 
header:

var response = cocoon.response; 
response.setHeader(
Content-Disposition,
attachment; filename= + productId + .zip
);  

cocoon.sendPage(
gif/ + productId + .zip, 
{
data: viewData2
}
);  

But reading your mail I might lean toward your solution.

Cheers,
Robby


-Original Message-
From: Jasha Joachimsthal [mailto:j.joachimst...@onehippo.com] 
Sent: Wednesday, January 13, 2010 1:13 PM
To: users@cocoon.apache.org
Subject: Re: Question regarding zip serializer (filename becomes .continue)

Hi Robby,



2009/12/15 Robby Pelssers robby.pelss...@ciber.com:
 Hi all,



 I've setup some Pipelines which transform some xml documents into DITA
 format.  So what I and up with is a map and several topic's.



 The user should be able to render a html preview or download the DITA result
 fragments as zip-file.



 So in my flowscipt I check which submitbutton the user hits and dynamically
 determine the pipeline which needs to get invoked:

   var view =

     submitId.equals(viewXML)

     ? datasheetContainer

     : productId + .zip;



   //generate xml snippet which lists the selected topics and start the
 complete datasheet process from there

   cocoon.sendPage(

     view,

       {

         data: viewData2

       }

   );





 My relevant sitemap snippets:

   map:match pattern=datasheetContainer

     map:generate src=data/datasheet.jx type=jx label=step-1/

     map:transform type=cinclude label=step-2/

     map:transform src=xslt/includePackageAndProductXml.xslt
 label=step-3/

     map:transform type=cinclude label=step-4/

     map:transform src=xslt/addGroupId.xslt type=saxon
 label=step-5/

     map:transform src=xslt/createMapAndTopics.xslt type=saxon
 label=step-6/

     map:transform src=xslt/sortNonQuantitativeTables.xslt/

     map:transform type=cinclude label=step-7/

     map:transform src=xslt/replaceBoxDimensions.xslt type=saxon
 label=step-8/

     map:transform src=xslt/mergeParametricTableCells.xslt
 type=saxon label=step-9/

     map:transform src=xslt/cleanup.xslt type=saxon/

     map:transform src=xslt/escapeHtml.xslt type=saxon/

     map:serialize type=productxml/

   /map:match



   map:match pattern=*.zip

     map:generate src=cocoon://datasheetContainer/

     map:transform src=xslt/datasheet2zip.xslt type=saxon
 label=zip/

     map:serialize type=zip/

   /map:match



 The problem I am facing is that the download dialogue now pops up with

 U have chosen to download the file xxx.continue



 But what I wanted was PH3330L.zip for example.



 Anyone who knows if I can change this behaviour somehow?

Yes, use the set-header action
In map:components
  map:actions
map:action name=set-header logger=sitemap.action.set-header
src=org.apache.cocoon.acting.HttpHeaderAction/
  /map:actions

In the map:pipeline
  map:match pattern=*.zip
map:act type=set-header
  map:parameter name=Content-Disposition 
value=attachment;
filename={1}.zip/
/map:act

BTW you're doing 3 includes inside the datasheetContainer pipeline.
It's better to split that one up into 3 pipelines with 1 include each
(you'll notice when you measure the response times).

Regards

Jasha Joachimsthal

j.joachimst...@onehippo.com - ja...@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA
94952 +1 (707) 7734646

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Question regarding zip serializer (filename becomes xxxx.continue)

2010-01-13 Thread Jasha Joachimsthal
2010/1/13 Robby Pelssers robby.pelss...@ciber.com:
 Hey Joachim,

 Thx for the 2 tips I will definitely follow up on your advice. You 
 probably also read the reply on this thread of another solution I found for 
 setting the header:

                        var response = cocoon.response;
                        response.setHeader(
                            Content-Disposition,
                            attachment; filename= + productId + .zip
                        );

                        cocoon.sendPage(
                                        gif/ + productId + .zip,
                                    {
                                        data: viewData2
                                    }
                                );

 But reading your mail I might lean toward your solution.

I saw the other post later :-) Both do the same: set a response header
Content-Disposition.

Jasha

 Cheers,
 Robby


 -Original Message-
 From: Jasha Joachimsthal [mailto:j.joachimst...@onehippo.com]
 Sent: Wednesday, January 13, 2010 1:13 PM
 To: users@cocoon.apache.org
 Subject: Re: Question regarding zip serializer (filename becomes 
 .continue)

 Hi Robby,



 2009/12/15 Robby Pelssers robby.pelss...@ciber.com:
 Hi all,



 I've setup some Pipelines which transform some xml documents into DITA
 format.  So what I and up with is a map and several topic's.



 The user should be able to render a html preview or download the DITA result
 fragments as zip-file.



 So in my flowscipt I check which submitbutton the user hits and dynamically
 determine the pipeline which needs to get invoked:

   var view =

     submitId.equals(viewXML)

     ? datasheetContainer

     : productId + .zip;



   //generate xml snippet which lists the selected topics and start the
 complete datasheet process from there

   cocoon.sendPage(

     view,

       {

         data: viewData2

       }

   );





 My relevant sitemap snippets:

   map:match pattern=datasheetContainer

     map:generate src=data/datasheet.jx type=jx label=step-1/

     map:transform type=cinclude label=step-2/

     map:transform src=xslt/includePackageAndProductXml.xslt
 label=step-3/

     map:transform type=cinclude label=step-4/

     map:transform src=xslt/addGroupId.xslt type=saxon
 label=step-5/

     map:transform src=xslt/createMapAndTopics.xslt type=saxon
 label=step-6/

     map:transform src=xslt/sortNonQuantitativeTables.xslt/

     map:transform type=cinclude label=step-7/

     map:transform src=xslt/replaceBoxDimensions.xslt type=saxon
 label=step-8/

     map:transform src=xslt/mergeParametricTableCells.xslt
 type=saxon label=step-9/

     map:transform src=xslt/cleanup.xslt type=saxon/

     map:transform src=xslt/escapeHtml.xslt type=saxon/

     map:serialize type=productxml/

   /map:match



   map:match pattern=*.zip

     map:generate src=cocoon://datasheetContainer/

     map:transform src=xslt/datasheet2zip.xslt type=saxon
 label=zip/

     map:serialize type=zip/

   /map:match



 The problem I am facing is that the download dialogue now pops up with

 U have chosen to download the file xxx.continue



 But what I wanted was PH3330L.zip for example.



 Anyone who knows if I can change this behaviour somehow?

 Yes, use the set-header action
 In map:components
          map:actions
            map:action name=set-header logger=sitemap.action.set-header
 src=org.apache.cocoon.acting.HttpHeaderAction/
          /map:actions

 In the map:pipeline
                  map:match pattern=*.zip
                    map:act type=set-header
                      map:parameter name=Content-Disposition 
 value=attachment;
 filename={1}.zip/
                    /map:act

 BTW you're doing 3 includes inside the datasheetContainer pipeline.
 It's better to split that one up into 3 pipelines with 1 include each
 (you'll notice when you measure the response times).

 Regards

 Jasha Joachimsthal

 j.joachimst...@onehippo.com - ja...@apache.org

 www.onehippo.com
 Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
 San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA
 94952 +1 (707) 7734646

 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Question regarding zip serializer (filename becomes xxxx.continue)

2010-01-13 Thread Thomas Markus
Hi,

Am 13.01.2010 13:13, schrieb Jasha Joachimsthal:
 Yes, use the set-header action
 In map:components
 map:actions
   map:action name=set-header logger=sitemap.action.set-header
 src=org.apache.cocoon.acting.HttpHeaderAction/
 /map:actions

 In the map:pipeline
 map:match pattern=*.zip
   map:act type=set-header
 map:parameter name=Content-Disposition 
 value=attachment;
 filename={1}.zip/
   /map:act

   

and check correct quotes and encoding (if needed). see
http://tools.ietf.org/html/rfc2183
Especially IE has some disadvantages with incorrect filenames.


regards
Thomas

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Question regarding zip serializer (filename becomes xxxx.continue)

2009-12-15 Thread Robby Pelssers
Hi all,

 

I've setup some Pipelines which transform some xml documents into DITA
format.  So what I and up with is a map and several topic's.  

 

The user should be able to render a html preview or download the DITA
result fragments as zip-file.

 

So in my flowscipt I check which submitbutton the user hits and
dynamically determine the pipeline which needs to get invoked:

  var view = 

submitId.equals(viewXML) 

? datasheetContainer

: productId + .zip;

 

  //generate xml snippet which lists the selected topics and start
the complete datasheet process from there

  cocoon.sendPage(

view, 

  {

data: viewData2

  }

  );

 

 

My relevant sitemap snippets:

  map:match pattern=datasheetContainer

map:generate src=data/datasheet.jx type=jx label=step-1/


map:transform type=cinclude label=step-2/

map:transform src=xslt/includePackageAndProductXml.xslt
label=step-3/

map:transform type=cinclude label=step-4/  

map:transform src=xslt/addGroupId.xslt type=saxon
label=step-5/   

map:transform src=xslt/createMapAndTopics.xslt type=saxon
label=step-6/  

map:transform src=xslt/sortNonQuantitativeTables.xslt/  

map:transform type=cinclude label=step-7/

map:transform src=xslt/replaceBoxDimensions.xslt type=saxon
label=step-8/

map:transform src=xslt/mergeParametricTableCells.xslt
type=saxon label=step-9/

map:transform src=xslt/cleanup.xslt type=saxon/

map:transform src=xslt/escapeHtml.xslt type=saxon/ 

map:serialize type=productxml/  

  /map:match 

 

  map:match pattern=*.zip

map:generate src=cocoon://datasheetContainer/

map:transform src=xslt/datasheet2zip.xslt type=saxon
label=zip/

map:serialize type=zip/

  /map:match

 

The problem I am facing is that the download dialogue now pops up with 

U have chosen to download the file xxx.continue

 

But what I wanted was PH3330L.zip for example.

 

Anyone who knows if I can change this behaviour somehow?  

 

Kind regards,

Robby



RE: Question regarding zip serializer (filename becomes xxxx.continue) [SOLVED]

2009-12-15 Thread Robby Pelssers
Ok...  I actually had to solve a similar issue a few weeks ago. I think
I'm in a early stage of Alzheimer ;-(

 

So here is the solution:

 

  

  if (submitId.equals(viewXML)) {

//generate xml snippet which lists the selected topics and
start the complete datasheet process from there

cocoon.sendPage(

  datasheetContainer, 

{

  data: viewData2

}

);

  } else if (submitId.equals(downloadZIP)) {



//we have to change the filename of attachment

var response = cocoon.response;   

response.setHeader(

Content-Disposition,

attachment; filename= + productId + .zip

);  



cocoon.sendPage(

productId + .zip, 

  {

data: viewData2

  }

  );

  } 

 

Cheers,

Robby Pelssers

http://robbypelssers.blogspot.com/

 

 

 

From: Robby Pelssers [mailto:robby.pelss...@ciber.com] 
Sent: Tuesday, December 15, 2009 4:03 PM
To: users@cocoon.apache.org
Subject: Question regarding zip serializer (filename becomes
.continue)

 

Hi all,

 

I've setup some Pipelines which transform some xml documents into DITA
format.  So what I and up with is a map and several topic's.  

 

The user should be able to render a html preview or download the DITA
result fragments as zip-file.

 

So in my flowscipt I check which submitbutton the user hits and
dynamically determine the pipeline which needs to get invoked:

  var view = 

submitId.equals(viewXML) 

? datasheetContainer

: productId + .zip;

 

  //generate xml snippet which lists the selected topics and start
the complete datasheet process from there

  cocoon.sendPage(

view, 

  {

data: viewData2

  }

  );

 

 

My relevant sitemap snippets:

  map:match pattern=datasheetContainer

map:generate src=data/datasheet.jx type=jx label=step-1/


map:transform type=cinclude label=step-2/

map:transform src=xslt/includePackageAndProductXml.xslt
label=step-3/

map:transform type=cinclude label=step-4/  

map:transform src=xslt/addGroupId.xslt type=saxon
label=step-5/   

map:transform src=xslt/createMapAndTopics.xslt type=saxon
label=step-6/  

map:transform src=xslt/sortNonQuantitativeTables.xslt/  

map:transform type=cinclude label=step-7/

map:transform src=xslt/replaceBoxDimensions.xslt type=saxon
label=step-8/

map:transform src=xslt/mergeParametricTableCells.xslt
type=saxon label=step-9/

map:transform src=xslt/cleanup.xslt type=saxon/

map:transform src=xslt/escapeHtml.xslt type=saxon/ 

map:serialize type=productxml/  

  /map:match 

 

  map:match pattern=*.zip

map:generate src=cocoon://datasheetContainer/

map:transform src=xslt/datasheet2zip.xslt type=saxon
label=zip/

map:serialize type=zip/

  /map:match

 

The problem I am facing is that the download dialogue now pops up with 

U have chosen to download the file xxx.continue

 

But what I wanted was PH3330L.zip for example.

 

Anyone who knows if I can change this behaviour somehow?  

 

Kind regards,

Robby



Re: Cocoon installation question

2009-07-11 Thread Alexander Daniel

On 08.07.2009, at 16:32, Boyland, James wrote:
I downloaded cocoon-2.2.0.tar.gz (I assume it is the Linux version)  
to my windows desktop and unzipped it just to take a look at the  
INSTALL.txt file, and I cannot find the INSTALL.txt file.


Any ideas?

The best way to get started with Cocoon 2.2 is the Your first Cocoon  
application using Maven 2 [1] documentation.


Does this help you? If not, what do you want to achieve?

Alex

[1] http://cocoon.apache.org/2.2/1159_1_1.html

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Cocoon installation question

2009-07-08 Thread Boyland, James
Hi,

 

I downloaded cocoon-2.2.0.tar.gz (I assume it is the Linux version) to
my windows desktop and unzipped it just to take a look at the
INSTALL.txt file, and I cannot find the INSTALL.txt file.

Any ideas?

 

Jim Boyland

x 8828

Tupperware Brands Corporation | 2009 Forbes.com Platinum 400 - America's
Best Big Companies |  2009 Fortune World's Most Admired Company 

 



Newbie-question: parameters/variables

2009-04-20 Thread Søren Krum

Hi!

i am trying out some things with cocoon sitemaps, and i wonder: Is there 
anywhere a place on the web where i can get an overview about the 
different parameters/variables i can use in the sitemap as e.g. 
request-parameter:param-name


Regards

Søren Krum

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Newbie-question: parameters/variables

2009-04-20 Thread Alessandro Vincelli
Soren you can check this page for an overview of the Sitemap Input module.
And it's more interesting take a look to  the sitemap  that generates
this page, check the SAMPLE codes.
Alessandro

2009/4/20 Søren Krum soren.k...@uninett.no:
 Hi!

 i am trying out some things with cocoon sitemaps, and i wonder: Is there
 anywhere a place on the web where i can get an overview about the different
 parameters/variables i can use in the sitemap as e.g.
 request-parameter:param-name

 Regards

 Søren Krum

 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org





-- 
Alessandro Vincelli
---
http://www.alessandro.vincelli.name
http://devel.alessandro.vincelli.name

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Newbie-question: parameters/variables

2009-04-20 Thread Jasha Joachimsthal
You probably mean
http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html (link is
missing)
Jasha Joachimsthal

j.joachimst...@onehippo.com - ja...@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100
+1 (707) 773-4646


2009/4/20 Alessandro Vincelli a.vince...@gmail.com

 Soren you can check this page for an overview of the Sitemap Input module.
 And it's more interesting take a look to  the sitemap  that generates
 this page, check the SAMPLE codes.
 Alessandro

 2009/4/20 Søren Krum soren.k...@uninett.no:
  Hi!
 
  i am trying out some things with cocoon sitemaps, and i wonder: Is there
  anywhere a place on the web where i can get an overview about the
 different
  parameters/variables i can use in the sitemap as e.g.
  request-parameter:param-name
 
  Regards
 
  Søren Krum
 
  -
  To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
  For additional commands, e-mail: users-h...@cocoon.apache.org
 
 



 --
 Alessandro Vincelli
 ---
 http://www.alessandro.vincelli.name
 http://devel.alessandro.vincelli.name

 -
 To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
 For additional commands, e-mail: users-h...@cocoon.apache.org




Re: Newbie-question: parameters/variables

2009-04-20 Thread Søren Krum

Yea, that looks like what i was searching for, thx :-)


--
Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859

There are 10 different kind of people in the world, those who understand binary 
and those who don't


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Cocoon 2.1.11 build.xml question

2009-03-02 Thread Paul Joseph

Hi there,

In one of my blocks, the build.xml has the target jdo described 
below--my problem is that it won't execute the target i.e. the first 
line is not satisfied.  What exactly does the first line mean?


That jdo.jar is present in the class path? As best I can make out it is 
in the optional lib directory and so should be ok as I reference that 
in the class path.  Also, I have NOT excluded the samples...


Any advice would be appreciated.

thx.
Paul

 target name=jdo if=jdo.present 
unless=unless.exclude.webapp.samples depends=prepare, compile
   property name=build.blocks.ojb.samples.package 
value=${build.blocks.ojb.samples}/org/apache/cocoon/ojb/samples/bean/

   !-- Run the JDO Enhancer --
   echoRunning JDO Enhancer .../echo
   java fork=yes failonerror=no classname=${jdoEnhancer} 
classpathref=ojb.classpath
 arg line=-f -v -d ${build.blocks.ojb.samples} 
${build.blocks.ojb.samples}/package.jdo 
${build.blocks.ojb.samples.package}/*.class/

   /java
 /target

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



question regarding cocoon protocols (css file not found depending on match pattern)

2009-02-27 Thread Robby Pelssers
Hi all.

 

I have a cocoon Block which is structured like this

 

COB-INF

|- css -style.css

|  

|- views   -preview.jx

|  |

|  |- templates  -page.jx

|
-Footer.jx

|

|- js

 

 

Inside the page.jx (my page template) I have following reference to the
css file.

link type=text/css rel=stylesheet href=css/styles.css/

 

The problem I am facing is that the pagetemplate is not always generated
from the same match pattern.

 

E.g. pattern=index.html  or pattern=main/released/product/xyz

 

This causes that my css file is not found. No pipeline matched request:
main/released/product/css/styles.css

 

 

Can't I use some cocoon protocol that indicates that the file has to be
searched from COB-INF as the context folder?  And if there is no such
protocol, what is the best way to handle this issue?

 

Cheers,

Robby Pelssers

 



Re: question regarding cocoon protocols (css file not found depending on match pattern)

2009-02-27 Thread Andreas Hartmann

Hi Robby,

Robby Pelssers schrieb:

[…]

Inside the page.jx (my page template) I have following reference to the 
css file.


link type=text/css rel=stylesheet href=css/styles.css/


why do you use a relative link here? Shall the CSS depend on the context?

If not, I'd rather recommend

link type=text/css rel=stylesheet href=/$BLOCK/css/styles.css/

HTH,

-- Andreas




 

The problem I am facing is that the pagetemplate is not always generated 
from the same match pattern.


 


E.g. pattern=”index.html”  or pattern=”main/released/product/xyz”

 

This causes that my css file is not found. No pipeline matched request: 
main/released/product/css/styles.css


 

 

Can’t I use some cocoon protocol that indicates that the file has to be 
searched from COB-INF as the context folder?  And if there is no such 
protocol, what is the best way to handle this issue?


 


Cheers,

Robby Pelssers

 




--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: Re: question regarding cocoon protocols (css file not found depending on match pattern)

2009-02-27 Thread Robby Pelssers
;-)  no... there was no reason to use a relative link.  I think I'm just
a bit tired to think straight... Thx for this quick solution.

Cheers,
Robby

-Original Message-
From: news [mailto:n...@ger.gmane.org] On Behalf Of Andreas Hartmann
Sent: vrijdag 27 februari 2009 14:05
To: users@cocoon.apache.org
Subject: Re: question regarding cocoon protocols (css file not found
depending on match pattern)

Hi Robby,

Robby Pelssers schrieb:

[...]

 Inside the page.jx (my page template) I have following reference to
the 
 css file.
 
 link type=text/css rel=stylesheet href=css/styles.css/

why do you use a relative link here? Shall the CSS depend on the
context?

If not, I'd rather recommend

link type=text/css rel=stylesheet href=/$BLOCK/css/styles.css/

HTH,

-- Andreas


 
  
 
 The problem I am facing is that the pagetemplate is not always
generated 
 from the same match pattern.
 
  
 
 E.g. pattern=index.html  or pattern=main/released/product/xyz
 
  
 
 This causes that my css file is not found. No pipeline matched
request: 
 main/released/product/css/styles.css
 
  
 
  
 
 Can't I use some cocoon protocol that indicates that the file has to
be 
 searched from COB-INF as the context folder?  And if there is no such 
 protocol, what is the best way to handle this issue?
 
  
 
 Cheers,
 
 Robby Pelssers
 
  
 


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



sitemap question (using parameters from inputmodule to configure components)

2009-01-27 Thread Robby Pelssers
Hi all.

 

I have  a component declared in the cocoon.xconf which reads properties.

 

!--+

|

| Custom component to read in properties for Spider.

| 

+--

component-instance logger=core.modules.input
name=spider-properties

class=com.nxp.spider.config.SpiderPropertiesFileModule

systemPropertyKey
value=com.nxp.spider.flyers.properties/

file src=resource://flyers-application.properties/

/component-instance

 

I would like to use properties from this inputmodule to configure the
transformer below.  Somehow the properties are not replaced but they get
passed as {spider-properties:linecards.marketingCategoriesFolderName}
to the transformer.

Anybody who can tell me how to do this?

 

  

 map:transformer logger=sitemap.transformer.fiximage
name=fiximage-product
src=com.nxp.spider.cocoon.transformation.FixImageTransformer

 
basedir{spider-properties:linecards.marketingCategoriesFolderName}/ba
sedir 

  output-prefixfile:///images//output-prefix

  elementsproduct-cell-image/elements

/map:transformer

 

Thx in advance,

 

Robby Pelssers



question regarding inputmodule [cocoon 2.1.10)

2009-01-14 Thread Robby Pelssers
Hi all,

 

I have  a component declared in the cocoon.xconf which reads properties.

 

!--+

|

| Custom component to read in properties for Spider.

| 

+--

component-instance logger=core.modules.input
name=spider-properties

class=com.nxp.spider.config.SpiderPropertiesFileModule

systemPropertyKey
value=com.nxp.spider.flyers.properties/

file src=resource://flyers-application.properties/

/component-instance

 

When I use this module like below, the property gets replaced by it's
actual value.

 

map:transform src=xslt/fix-imagelinks.xsl

map:parameter name=marketingCategoriesFolderName
value={spider-properties:linecards.marketingCategoriesFolderName} /

/map:transform

 

 

However, when I want to use that same property to set the basedir of a
custom transformer, it does not replace the value... I logged the value
the  transformer get's and it still is {
spider-properties:linecards.marketingCategoriesFolderName } instead of
the actual property value.  Anybody who can tell me if it's possible
what I'm trying to do and if so, what am I doing wrong.

 

  

 map:transformer logger=sitemap.transformer.fiximage
name=fiximage-product
src=com.nxp.spider.cocoon.transformation.FixImageTransformer

 
basedir{spider-properties:linecards.marketingCategoriesFolderName}/ba
sedir 

output-prefixfile:///images//output-prefix

elementsproduct-cell-image/elements

/map:transformer

 

Thx in advance,

 

Robby Pelssers



RE: ZipArchiveSerializer question

2008-09-01 Thread Alfred Nathaniel
On Mon, 2008-08-25 at 17:44 -0700, Steve Cameron wrote:
 Thanks Jasha,
 
 Adding the attribute mime-type=application/zip to the map:serialize
 type=zip/ fixes the problem!
 
 However, it is already in the in the main sitemap.xmap:
 
  map:serializer logger=sitemap.serializer.zip mime-type=application/zip
 name=zip src=org.apache.cocoon.serialization.ZipArchiveSerializer/
 
 So why should this be necessary?

Which version Cocoon are you using?  This sounds like you an old problem
which was fixed in 2.1.7.

Cheers, Alfred.


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



RE: ZipArchiveSerializer question

2008-09-01 Thread Steve Cameron

Currently Cocoon 2.1.11, I should upgrade to 2.2 though.


Alfred Nathaniel wrote:
 
 On Mon, 2008-08-25 at 17:44 -0700, Steve Cameron wrote:
 Thanks Jasha,
 
 Adding the attribute mime-type=application/zip to the map:serialize
 type=zip/ fixes the problem!
 
 However, it is already in the in the main sitemap.xmap:
 
  map:serializer logger=sitemap.serializer.zip
 mime-type=application/zip
 name=zip src=org.apache.cocoon.serialization.ZipArchiveSerializer/
 
 So why should this be necessary?
 
 Which version Cocoon are you using?  This sounds like you an old problem
 which was fixed in 2.1.7.
 
 Cheers, Alfred.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ZipArchiveSerializer-question-tp19082078p19263262.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



RE: ZipArchiveSerializer question

2008-08-25 Thread Jasha Joachimsthal
Hello Steve 

 -Original Message-
 From: Steve Cameron [mailto:[EMAIL PROTECTED] 
 Sent: maandag 25 augustus 2008 1:46
 To: users@cocoon.apache.org
 Subject: Re: ZipArchiveSerializer question
 
 
 Hello Alfred,
 
 Say have a url 'http://mysite.com/cocoon/test.xml' and I want 
 to add an option to save the same test.xml file as a zip archive.
 
 I see now that if I have the following sitemap:
 
   map:match pattern=*.zip
 map:generate src=nothing.xml type=file/
   map:transform src=zip.xsl
   map:parameter name=source value={1}/  
   /map:transform
 map:serialize type=zip/
   /map:match


 I am directing the output of the * pipeline into the 
 *.zip pipeline.
 
 This almost seems to work, but the browser does not seem to 
 understand that file is a zip, so maybe I'm still doing 
 something incorrectly, thanks for your help.
 
 Steve Cameron

Have you defined a mime-type for the zip-serializer?
If not, try adding the attribute mime-type=application/zip to either
map:serialize type=zip/ in your pipeline or to the map:serializer
name=zip/ in map:components. 

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646


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



RE: ZipArchiveSerializer question

2008-08-25 Thread Steve Cameron

Thanks Jasha,

Adding the attribute mime-type=application/zip to the map:serialize
type=zip/ fixes the problem!

However, it is already in the in the main sitemap.xmap:

 map:serializer logger=sitemap.serializer.zip mime-type=application/zip
name=zip src=org.apache.cocoon.serialization.ZipArchiveSerializer/

So why should this be necessary?



Jasha Joachimsthal-2 wrote:
 
 Hello Steve 
 
 -Original Message-
 From: Steve Cameron [mailto:[EMAIL PROTECTED] 
 Sent: maandag 25 augustus 2008 1:46
 To: users@cocoon.apache.org
 Subject: Re: ZipArchiveSerializer question
 
 
 Hello Alfred,
 
 Say have a url 'http://mysite.com/cocoon/test.xml' and I want 
 to add an option to save the same test.xml file as a zip archive.
 
 I see now that if I have the following sitemap:
 
  map:match pattern=*.zip
 map:generate src=nothing.xml type=file/
  map:transform src=zip.xsl
  map:parameter name=source value={1}/  
  /map:transform
 map:serialize type=zip/
  /map:match
 
 
 I am directing the output of the * pipeline into the 
 *.zip pipeline.
 
 This almost seems to work, but the browser does not seem to 
 understand that file is a zip, so maybe I'm still doing 
 something incorrectly, thanks for your help.
 
 Steve Cameron
 
 Have you defined a mime-type for the zip-serializer?
 If not, try adding the attribute mime-type=application/zip to either
 map:serialize type=zip/ in your pipeline or to the map:serializer
 name=zip/ in map:components. 
 
 Jasha Joachimsthal 
 
 www.onehippo.com
 Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
 94952-3329 +1 (707) 773-4646
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ZipArchiveSerializer-question-tp19082078p19154099.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: ZipArchiveSerializer question

2008-08-24 Thread Steve Cameron

Hello Alfred,

Say have a url 'http://mysite.com/cocoon/test.xml' and I want to add an
option to save the same test.xml file as a zip archive.

I see now that if I have the following sitemap:

map:match pattern=*.zip
map:generate src=nothing.xml type=file/
map:transform src=zip.xsl
map:parameter name=source value={1}/  
/map:transform
map:serialize type=zip/
/map:match

  map:match pattern=*
map:generate src={1}.xml/
map:serialize type=xml/
/map:match 

Where nothing.xml is effectively an empty xml file having only xml/xml
tags.

And the zip.xsl is as follows:

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns=http://mine;
  xsl:param name=source/
  xsl:template match=/
  zip:archive xmlns:zip=http://apache.org/cocoon/zip-archive/1.0;
zip:entry
xsl:attribute name=namexsl:value-of
select=$source//xsl:attribute
xsl:attribute name=srccocoon:/xsl:value-of
select=$source//xsl:attribute
/zip:entry
  /zip:archive
  /xsl:template
/xsl:stylesheet

I am directing the output of the * pipeline into the *.zip pipeline.

This almost seems to work, but the browser does not seem to understand that
file is a zip, so maybe I'm still doing something incorrectly, thanks for
your help.

Steve Cameron



Alfred Nathaniel wrote:
 
 On Wed, 2008-08-20 at 20:54 -0700, Steve Cameron wrote:
 Hello,
 
 Is it possible to use the ZipArchiveSerializer and process the generator
 output straight off without sending it to a disk file first?
 
 I think this stream compression is possible but gives a less compressed
 result.
 
 I don't quite understand what your question is.
 
 The ZIPArchiveSerializer does not write any on-disk ZIP file.  It
 buffers in memory and streams it to the HTTP response.
 
 If you on the client side don't want to store the ZIP file, you can
 unpack it immediately:
 
 curl http://... | jar xfv -
 
 HTH, Alfred.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ZipArchiveSerializer-question-tp19082078p19136064.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: ZipArchiveSerializer question

2008-08-23 Thread Alfred Nathaniel
On Wed, 2008-08-20 at 20:54 -0700, Steve Cameron wrote:
 Hello,
 
 Is it possible to use the ZipArchiveSerializer and process the generator
 output straight off without sending it to a disk file first?
 
 I think this stream compression is possible but gives a less compressed
 result.

I don't quite understand what your question is.

The ZIPArchiveSerializer does not write any on-disk ZIP file.  It
buffers in memory and streams it to the HTTP response.

If you on the client side don't want to store the ZIP file, you can
unpack it immediately:

curl http://... | jar xfv -

HTH, Alfred.


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



ZipArchiveSerializer question

2008-08-20 Thread Steve Cameron

Hello,

Is it possible to use the ZipArchiveSerializer and process the generator
output straight off without sending it to a disk file first?

I think this stream compression is possible but gives a less compressed
result.

Thanks
-- 
View this message in context: 
http://www.nabble.com/ZipArchiveSerializer-question-tp19082078p19082078.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Robby Pelssers
Hi all,

 

I can't seem to retrieve the css file (myDemo.css).  Anybody who could
give me a hint about what's wrong with my current configuration?

 

When I take a look at the generated html page, the source looks OK to
me.

 

?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC -//W3C//DTD
XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
  head
titleCocoon Demo by Ciber/title
link type=text/css href=resource/external/css/myDemo.css
rel=stylesheet /
  /head
  body

 
But I do not see any css styling applied and when I try to take a look
at the css file (via firefox webdeveloper plugin) that should ship with
this page, it looks as if cocoon serves the transformed page-home.xml as
myDemo.css
 

 

 

My folder structure looks like:

 

* COB-INF

* myDemo

* page

* page-home.xml   

* xslt

* xml2xhtml.xslt

* resource

*external

   * css

   * myDemo.css

 

 

Xml2html.xslt snippet:

 

  xsl:template match=/

html

  head

titlexsl:value-of select=page/title/text()//title

link rel=stylesheet href=resource/external/css/myDemo.css
type=text/css/

  /head

  body

xsl:apply-templates/

  /body

/html

  /xsl:template

 

 

 

Sitemap snippet:

-

 

map:pipelines

  map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml/

  /map:pipeline

   

  map:pipeline id=external-resource

map:match pattern=resource/external/css/myDemo.css

  map:read src=resource/external/css/myDemo.css/

/map:match  

map:match pattern=resource/external/**

  map:read src=resource/external/{1}/

/map:match

  /map:pipeline  

   ...

/map:pipelines



 

Cheers,

 

Robby Pelssers



RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Jasha Joachimsthal
Hi Robby,
 
You have to add a matcher in your sitemap to serve the CSS (with a
reader). If you request in your browser resource/external/css/myDemo.css
(relative from the URI of the page) you probably get an error No
pipeline matches request.
 
Regards,
 
Jasha Joachimsthal 

www.onehippo.com http://www.onehippo.com/ 
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646




From: Robby Pelssers [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 14:44
To: users@cocoon.apache.org
Subject: question about how to reference a css file from within
xslt (cocoon 2.2)



Hi all,

 

I can't seem to retrieve the css file (myDemo.css).  Anybody who
could give me a hint about what's wrong with my current configuration?

 

When I take a look at the generated html page, the source looks
OK to  me.

 

?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC
-//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
  head
titleCocoon Demo by Ciber/title
link type=text/css
href=resource/external/css/myDemo.css rel=stylesheet /
  /head
  body

 
But I do not see any css styling applied and when I try to take
a look at the css file (via firefox webdeveloper plugin) that should
ship with this page, it looks as if cocoon serves the transformed
page-home.xml as myDemo.css
 

 

 

My folder structure looks like:

 

* COB-INF

* myDemo

* page

* page-home.xml   

* xslt

* xml2xhtml.xslt

* resource

*external

   * css

   * myDemo.css

 

 

Xml2html.xslt snippet:

 

  xsl:template match=/

html

  head

titlexsl:value-of
select=page/title/text()//title

link rel=stylesheet
href=resource/external/css/myDemo.css type=text/css/

  /head

  body

xsl:apply-templates/

  /body

/html

  /xsl:template

 

 

 

Sitemap snippet:

-

 

map:pipelines

  map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml/

  /map:pipeline

   

  map:pipeline id=external-resource

map:match
pattern=resource/external/css/myDemo.css

  map:read src=resource/external/css/myDemo.css/

/map:match  

map:match pattern=resource/external/**

  map:read src=resource/external/{1}/

/map:match

  /map:pipeline  

   ...

/map:pipelines



 

Cheers,

 

Robby Pelssers



Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Johannes Hoechstaedter

Hi Robby,

I bet you have to adjust the path:
try: ../resource/external/css/myDemo.css or anything.

Robby Pelssers schrieb:


Hi all,

I can’t seem to retrieve the css file (myDemo.css). Anybody who could 
give me a hint about what’s wrong with my current configuration?


When I take a look at the generated html page, the source looks OK to me.

?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 
Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
  head
titleCocoon Demo by Ciber/title
link type=text/css href=resource/external/css/myDemo.css rel=stylesheet 
/
  /head
  body

 
But I do not see any css styling applied and when I try to take a look at the css file (via firefox webdeveloper plugin) that should ship with this page, it looks as if cocoon serves the transformed page-home.xml as myDemo.css
 


My folder structure looks like:

* COB-INF

* myDemo

* page

* page-home.xml

* xslt

* xml2xhtml.xslt

* resource

*external

* css

* myDemo.css

Xml2html.xslt snippet:

xsl:template match=/

html

head

titlexsl:value-of select=page/title/text()//title

link rel=stylesheet href=resource/external/css/myDemo.css 
type=text/css/


/head

body

xsl:apply-templates/

/body

/html

/xsl:template

Sitemap snippet:

-

map:pipelines

map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml/

/map:pipeline



map:pipeline id=external-resource

map:match pattern=resource/external/css/myDemo.css

map:read src=resource/external/css/myDemo.css/

/map:match

map:match pattern=resource/external/**

map:read src=resource/external/{1}/

/map:match

/map:pipeline

...

/map:pipelines

Cheers,

Robby Pelssers



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



RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Robby Pelssers
Hi Joachim,

 

I would expect the pipeline below to match the request for the css file.
What is wrong with this assumption?

 

  map:pipeline id=external-resource

map:match pattern=resource/external/css/myDemo.css

  map:read src=resource/external/css/myDemo.css/

/map:match  

map:match pattern=resource/external/**

  map:read src=resource/external/{1}/

/map:match

  /map:pipeline  

 

 



From: Jasha Joachimsthal [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 14:58
To: users@cocoon.apache.org
Subject: RE: question about how to reference a css file from within xslt
(cocoon 2.2)

 

Hi Robby,

 

You have to add a matcher in your sitemap to serve the CSS (with a
reader). If you request in your browser resource/external/css/myDemo.css
(relative from the URI of the page) you probably get an error No
pipeline matches request.

 

Regards,

 

Jasha Joachimsthal 

www.onehippo.com http://www.onehippo.com/ 
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646

 





From: Robby Pelssers [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 14:44
To: users@cocoon.apache.org
Subject: question about how to reference a css file from within
xslt (cocoon 2.2)

Hi all,

 

I can't seem to retrieve the css file (myDemo.css).  Anybody who
could give me a hint about what's wrong with my current configuration?

 

When I take a look at the generated html page, the source looks
OK to  me.

 

?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC
-//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
  head
titleCocoon Demo by Ciber/title
link type=text/css
href=resource/external/css/myDemo.css rel=stylesheet /
  /head
  body

 
But I do not see any css styling applied and when I try to take
a look at the css file (via firefox webdeveloper plugin) that should
ship with this page, it looks as if cocoon serves the transformed
page-home.xml as myDemo.css
 

 

 

My folder structure looks like:

 

* COB-INF

* myDemo

* page

* page-home.xml   

* xslt

* xml2xhtml.xslt

* resource

*external

   * css

   * myDemo.css

 

 

Xml2html.xslt snippet:

 

  xsl:template match=/

html

  head

titlexsl:value-of
select=page/title/text()//title

link rel=stylesheet
href=resource/external/css/myDemo.css type=text/css/

  /head

  body

xsl:apply-templates/

  /body

/html

  /xsl:template

 

 

 

Sitemap snippet:

-

 

map:pipelines

  map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml/

  /map:pipeline

   

  map:pipeline id=external-resource

map:match
pattern=resource/external/css/myDemo.css

  map:read src=resource/external/css/myDemo.css/

/map:match  

map:match pattern=resource/external/**

  map:read src=resource/external/{1}/

/map:match

  /map:pipeline  

   ...

/map:pipelines



 

Cheers,

 

Robby Pelssers



Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Johannes Hoechstaedter

I once had the similar problem.

See http://www.mail-archive.com/users@cocoon.apache.org/msg42286.html

Robby Pelssers schrieb:


Hi Joachim,

I would expect the pipeline below to match the request for the css 
file. What is wrong with this assumption?


map:pipeline id=external-resource

map:match pattern=resource/external/css/myDemo.css

map:read src=resource/external/css/myDemo.css/

/map:match

map:match pattern=resource/external/**

map:read src=resource/external/{1}/

/map:match

/map:pipeline



*From:* Jasha Joachimsthal [mailto:[EMAIL PROTECTED]
*Sent:* dinsdag 24 juni 2008 14:58
*To:* users@cocoon.apache.org
*Subject:* RE: question about how to reference a css file from within 
xslt (cocoon 2.2)


Hi Robby,

You have to add a matcher in your sitemap to serve the CSS (with a 
reader). If you request in your browser 
resource/external/css/myDemo.css (relative from the URI of the page) 
you probably get an error No pipeline matches request.


Regards,

Jasha Joachimsthal

www.onehippo.com http://www.onehippo.com/
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 
94952-3329 +1 (707) 773-4646




*From:* Robby Pelssers [mailto:[EMAIL PROTECTED]
*Sent:* dinsdag 24 juni 2008 14:44
*To:* users@cocoon.apache.org
*Subject:* question about how to reference a css file from within
xslt (cocoon 2.2)

Hi all,

I can’t seem to retrieve the css file (myDemo.css). Anybody who
could give me a hint about what’s wrong with my current configuration?

When I take a look at the generated html page, the source looks OK
to me.

?xml version=1.0 encoding=UTF-8?!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 
Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

html

  head

titleCocoon Demo by Ciber/title

link type=text/css href=resource/external/css/myDemo.css 
rel=stylesheet /

  /head

  body



 


But I do not see any css styling applied and when I try to take a look at 
the css file (via firefox webdeveloper plugin) that should ship with this page, 
it looks as if cocoon serves the transformed page-home.xml as myDemo.css

 


My folder structure looks like:

* COB-INF

* myDemo

* page

* page-home.xml

* xslt

* xml2xhtml.xslt

* resource

*external

* css

* myDemo.css

Xml2html.xslt snippet:

xsl:template match=/

html

head

titlexsl:value-of select=page/title/text()//title

link rel=stylesheet href=resource/external/css/myDemo.css
type=text/css/

/head

body

xsl:apply-templates/

/body

/html

/xsl:template

Sitemap snippet:

-

map:pipelines

map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml/

/map:pipeline



map:pipeline id=external-resource

map:match pattern=resource/external/css/myDemo.css

map:read src=resource/external/css/myDemo.css/

/map:match

map:match pattern=resource/external/**

map:read src=resource/external/{1}/

/map:match

/map:pipeline

...

/map:pipelines

Cheers,

Robby Pelssers



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



RE: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread Jasha Joachimsthal
Your reference to the CSS is relative to the request URI of the page. If
the request URI for the page is /foo/bar/page.html your browser will
attempt to request the CSS on /foo/bar/resource/external/css/myDemo.css.
This may not be matched in your sitemap.
 
Jasha




From: Robby Pelssers [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 15:07
To: users@cocoon.apache.org
Subject: RE: question about how to reference a css file from
within xslt (cocoon 2.2)



Hi Joachim,

 

I would expect the pipeline below to match the request for the
css file. What is wrong with this assumption?

 

  map:pipeline id=external-resource

map:match
pattern=resource/external/css/myDemo.css

  map:read src=resource/external/css/myDemo.css/

/map:match  

map:match pattern=resource/external/**

  map:read src=resource/external/{1}/

/map:match

  /map:pipeline  

 

 





From: Jasha Joachimsthal [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 14:58
To: users@cocoon.apache.org
Subject: RE: question about how to reference a css file from
within xslt (cocoon 2.2)

 

Hi Robby,

 

You have to add a matcher in your sitemap to serve the CSS (with
a reader). If you request in your browser
resource/external/css/myDemo.css (relative from the URI of the page) you
probably get an error No pipeline matches request.

 

Regards,

 

Jasha Joachimsthal 

www.onehippo.com http://www.onehippo.com/ 
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam
+31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646

 





From: Robby Pelssers [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 juni 2008 14:44
To: users@cocoon.apache.org
Subject: question about how to reference a css file from
within xslt (cocoon 2.2)

Hi all,

 

I can't seem to retrieve the css file (myDemo.css).
Anybody who could give me a hint about what's wrong with my current
configuration?

 

When I take a look at the generated html page, the
source looks OK to  me.

 

?xml version=1.0 encoding=UTF-8?!DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html
  head
titleCocoon Demo by Ciber/title
link type=text/css
href=resource/external/css/myDemo.css rel=stylesheet /
  /head
  body

 
But I do not see any css styling applied and when I try
to take a look at the css file (via firefox webdeveloper plugin) that
should ship with this page, it looks as if cocoon serves the transformed
page-home.xml as myDemo.css
 

 

 

My folder structure looks like:

 

* COB-INF

* myDemo

* page

* page-home.xml


* xslt

* xml2xhtml.xslt

* resource

*external

   * css

   *
myDemo.css

 

 

Xml2html.xslt snippet:

 

  xsl:template match=/

html

  head

titlexsl:value-of
select=page/title/text()//title

link rel=stylesheet
href=resource/external/css/myDemo.css type=text/css/

  /head

  body

xsl:apply-templates/

  /body

/html

  /xsl:template

 

 

 

Sitemap snippet:

-

 

map:pipelines

  map:pipeline id=genericPages

map:match pattern=page-home.xml/

map:generate src=myDemo/page/page-home.xml/

map:transform
src=myDemo/xslt/xml2xhtml.xslt/

map:serialize type=xhtml

Re: question about how to reference a css file from within xslt (cocoon 2.2)

2008-06-24 Thread David Legg


Jasha wrote:
Your reference to the CSS is relative to the request URI of the page. 
If the request URI for the page is /foo/bar/page.html your browser 
will attempt to request the CSS on 
/foo/bar/resource/external/css/myDemo.css. This may not be matched in 
your sitemap.


That's right and of course if you use relative URLs in your CSS file (to 
include background images etc) they are relative to the CSS file and not 
the web page so your site map may have to cope with those too.



David Legg


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



RESOLVED, but quick question

2008-06-04 Thread Matthew Monkan

Okay, I got it to work. My connection settings were correct, but I had to
rename the mail and activation jars to the geronimo ones and replace the
geronimo ones to get the mail to work. My question is, what file has the
code that decides what mail  activation jars to use? My app is in Cocoon's
build\webapp\ folder.



Torsten Curdt wrote:
 
 I've tried a million things, but I always get:

 Could not connect to SMTP host: localhost, port: 2525
 (java.net.ConnectException: Connection refused: connect)
 
 Well, that sounds like there is no SMTP server listening on localhost  
 port 2525
 
 What happens when you do a 'telnet localhost 2525' ?
 
 cheers
 --
 Torsten
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/SendMail-Transformer-%28Cocoon-2.1.11%2C-Windows-XP%29-tp17634181p17648991.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: RESOLVED, but quick question

2008-06-04 Thread Torsten Curdt


On Jun 4, 2008, at 17:05, Matthew Monkan wrote:



Okay, I got it to work. My connection settings were correct, but I  
had to
rename the mail and activation jars to the geronimo ones and replace  
the

geronimo ones to get the mail to work.


You had to rename jars to get it working? ...hm ...that's does not  
sound like the real reason - but anyway. If it works :)



My question is, what file has the
code that decides what mail  activation jars to use? My app is in  
Cocoon's

build\webapp\ folder.


Well, the ones in the class path. There is no code that does that.

If you have multiple versions in the classpath the renaming might have  
changed the order.


cheers
--
Torsten

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



Re: Question about Maven integration

2008-05-27 Thread Hubert A . Klein Ikkink
Gerry Kaplan gkaplan at kaplansoftware.com writes:
 But what if there are changes to
 Cocoon itself (i.e. version 2.2.1) and you want to apply those 
 changes to your previously
 built webapp?

Hi Gerry,

the lifecycle of a Cocoon 2.2 app will be the same as for any Maven project. 
Cocoon is nothing more than a dependency in the pom.xml file. If a 
new version is released we only have to change the version 
number in the pom.xml of Cocoon app. See the dependencies 
section in a pom.xml for a cocoon-core reference. Here is also
the version number mentioned.

 Also, what about updates to Spring?

Spring is now a dependency of the Cocoon artifacts. Maven has a mechanism 
to exclude certain dependencies to artifacts. We then have to use
the exclusions elements with a dependency. So this way we can use a 
newer version of Spring.

Kind regards, Hubert Klein Ikkink






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



Question regarding Cocoon Maven

2008-05-26 Thread Gerry Kaplan
I have read through the tutorial regarding 2.2 but there is one point that
is unclear. I can see how Maven will create the directories and everything
needed to get a project going, but what if there are changes to Cocoon
itself (i.e. version 2.2.1) and you want to apply those changes to your
newly built webapp? Is there a good article that talks about the lifecycle
of a Cocoon 2.2 app that is built with Maven? Also, what about updates to
Spring? I'm not sure how these pieces remain current once the Cocoon parts
are built.

 

Thanks,

Gerry Kaplan



Question about Maven integration

2008-05-26 Thread Gerry Kaplan
I have read through the tutorial regarding 2.2 but there is one point that
is unclear. I can see how Maven will create the directories and everything
needed to get a project going, but what if there are changes to Cocoon
itself (i.e. version 2.2.1) and you want to apply those changes to your
previously built webapp? Is there a good article that talks about the
lifecycle of a Cocoon 2.2 app that is built with Maven? Also, what about
updates to Spring? I'm not sure how these pieces remain current once the
Cocoon parts are built.

 

Thanks,

Gerry Kaplan

 



NEWBIE question: HTML Generator

2008-04-16 Thread Heather Rankin
Hi,

Wondering if anyone can help me... I'm brand new to Cocoon and am trying
to execute this simple pipeline:

map:match pattern=myPipeline
 map:generate
src=http://www.geekculture.com/mt2/archives/2008/04/forum_tidbits_f_390
.html type=html / 
 map:serialize type=xml/
/map:match

When I hit http://localhost:/metadata/myPipeline I can see it trying
to connect to localhost but then I get a 'java.net.ConnectException:
Connection timed out: connect' error.

I don't get the error with a *local* HTML file, just with an external
URL. What am I doing wrong?

Thanks in advance...

Heather

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.


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



RE: NEWBIE question: HTML Generator

2008-04-16 Thread Jeroen Reijn
Hi Heather,

Well I don't think you are doing something wrong, except that cocoon might not 
be able to connect to the web.
Could it be that your browser has a proxy configured for internet access?

It seems cocoon can't reach the host from the internal http connection.

Regards,

Jeroen




-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 11:59 AM
To: users@cocoon.apache.org
Subject: NEWBIE question: HTML Generator
 
Hi,

Wondering if anyone can help me... I'm brand new to Cocoon and am trying
to execute this simple pipeline:

map:match pattern=myPipeline
 map:generate
src=http://www.geekculture.com/mt2/archives/2008/04/forum_tidbits_f_390
.html type=html / 
 map:serialize type=xml/
/map:match

When I hit http://localhost:/metadata/myPipeline I can see it trying
to connect to localhost but then I get a 'java.net.ConnectException:
Connection timed out: connect' error.

I don't get the error with a *local* HTML file, just with an external
URL. What am I doing wrong?

Thanks in advance...

Heather

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.


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




RE: NEWBIE question: HTML Generator

2008-04-16 Thread Heather Rankin
Thanks Jeroen. Yes, that's it. Browser's configured to use an HTTP
Proxy.
 
Can I configure anything on the cocoon end to deal with this? I had a
look around and wasn't able to find anything.
 
Heather



From: Jeroen Reijn [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 12:00
To: users@cocoon.apache.org; users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator



Hi Heather,

Well I don't think you are doing something wrong, except that cocoon
might not be able to connect to the web.
Could it be that your browser has a proxy configured for internet
access?

It seems cocoon can't reach the host from the internal http connection.

Regards,

Jeroen




-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 11:59 AM
To: users@cocoon.apache.org
Subject: NEWBIE question: HTML Generator

Hi,

Wondering if anyone can help me... I'm brand new to Cocoon and am trying
to execute this simple pipeline:

map:match pattern=myPipeline
 map:generate
src=http://www.geekculture.com/mt2/archives/2008/04/forum_tidbits_f_390
.html type=html /
 map:serialize type=xml/
/map:match

When I hit http://localhost:/metadata/myPipeline I can see it trying
to connect to localhost but then I get a 'java.net.ConnectException:
Connection timed out: connect' error.

I don't get the error with a *local* HTML file, just with an external
URL. What am I doing wrong?

Thanks in advance...

Heather

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
   

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





http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.



Re: NEWBIE question: HTML Generator

2008-04-16 Thread Joerg Heinicke

On 16.04.2008 07:48, Heather Rankin wrote:

Browser's configured to use an HTTP Proxy.
 
Can I configure anything on the cocoon end to deal with this?


You can configure the JVM to use a proxy by setting system properties:
http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html

Joerg

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



RE: NEWBIE question: HTML Generator

2008-04-16 Thread Jeroen Reijn
Hi Heather,

you will need to provide your application container (tomcat,jetty, etc) with 
the correct proxy settings.

See:

http://wiki.apache.org/cocoon/FAQs#head-89e170fb6bab33c40eddcbe152bbf46d1c6ece76

Regards.

Jeroen


-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 1:48 PM
To: users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator
 
Thanks Jeroen. Yes, that's it. Browser's configured to use an HTTP
Proxy.
 
Can I configure anything on the cocoon end to deal with this? I had a
look around and wasn't able to find anything.
 
Heather



From: Jeroen Reijn [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 12:00
To: users@cocoon.apache.org; users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator



Hi Heather,

Well I don't think you are doing something wrong, except that cocoon
might not be able to connect to the web.
Could it be that your browser has a proxy configured for internet
access?

It seems cocoon can't reach the host from the internal http connection.

Regards,

Jeroen




-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 11:59 AM
To: users@cocoon.apache.org
Subject: NEWBIE question: HTML Generator

Hi,

Wondering if anyone can help me... I'm brand new to Cocoon and am trying
to execute this simple pipeline:

map:match pattern=myPipeline
 map:generate
src=http://www.geekculture.com/mt2/archives/2008/04/forum_tidbits_f_390
.html type=html /
 map:serialize type=xml/
/map:match

When I hit http://localhost:/metadata/myPipeline I can see it trying
to connect to localhost but then I get a 'java.net.ConnectException:
Connection timed out: connect' error.

I don't get the error with a *local* HTML file, just with an external
URL. What am I doing wrong?

Thanks in advance...

Heather

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
   

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





http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.




RE: NEWBIE question: HTML Generator

2008-04-16 Thread Heather Rankin
Thanks Jeroen and Joerg - I've updated the proxyHost and proxyPort
settings and all works now :-)
 
Heather



From: Jeroen Reijn [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2008 13:53
To: users@cocoon.apache.org; users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator



Hi Heather,

you will need to provide your application container (tomcat,jetty, etc)
with the correct proxy settings.

See:

http://wiki.apache.org/cocoon/FAQs#head-89e170fb6bab33c40eddcbe152bbf46d
1c6ece76

Regards.

Jeroen


-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 1:48 PM
To: users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator

Thanks Jeroen. Yes, that's it. Browser's configured to use an HTTP
Proxy.

Can I configure anything on the cocoon end to deal with this? I had a
look around and wasn't able to find anything.

Heather



From: Jeroen Reijn [mailto:[EMAIL PROTECTED]
Sent: 16 April 2008 12:00
To: users@cocoon.apache.org; users@cocoon.apache.org
Subject: RE: NEWBIE question: HTML Generator



Hi Heather,

Well I don't think you are doing something wrong, except that cocoon
might not be able to connect to the web.
Could it be that your browser has a proxy configured for internet
access?

It seems cocoon can't reach the host from the internal http connection.

Regards,

Jeroen




-Original Message-
From: Heather Rankin [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 11:59 AM
To: users@cocoon.apache.org
Subject: NEWBIE question: HTML Generator

Hi,

Wondering if anyone can help me... I'm brand new to Cocoon and am trying
to execute this simple pipeline:

map:match pattern=myPipeline
 map:generate
src=http://www.geekculture.com/mt2/archives/2008/04/forum_tidbits_f_390
.html type=html /   
 map:serialize type=xml/
/map:match

When I hit http://localhost:/metadata/myPipeline I can see it trying
to connect to localhost but then I get a 'java.net.ConnectException:
Connection timed out: connect' error.

I don't get the error with a *local* HTML file, just with an external
URL. What am I doing wrong?

Thanks in advance...

Heather

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
  

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





http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
   




http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.



HTML-serializer question

2008-04-15 Thread Lehtonen, Mika
I have this external graphics tag in my xsl when using FOP to serialize 
pdfs'.(Cocoon 2.1.11 with 0.94 FOP)


fo:external-graphic 
src=cocoon:/selitykset/{$kunta}-{$alue}-{$kaavano}-laatija_{$kaavano}.gif  
.. etc..


But now I am building an html serializer for the same project. How do I 
convert this into an html tag?
img 
src=cocoon:/selitykset/{$kunta}-{$alue}-{$kaavano}-laatija_{$kaavano}.gif 
.. etc ..

doesn't work.

I have a large file structure of gifs' so this pipeline is used for 
finding the right one. So it will find 
kunta/alue/kaavano/laatija_kaavano.gif from the selitykset directory. I 
just can't remember why I did so difficulty. Couldn't it just be done like:
.. 
src=cocoon:/selitykset/{$kunta}/{$alue}/{$kaavano}/laatija_{$kaavano}.gif 
.. without any pipeline? But then it would demand some concatenation? A 
little lost here :-[ .
Anyway that is probably not the problem but the right way to put it into 
html.


- mika -

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



Re: HTML-serializer question

2008-04-15 Thread Stephen Winnall
The problem is with the use of the cocoon: pseudo-protocol in the src  
attribute of img. Cocoon pseudo-protocols are only known to Cocoon and  
so only work on the server side. The img src=... is sent over to  
the client to be interpreted, and Safari, Netscape, MSIE and co. don't  
know what it is. If you translate the cocoon:/ into a URL equivalent  
using http you should be alright.


Steve

On 15 Apr 2008, at 10:11, Lehtonen, Mika wrote:

I have this external graphics tag in my xsl when using FOP to  
serialize pdfs'.(Cocoon 2.1.11 with 0.94 FOP)


fo:external-graphic src=cocoon:/selitykset/{$kunta}-{$alue}- 
{$kaavano}-laatija_{$kaavano}.gif  .. etc..


But now I am building an html serializer for the same project. How  
do I convert this into an html tag?
img src=cocoon:/selitykset/{$kunta}-{$alue}-{$kaavano}- 
laatija_{$kaavano}.gif .. etc ..

doesn't work.

I have a large file structure of gifs' so this pipeline is used for  
finding the right one. So it will find kunta/alue/kaavano/ 
laatija_kaavano.gif from the selitykset directory. I just can't  
remember why I did so difficulty. Couldn't it just be done like:
.. src=cocoon:/selitykset/{$kunta}/{$alue}/{$kaavano}/ 
laatija_{$kaavano}.gif .. without any pipeline? But then it would  
demand some concatenation? A little lost here :-[ .
Anyway that is probably not the problem but the right way to put it  
into html.


- mika -

-
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: HTML-serializer question

2008-04-15 Thread Lehtonen, Mika

Yep,

I ended up thinking something similar and kind of sorted the problem out 
by using already created contextpath-variable instead of cocoon:/. It 
works.


thanks,
mika

Stephen Winnall kirjoitti:
The problem is with the use of the cocoon: pseudo-protocol in the src 
attribute of img. Cocoon pseudo-protocols are only known to Cocoon and 
so only work on the server side. The img src=... is sent over to 
the client to be interpreted, and Safari, Netscape, MSIE and co. don't 
know what it is. If you translate the cocoon:/ into a URL equivalent 
using http you should be alright.


Steve

On 15 Apr 2008, at 10:11, Lehtonen, Mika wrote:

I have this external graphics tag in my xsl when using FOP to 
serialize pdfs'.(Cocoon 2.1.11 with 0.94 FOP)


fo:external-graphic 
src=cocoon:/selitykset/{$kunta}-{$alue}-{$kaavano}-laatija_{$kaavano}.gif  
.. etc..


But now I am building an html serializer for the same project. How do 
I convert this into an html tag?
img 
src=cocoon:/selitykset/{$kunta}-{$alue}-{$kaavano}-laatija_{$kaavano}.gif 
.. etc ..

doesn't work.

I have a large file structure of gifs' so this pipeline is used for 
finding the right one. So it will find 
kunta/alue/kaavano/laatija_kaavano.gif from the selitykset directory. 
I just can't remember why I did so difficulty. Couldn't it just be 
done like:
.. 
src=cocoon:/selitykset/{$kunta}/{$alue}/{$kaavano}/laatija_{$kaavano}.gif 
.. without any pipeline? But then it would demand some concatenation? 
A little lost here :-[ .
Anyway that is probably not the problem but the right way to put it 
into html.


- mika -

-
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: More Cocoon 2.2 question

2008-04-13 Thread Vadim Gritsenko

On Apr 9, 2008, at 11:36 PM, Kamal Bhatt wrote:
As such, how do I point Cocoon to use a sitemap outside the main  
Cocoon project?


Depends what you mean... If using 2.2 blocks, add a parameter to the  
block servlet bean definition. Like this:


  bean name=org.apache.cocoon-welcome.block  
class=org.apache.cocoon.sitemap.SitemapServlet

servlet:init-params
  entry key=sitemap-path value=file:///path/to/sitemap.xmap/
/servlet:init-params
servlet:context mount-path=/ context-path=blockcontext:/ 
cocoon-welcome/

  servlet:connections
entry key=style value- 
ref=org.apache.cocoon.samples.style.default.servlet/

  /servlet:connections
/servlet:context
  /bean


If using classic mode, it is same as usual, sitemap/ element in main  
xconf file.



Vadim

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



Re: More Cocoon 2.2 question

2008-04-10 Thread Kamal Bhatt

Grzegorz Kossakowski wrote:

Kamal Bhatt pisze:

Kamal Bhatt wrote:

Hi,
Firstly, I would like to register my dissatisfaction on the 
structure of the 2.2 website. It frustrates and confuses me and I 
know how to use Cocoon. For example, I needed to get a description 
of how to write a generator. To get to this information I had to 
click on the Core 2.2 link, then click the Core tag (which is 
described as The '*cocoon-core*' module is some kind of wrapper, 
that keeps all dependencies together in order to make it easier to 
use Cocoon as web application framework. For now the complete 
documentation of all core modules can be found in Cocoon core.), 
then click Sitemap /Writing your own components/Creating a 
Generator. What? Were it not for random clicking on my part, I would 
not have found this information. Once you get to this page, there 
are issues with the navigation on the left (some parts cross over 
into the text). The old site was bad, but at least it was navigable. 
Is there any hope of fixing the documentation any time soon? This 
website is definitely not newbie friendly.


Not sure what kind of comment I can give here. If you have some ideas 
how this could be changed I'm all open.
What I think is missing is a single place to get all the information 
Organising a website on blocks may be convinient, but it hardly easy for 
a newbie. IMHO, the Cocoon Core page should be the centre, and all other 
pages should link off that page. Also, the term Cocoon Core isn't a 
very good description of the content (not unless you have some 
understanding of how Cocoon fits together, and even then it does not 
cover all bases). Here is a page that has all the information you need, 
but due to a bad description, it is impossible to find. From a code 
perspective, it may make sense, but from a users perspective 
(particularly a new one) it is nonsense.




1. I asked this before, but I did n't get a satisfactory answer. I 
know that there is the new block structure, but I don't want to have 
to bundle Cocoon classes with my sitemap, etc... for various reason 
(including historical). As such, how do I point Cocoon to use a 
sitemap outside the main Cocoon project?


You can put your classes into one block and sitemap into another 
getting two different jars. Is it what you are looking for?
I would prefer not having jar files. The only JAR/WAR file I want is for 
Cocoon. However, can I achieve this by using sitemap redirection?  Would 
that be inefficient?






Also, what is the replacement for cinclude?



I think that CInclude is still supported but I would advise using 
IncludeTransformer:
http://cocoon.apache.org/2.2/core-modules/core/2.2/apidocs/org/apache/cocoon/transformation/IncludeTransformer.html 

Is there a migration page for Cocoon? I would prefer not having to keep 
asking about what is and isn't available in Cocoon 2.2.



--
Kamal Bhatt


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



Re: [2.2] Basic question on new version of Cocoon

2008-02-21 Thread Andreas Kuehne
Hi Andrew !

  I guess we never got round to formally deprecating it. Perhaps we
should deprecate it, write a guide on alternative patterns (ie show how

 much easier it is to develop/maintain Cocoon apps without it), and then
see what demand there is to port it to 2.2?


I know some vital projects that carrying some load of XSPs. So you can have my 
feedback right here :

Deprecate it, but port it !


Greetings

Andreas



Re: [2.2] Basic question on new version of Cocoon

2008-02-20 Thread Andrew Savory
Hi,

On 20/02/2008, Reinhard Poetz [EMAIL PROTECTED] wrote:

 kamal wrote:
  Hi,
  I have finally got around to looking at Cocoon2.2 and I am having
  problems understanding a couple of things:
 
  1. What happened to XSPs? We extensively use XSPs at work and would
  require either a XSPs or a valid replacement.

 XSP hasn't been migrated to 2.2 yet. The replacement is Cocoon Template.


In more detail: XSP has been deprecated for some time, since it often
resulted in a mixture of concerns (extensive logic, presentation and content
all in one file). A more robust alternative is to use java objects +
flowscript + template (jxtemplate using jxpath or jexl).

Hope that helps,

Andrew.


Re: [2.2] Basic question on new version of Cocoon

2008-02-20 Thread Thorsten Scherler
On Wed, 2008-02-20 at 23:02 +1100, Kamal Bhatt wrote:
 Andrew Savory wrote:
...
  In more detail: XSP has been deprecated for some time, since it often 
  resulted in a mixture of concerns (extensive logic, presentation and 
  content all in one file). A more robust alternative is to use java 
  objects + flowscript + template (jxtemplate using jxpath or jexl).
 What about SQL queries? Last time I checked in 2.1, doing SQL queries 
 were messy in JXTemplates, flowscript, etc...

If you do not use something like hibernate or ibatis (which I highly
recommend instead of any other thing) there is always the sql
transformer.

Anyhow jx is much cleaner approach to give you some presentational
logic, however if you need more logic (business) then you should use
java flow and jx and/or custom generators that connect to you business
logic and produce SAX.

salu2
-- 
Thorsten Scherler thorsten.at.apache.org
Open Source Java  consulting, training and solutions


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



[2.2] Basic question on new version of Cocoon

2008-02-19 Thread kamal

Hi,
I have finally got around to looking at Cocoon2.2 and I am having 
problems understanding a couple of things:


1. What happened to XSPs? We extensively use XSPs at work and would 
require either a XSPs or a valid replacement.
2. Right now, we have one instance of Cocoon and have setup the 
mount-table.xml file to point to different locations on our harddrive. 
We have found this mechanism invaluable.However, I see little 
documentation on how deployments (in a non jetty environment) are 
managed. Am I right in thinking that this functionality can be achieved 
using sitemap redirection?
3. I ran through the instructions on the website and I couldn't get 
thedemos to work. Neither could I hit localhost:. Any suggestions on 
how I debug this?


Thanks.

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



Re: [2.2] Basic question on new version of Cocoon

2008-02-19 Thread Reinhard Poetz

kamal wrote:

Hi,
I have finally got around to looking at Cocoon2.2 and I am having 
problems understanding a couple of things:


1. What happened to XSPs? We extensively use XSPs at work and would 
require either a XSPs or a valid replacement.


XSP hasn't been migrated to 2.2 yet. The replacement is Cocoon Template.

2. Right now, we have one instance of Cocoon and have setup the 
mount-table.xml file to point to different locations on our harddrive. 
We have found this mechanism invaluable.However, I see little 
documentation on how deployments (in a non jetty environment) are 
managed. Am I right in thinking that this functionality can be achieved 
using sitemap redirection?
3. I ran through the instructions on the website and I couldn't get 
thedemos to work. Neither could I hit localhost:. Any suggestions on 
how I debug this?


Which instructions exactly did you go through and at what point did you get 
stuck? (After you have been able to go through the tutorials, we can discuss 
deployment and the configuration of the development environment.)


--
Reinhard PötzManaging Director, {Indoqa} GmbH
  http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair[EMAIL PROTECTED]
_

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



Newbie question: jx:choose/

2007-10-19 Thread Marcus Wejderot

Hi,

I'm learning Cocoon but got stuck on this simple prob. I can't make this
print out No:

jx:choose
jx:when test=${false}Yes/jx:when
jx:otherwiseNo/jx:otherwise
/jx:choose

I have tried all kinds of things in @test. What I'm really want to do is to
check if the variable ${userid} is empty. How to do this?

Thanks!

/Marcus


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



Re: Newbie question: jx:choose/

2007-10-19 Thread Tobia Conforto
Marcus Wejderot wrote:
 I have tried all kinds of things in @test. What I really want to do
 is to check if the variable ${userid} is empty. How to do this?

I usually write:  test=${empty(userid)}

empty() is native JX language for testing against most kinds of empty,
such as (IIRC) 0, false, undefined, null, empty string, empty array...

See: http://commons.apache.org/jexl/reference/syntax.html


Tobia

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



Re: Design question about C2.2 if/else in sitemap

2007-09-28 Thread Grzegorz Kossakowski
Sébastien Geindre pisze:
 dummy questions :

It's not that dummy!

 how, in C2.2, get variables  from xml configuration file, in sitemap, in
 xsl transformer ???
 

Take a look at XMLFileModule[1] that will let you to access content of XML file 
in your sitemap.

[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/XMLFileModule.html

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

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



Re: Design question about C2.2 if/else in sitemap

2007-09-27 Thread Sébastien Geindre

dummy questions :

how, in C2.2, get variables  from xml configuration file, in sitemap, in 
xsl transformer ???


thanks.

Sébastien Geindre a écrit :

Hi all,

design question :

a client post an xml file to my cocoon application.

I need to handle this xml data and check spatial selection then 
process it in the right pipeline

- get xml data
- make spatial test intersection with configuration data (in java)
- if true go on this way on the sitemap, else on the other way.

How can i implement it, with C2.2 ? Best practices ?

Thanks for your ideas.




--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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



Design question about C2.2 if/else in sitemap

2007-09-25 Thread Sébastien Geindre

Hi all,

design question :

a client post an xml file to my cocoon application.

I need to handle this xml data and check spatial selection then process 
it in the right pipeline

- get xml data
- make spatial test intersection with configuration data (in java)
- if true go on this way on the sitemap, else on the other way.

How can i implement it, with C2.2 ? Best practices ?

Thanks for your ideas.

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr




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



Re: Novice question

2007-08-08 Thread warrell harries
Hi,

This request is somewhat vague. Cocoon is designed to process XML. I would
suggest keeping your XML and using the the XSL and SQLTransformers to update
the database and possibly write your own Custom transformer to implement
whatever behaviour you require to be triggered. However, you are likely to
find that using existing components will do what you require. We can't be
sure unless you are more explicit in your requirements.

On 06/08/07, thuertas [EMAIL PROTECTED] wrote:

 Hello,
 I begin in cocoon and perhaps my question has already been answer (thank
 you to redirect me in this case.)
 I have an xml file which I transform into objects (javabeans) in order
 to insert them in base. But before inserting them in base I must apply
 some actions.
 The question is: how to recover my objects after the xml file's
 transformation , then, how to give these objects in entry of my actions.

 regards,

 tugdual

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




RE: Question débutant

2007-08-07 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC

 En gros, j'ai un fichier xml que je transforme en objets 
 (javabean) afin 
 de les insérer en base. Mais avant de les insérer en base je dois 
 appliquer quelques actions dessus. La question est donc: comment 
 récupérer mes objets après transformation du fichier xml, 
 puis, comment 
 donner ces mêmes objets en entrée de mes actions.

Pouvez-vous décrire le pipeline concerné ? Quelles actions voulez-vous 
appliquer ?

André Davignon


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Re: Question débutant

2007-08-07 Thread thuertas

DAVIGNON Andre - CETE NP/DIODé/PANDOC a écrit :
En gros, j'ai un fichier xml que je transforme en objets 
(javabean) afin 
de les insérer en base. Mais avant de les insérer en base je dois 
appliquer quelques actions dessus. La question est donc: comment 
récupérer mes objets après transformation du fichier xml, 
puis, comment 
donner ces mêmes objets en entrée de mes actions.



Pouvez-vous décrire le pipeline concerné ? Quelles actions voulez-vous 
appliquer ?

André Davignon


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]


  

Bien sur,
j'ai un fichier xml en entrée.
J'applique une transformation afin d'obtenir un deuxieme fichier xml.

map:pipelines
 map:pipeline id=xmlEntree2xmlSortie
   map:match pattern=xmlEntree2xmlSortie
map:generate src=transform/xmlEntree.XML/
map:transform src=transform/xmlEntree2xmlSortie.xslt/
map:serialize type=xml/
   /map:match
 /map:pipeline
/map:pipelines

Ensuite j'applique une transformation sur le nouveau fichier xml.
J'obtiens des javabeans.
J'applique certaines fonctions sur ces objets.
J'ai donc (je pense):
- un deuxième map:match à appliquer juste après le premier afin de 
faire la

transformation xml--objets
- une action
 map:actions
   map:action src=monpackage.monAction name=monActionName/
 /map:actions
  à insérer à la suite de la deuxième transformation avec quelque chose du
genre: map:act type=monActionName/

Question:
Comment passer le résultat de ma transformation à l'autre transformation.
Comment passer le résultat de ma transformation à mon action.
Faut-il mettre le résultat en request ou en session?


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Re: Question débutant

2007-08-07 Thread olivier nouguier
On 8/7/07, DAVIGNON Andre - CETE NP/DIODé/PANDOC 
[EMAIL PROTECTED] wrote:


 Question:
 Comment passer le résultat de ma transformation à l'autre transformation.


ben pas plus il suffit d'enchainer les transformation dans le pipeline.

Comment passer le résultat de ma transformation à mon action.


Non pertinent dans la mesure ou les actions sont évaluée à la contruction du
pipeline (donc avant), et non pas lors de son execution.

Faut-il mettre le résultat en request ou en session?

 Peut-être avec cela (pas testé) :

 map:act type=monActionName/
 map:parameter name=monXmlDeSortie
 value=cocoon:/xmlEntree2xmlSortie/
 ...
 /map:act

 ...

 André Davignon


 -
 Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
 Pour vous desinscrire : mailto:[EMAIL PROTECTED]
 Autres commandes : mailto:[EMAIL PROTECTED]




-- 
Ability is nothing without opportunity.
Napoleon Bonaparte


Re: Question débutant

2007-08-07 Thread thuertas

olivier nouguier a écrit :

On 8/7/07, DAVIGNON Andre - CETE NP/DIODé/PANDOC 
[EMAIL PROTECTED] wrote:
  


Question:
Comment passer le résultat de ma transformation à l'autre transformation.
  



ben pas plus il suffit d'enchainer les transformation dans le pipeline.

  

Comment passer le résultat de ma transformation à mon action.




Non pertinent dans la mesure ou les actions sont évaluée à la contruction du
pipeline (donc avant), et non pas lors de son execution.

  

Faut-il mettre le résultat en request ou en session?

Peut-être avec cela (pas testé) :

map:act type=monActionName/
map:parameter name=monXmlDeSortie
value=cocoon:/xmlEntree2xmlSortie/
...
/map:act

...

André Davignon


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]






  

Merci pour ces réponses.

Etant donné que les actions sont évaluées à la construction, serait-ce 
plus judicieux de mettre le contenu de mes actions dans le deuxième 
transformeur (celui qui fait xml--objets)? Ainsi on garde les actions à 
effectuer au niveau souhaîté dans le pipeline


-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Question débutant

2007-08-06 Thread thuertas
Bonjour, je débute en cocoon et peut-être que la réponse à ma question 
est déjà quelque part (merci de me rediriger dans ce cas.)
En gros, j'ai un fichier xml que je transforme en objets (javabean) afin 
de les insérer en base. Mais avant de les insérer en base je dois 
appliquer quelques actions dessus. La question est donc: comment 
récupérer mes objets après transformation du fichier xml, puis, comment 
donner ces mêmes objets en entrée de mes actions.


cordialement,

tugdual

-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Novice question

2007-08-06 Thread thuertas

Hello,
I begin in cocoon and perhaps my question has already been answer (thank 
you to redirect me in this case.)
I have an xml file which I transform into objects (javabeans) in order 
to insert them in base. But before inserting them in base I must apply 
some actions.
The question is: how to recover my objects after the xml file's 
transformation , then, how to give these objects in entry of my actions.


regards,

tugdual

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



cocoon send mail body question

2007-07-19 Thread Vaduvoiu Tiberiu
I have a form with like 5-6 inputs, some selects, some radio buttons, etc. 
after the user fill in the form, an email is sent with these values in the 
body. my question is if I can somehow format the body before sending it? let me 
try to explain it further more:

the parameters that you need for sending a mail are From, To, Subject and Body 
(although only from and to are mandatory). in this moment in my match pattern 
where i send the mail I have:

map:parameter name=body value=Input1:{request-param:input1}, 
input2:{request-parameter:input2}, etc./...so when I get the mail my body 
looks like crap...it's like a big chunk of unformatted text. I would like to 
somehow send the values formated or in a nice order . can anyone tell me if 
that's possible and how? 10x in advance


   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz

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



RE: cocoon send mail body question

2007-07-19 Thread Ard Schrijvers
Are you using the SendMailTransformer? If you use it like

!-- Pipeline for sendemail.xml --
 map:match pattern=sendemail
 map:generate src=sendemail.xml/
 map:transform type=sendmail/
 map:serialize type=xml/
 /map:match

you can just make a normal email in sendemail.xml (which can of course be a 
cocoon pipeline in turn). An email might look like the example at [1]

Regards Ard

[1] http://www.codeconsult.ch/bertrand/archives/000571.html


 
 I have a form with like 5-6 inputs, some selects, some radio 
 buttons, etc. after the user fill in the form, an email is 
 sent with these values in the body. my question is if I can 
 somehow format the body before sending it? let me try to 
 explain it further more:
 
 the parameters that you need for sending a mail are From, To, 
 Subject and Body (although only from and to are mandatory). 
 in this moment in my match pattern where i send the mail I have:
 
 map:parameter name=body 
 value=Input1:{request-param:input1}, 
 input2:{request-parameter:input2}, etc./...so when I get 
 the mail my body looks like crap...it's like a big chunk of 
 unformatted text. I would like to somehow send the values 
 formated or in a nice order . can anyone tell me if that's 
 possible and how? 10x in advance
 
 

 __
 __
 Got a little couch potato? 
 Check out fun summer activities for kids.
 http://search.yahoo.com/search?fr=oni_on_mailp=summer+activit
 ies+for+kidscs=bz 
 
 -
 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]



serialize type question

2007-07-04 Thread Vaduvoiu Tiberiu
I have a question: if my serialize type is the type xml(serialize type=xml), 
my resulted xml file has encoding ISO-8859-1. How can I change this to utf-8? 
so this is in my sitemap:

  map:match pattern=*/*/news/bussines.xml
  map:aggregate element=root label=source
  
   map:part element=dasl src=cocoon:/{1}/{2}/documents/search/
/map:aggregate
map:transform src=transformers/rss.xsl/
map:transform type=i18n
  map:parameter name=locale value=en/
/map:transform
map:transform src=transformers/stripnamespaces.xsl/
map:serialize type=xml/
  /map:match

my rss.xsl file starts with ?xml version=1.0 encoding=UTF-8? 
xsl:stylesheet.

still, the resulting bussines.xml file has ?xml version=1.0 
encoding=ISO-8859-1 
? ...anybody know how can I change it? 10x






 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

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



RE: serialize type question

2007-07-04 Thread Jasha Joachimsthal
Hi there,

Did you try

map:serializer logger=sitemap.serializer.xml mime-type=text/xml;
charset=UTF-8 name=xml-utf8
src=org.apache.cocoon.serialization.XMLSerializer
encodingUTF-8/encoding
  /map:serializer 

And then use map:serialize type=xml-utf8/

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl

 -Original Message-
 From: Vaduvoiu Tiberiu [mailto:[EMAIL PROTECTED] 
 Sent: woensdag 4 juli 2007 8:38
 To: users@cocoon.apache.org
 Subject: serialize type question
 
 I have a question: if my serialize type is the type 
 xml(serialize type=xml), my resulted xml file has encoding 
 ISO-8859-1. How can I change this to utf-8? so this is in my sitemap:
 
   map:match pattern=*/*/news/bussines.xml
   map:aggregate element=root label=source
   
map:part element=dasl 
 src=cocoon:/{1}/{2}/documents/search/
 /map:aggregate
 map:transform src=transformers/rss.xsl/
 map:transform type=i18n
   map:parameter name=locale value=en/
 /map:transform
 map:transform src=transformers/stripnamespaces.xsl/
 map:serialize type=xml/
   /map:match
 
 my rss.xsl file starts with ?xml version=1.0 
 encoding=UTF-8? xsl:stylesheet.
 
 still, the resulting bussines.xml file has ?xml 
 version=1.0 encoding=ISO-8859-1 
 ? ...anybody know how can I change it? 10x
 
 
 
 
 
 
  
 __
 __
 It's here! Your new message!  
 Get new email alerts with the free Yahoo! Toolbar.
 http://tools.search.yahoo.com/toolbar/features/mail/
 
 -
 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: serialize type question

2007-07-04 Thread Vaduvoiu Tiberiu
my serializer:

map:serializers default=xml
  map:serializer name=xhtml logger=sitemap.serializer.xml
mime-type=text/html 
src=org.apache.cocoon.serialization.XMLSerializer
omit-xml-declarationyes/omit-xml-declaration 
 doctype-public-//W3C//DTD HTML 4.0 Transitional//EN/doctype-public
 encodingUTF-8/encoding
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
indentno/indent
  /map:serializer

this my serializer..so I have the encoding set to utf-8...but still, my xml 
starts with  ?xml version=1.0 
encoding=ISO-8859-1 ? 

however, I have noticed that in firefox if I right click on the page and click 
view page info it says: encoding - utf-8. it's very wierd

- Original Message 
From: Jasha Joachimsthal [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Wednesday, July 4, 2007 10:01:25 AM
Subject: RE: serialize type question

Hi there,

Did you try

map:serializer logger=sitemap.serializer.xml mime-type=text/xml;
charset=UTF-8 name=xml-utf8
src=org.apache.cocoon.serialization.XMLSerializer
encodingUTF-8/encoding
  /map:serializer 

And then use map:serialize type=xml-utf8/

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl

 -Original Message-
 From: Vaduvoiu Tiberiu [mailto:[EMAIL PROTECTED] 
 Sent: woensdag 4 juli 2007 8:38
 To: users@cocoon.apache.org
 Subject: serialize type question
 
 I have a question: if my serialize type is the type 
 xml(serialize type=xml), my resulted xml file has encoding 
 ISO-8859-1. How can I change this to utf-8? so this is in my sitemap:
 
   map:match pattern=*/*/news/bussines.xml
   map:aggregate element=root label=source
   
map:part element=dasl 
 src=cocoon:/{1}/{2}/documents/search/
 /map:aggregate
 map:transform src=transformers/rss.xsl/
 map:transform type=i18n
   map:parameter name=locale value=en/
 /map:transform
 map:transform src=transformers/stripnamespaces.xsl/
 map:serialize type=xml/
   /map:match
 
 my rss.xsl file starts with ?xml version=1.0 
 encoding=UTF-8? xsl:stylesheet.
 
 still, the resulting bussines.xml file has ?xml 
 version=1.0 encoding=ISO-8859-1 
 ? ...anybody know how can I change it? 10x
 
 
 
 
 
 
  
 __
 __
 It's here! Your new message!  
 Get new email alerts with the free Yahoo! Toolbar.
 http://tools.search.yahoo.com/toolbar/features/mail/
 
 -
 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]






 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



Re: serialize type question

2007-07-04 Thread Grzegorz Kossakowski

Vaduvoiu Tiberiu pisze:

my serializer:

map:serializers default=xml
  map:serializer name=xhtml logger=sitemap.serializer.xml
mime-type=text/html 
src=org.apache.cocoon.serialization.XMLSerializer
omit-xml-declarationyes/omit-xml-declaration 
 doctype-public-//W3C//DTD HTML 4.0 Transitional//EN/doctype-public

 encodingUTF-8/encoding
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
indentno/indent
  /map:serializer

this my serializer..so I have the encoding set to utf-8...but still, my xml starts with  ?xml version=1.0 
encoding=ISO-8859-1 ? 


however, I have noticed that in firefox if I right click on the page and click view 
page info it says: encoding - utf-8. it's very wierd


You have option to omit xml declaration enabled so it's wierd that your xml even starts with ?xml ... ?. I guess that something in between 
adds the declaration anyway and uses default (non-matching) encoding.


I don't know what is wrong exactly but I suggest to look at different issue.

--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

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



RE: serialize type question

2007-07-04 Thread Jeroen Reijn
Hi,
 
have you noticed that you are talking about the XHTML serializer and not the 
XML serializer which is set to UTF-8?
 
Regards,
 
Jeroen Reijn

-Oorspronkelijk bericht- 
Van: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] 
Verzonden: wo 4-7-2007 9:52 
Aan: users@cocoon.apache.org 
CC: 
Onderwerp: Re: serialize type question



Vaduvoiu Tiberiu pisze:
 my serializer:

 map:serializers default=xml
   map:serializer name=xhtml logger=sitemap.serializer.xml
 mime-type=text/html 
src=org.apache.cocoon.serialization.XMLSerializer
 omit-xml-declarationyes/omit-xml-declaration
  doctype-public-//W3C//DTD HTML 4.0 
Transitional//EN/doctype-public
  encodingUTF-8/encoding
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
 indentno/indent
   /map:serializer

 this my serializer..so I have the encoding set to utf-8...but still, 
my xml starts with  ?xml version=1.0
 encoding=ISO-8859-1 ?

 however, I have noticed that in firefox if I right click on the page 
and click view page info it says: encoding - utf-8. it's very wierd

You have option to omit xml declaration enabled so it's wierd that your 
xml even starts with ?xml ... ?. I guess that something in between
adds the declaration anyway and uses default (non-matching) encoding.

I don't know what is wrong exactly but I suggest to look at different 
issue.

--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

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





Re: serialize type question

2007-07-04 Thread Tobia
Vaduvoiu Tiberiu wrote:
 my serializer:

 map:serializer name=xhtml
 ...

Here you are defining a serializer called xhtml.


 I have a question: if my serialize type is the type xml, my resulted
 xml file has encoding ISO-8859-1. How can I change this to utf-8?

 ...
 map:serialize type=xml/

Here you are using a serializer called xml, that is probably defined
in the root sitemap.

They are two different serializers, defined in different places, that do
different things.


Did you try Jasha's suggestion?


Tobia

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



newbie question: benefits vs disadvantages of flowscript?

2007-05-16 Thread Merdes, Matthias
hi,

we are currently in the process of evaluating and/or restructuring an
existing cocoon application. 
being a cocoon beginner i fail to see the benefits of
flowscript/javascript for the controller layer.

of course it is a good practice to have an explict controller layer
(control as in MVC),
BUT: why does it have to be in a scripting language?

imho, this has at least the following drawbacks 
(mostly related to crossing the java-javascript-boundary in eclipse
during development):

-cannot refactor java-javascript
-cannot semantically search for usages of java classes in javascript and
vice versa
-cannot navigate (F3) easily between java-javascript
-cannot easily unit-test the javascript stuff with junit
-cannot debug javascript during run-time in the java debugger
-business logic (or technical framwork-related logic) tends to creeping
into the flowscript 

i would much prefer to do everything in java itself.

so my questions are:
-am i missing anything?
-is there a recommended way to migrate the flowscript to java?
-will this change in cocoon 2.2?

any advice is greatly appreciated.
thanks
matthias



Matthias Merdes 
Senior Software Developer
_

Heidelberg Mobil International GmbH

Phone: +49 6221 533 254
Fax:   +49 6221 533 129

eMail: [EMAIL PROTECTED]

_

Schloss-Wolfsbrunnenweg 33
69118 Heidelberg
Germany

Amtsgericht Mannheim / HRB 701994
CEO: Thomas Reinhart

  

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



Re: newbie question: benefits vs disadvantages of flowscript?

2007-05-16 Thread Baptiste Placé

Hi Matthias,

Although I am no experienced cocoon user, I may change your question by 
the following sentence :
What is missing the current cocoon application ? Does cocoon 2.1.x fill 
the gap ?
You may have to evaluate the cost of using a scripting language, but 
having JS as Flow interpreter is due to the lack of languages supporting 
continuations (correct me if I am wrong).
Benefits of FlowScripts are well explained here : 
http://cocoon.apache.org/2.1/userdocs/flow/index.html


Moreover, JavaFlow exists in cocoon although I never used it. Have a 
look on the apples block in the samples.


Hope this will help.
Baptiste

Merdes, Matthias a écrit :

hi,

we are currently in the process of evaluating and/or restructuring an
existing cocoon application. 
being a cocoon beginner i fail to see the benefits of

flowscript/javascript for the controller layer.

of course it is a good practice to have an explict controller layer
(control as in MVC),
BUT: why does it have to be in a scripting language?

imho, this has at least the following drawbacks 
(mostly related to crossing the java-javascript-boundary in eclipse

during development):

-cannot refactor java-javascript
-cannot semantically search for usages of java classes in javascript and
vice versa
-cannot navigate (F3) easily between java-javascript
-cannot easily unit-test the javascript stuff with junit
-cannot debug javascript during run-time in the java debugger
-business logic (or technical framwork-related logic) tends to creeping
into the flowscript 


i would much prefer to do everything in java itself.

so my questions are:
-am i missing anything?
-is there a recommended way to migrate the flowscript to java?
-will this change in cocoon 2.2?

any advice is greatly appreciated.
thanks
matthias



Matthias Merdes 
Senior Software Developer

_

Heidelberg Mobil International GmbH

Phone: +49 6221 533 254
Fax:   +49 6221 533 129

eMail: [EMAIL PROTECTED]

_

Schloss-Wolfsbrunnenweg 33
69118 Heidelberg
Germany

Amtsgericht Mannheim / HRB 701994
CEO: Thomas Reinhart

  


-
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: newbie question: benefits vs disadvantages of flowscript?

2007-05-16 Thread Alexander Klimetschek

Hi,

just two short answers, as far as I can do that:

Merdes, Matthias schrieb:

-cannot refactor java-javascript
-cannot semantically search for usages of java classes in javascript and
vice versa
-cannot navigate (F3) easily between java-javascript
-cannot easily unit-test the javascript stuff with junit
-cannot debug javascript during run-time in the java debugger
-business logic (or technical framwork-related logic) tends to creeping
into the flowscript 


Yes, one has to try to keep the flowscript code minimized.


-will this change in cocoon 2.2?


No, javascript flowscript is not changing in 2.2.

A general note: if your webapplication tends to be REST-style and uses 
AJAX-requests, having continuations is a bad idea. IMHO flowscript is good 
for multi-page forms, eg. shopping wizards. But in all other cases you 
introduce a session on the server, making your webapplication stateful and 
you have to think about the lifetime of continuations.


Alex

--
Alexander Klimetschek
http://www.mindquarry.com


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



Re: newbie question: benefits vs disadvantages of flowscript?

2007-05-16 Thread Joerg Heinicke

On 16.05.2007 10:51, Merdes, Matthias wrote:


of course it is a good practice to have an explict controller layer
(control as in MVC),
BUT: why does it have to be in a scripting language?



i would much prefer to do everything in java itself.

so my questions are:
-am i missing anything?
-is there a recommended way to migrate the flowscript to java?


Though I have not used it myself there is Javaflow. The actual 
differences or limitations in comparison to flow script can probably be 
best explained by Torsten Curdt. It should at least be scriptable as 
flow script when used in combination with ReloadingClassLoader.


Joerg

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



How to have a Question mark in a URL

2007-05-08 Thread Lincoln Mitchell
Hi all,

I can generating an image with text in it. The text is in the URL an example
here is sometext in the url:
http://www.interfaces-n-creatives.com:/princesspamperparties.com.au/h5_s
ometext.jpg

The problem is the text is dynamic and may include a ?. If this happens
then I get the an error. For example the URL:
http://www.interfaces-n-creatives.com:/princesspamperparties.com.au/h5_s
ometext?.jpg

Notice the ? in sometext?. The resulting error is:

---
Resource not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
princesspamperparties.com.au/h5_sometext
---

There should be a ? after h5_sometext but everything after and including
the ? is removed.

I realize ? are significant in URL's but is there a way to get round this.

More info:
The text need to be in the URL as its matched via the pipeline below which
serializes as svg2jpeg:
map:match pattern=h5_*.jpg
map:generate src=content.xml/
map:transform src=wordml2svgH5.xsl
map:parameter name=image value={1}/
/map:transform
map:serialize type=svg2jpeg/
/map:match

Many thanks for any assistance.

Linc



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



RE: How to have a Question mark in a URL

2007-05-08 Thread Jasha Joachimsthal
The ? Is a separator between the path and request parameters. Just as
the / and  it is not a character you can use in your filename. See
http://en.wikipedia.org/wiki/URI_scheme for more information.

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl

 -Original Message-
 From: Lincoln Mitchell [mailto:[EMAIL PROTECTED] 
 Sent: dinsdag 8 mei 2007 8:22
 To: users@cocoon.apache.org
 Subject: How to have a Question mark in a URL
 
 Hi all,
 
 I can generating an image with text in it. The text is in the 
 URL an example here is sometext in the url:
 http://www.interfaces-n-creatives.com:/princesspamperparti
es.com.au/h5_s
 ometext.jpg
 
 The problem is the text is dynamic and may include a ?. If 
 this happens then I get the an error. For example the URL:
 http://www.interfaces-n-creatives.com:/princesspamperparti
es.com.au/h5_s
 ometext?.jpg
 
 Notice the ? in sometext?. The resulting error is:
 
 ---
 Resource not found
 org.apache.cocoon.ResourceNotFoundException: No pipeline 
 matched request:
 princesspamperparties.com.au/h5_sometext
 ---
 
 There should be a ? after h5_sometext but everything after 
 and including the ? is removed.
 
 I realize ? are significant in URL's but is there a way to 
 get round this.
 
 More info:
 The text need to be in the URL as its matched via the 
 pipeline below which serializes as svg2jpeg:
 map:match pattern=h5_*.jpg
   map:generate src=content.xml/
   map:transform src=wordml2svgH5.xsl
   map:parameter name=image value={1}/
   /map:transform
   map:serialize type=svg2jpeg/
 /map:match
 
 Many thanks for any assistance.
 
 Linc
 
 
 
 -
 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: How to have a Question mark in a URL

2007-05-08 Thread Joerg Heinicke

On 08.05.2007 08:21, Lincoln Mitchell wrote:


I can generating an image with text in it.
The problem is the text is dynamic and may include a ?.



I realize ? are significant in URL's but is there a way to get round this.


The only way I see is to double-URL-encode the generated part of the URL 
and to decode it in the pipeline. Double-encode is necessary since the 
browser will try to decode it - and you'd end up with the same request 
otherwise.


Joerg

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



Re: How to have a Question mark in a URL

2007-05-08 Thread beatejung
Hi,

what do you think about this solution using unicode for ? ?

http://www.interfaces-n-creatives.com:/princesspamperparties.com.au/h5_sometext%3f.jpg

HTH
Beate 

Am Dienstag, 8. Mai 2007 08:21 schrieb Lincoln Mitchell:
 Hi all,

 I can generating an image with text in it. The text is in the URL an
 example here is sometext in the url:
 http://www.interfaces-n-creatives.com:/princesspamperparties.com.au/h5_
s ometext.jpg

 The problem is the text is dynamic and may include a ?. If this happens
 then I get the an error. For example the URL:
 http://www.interfaces-n-creatives.com:/princesspamperparties.com.au/h5_
s ometext?.jpg

 Notice the ? in sometext?. The resulting error is:

 ---
 Resource not found
 org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
 princesspamperparties.com.au/h5_sometext
 ---

 There should be a ? after h5_sometext but everything after and including
 the ? is removed.

 I realize ? are significant in URL's but is there a way to get round
 this.

 More info:
 The text need to be in the URL as its matched via the pipeline below which
 serializes as svg2jpeg:
 map:match pattern=h5_*.jpg
   map:generate src=content.xml/
   map:transform src=wordml2svgH5.xsl
   map:parameter name=image value={1}/
   /map:transform
   map:serialize type=svg2jpeg/
 /map:match

 Many thanks for any assistance.

 Linc



 -
 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: How to have a Question mark in a URL

2007-05-08 Thread Lincoln Mitchell
That's %3f works a treat.

 -Original Message-
 From: beatejung [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 8 May 2007 2:42 PM
 To: users@cocoon.apache.org
 Subject: Re: How to have a Question mark in a URL
 
 Hi,
 
 what do you think about this solution using unicode for ? ?
 
 http://www.interfaces-n-
 creatives.com:/princesspamperparties.com.au/h5_sometext%3f.jpg
 
 HTH
 Beate
 
 Am Dienstag, 8. Mai 2007 08:21 schrieb Lincoln Mitchell:
  Hi all,
 
  I can generating an image with text in it. The text is in the URL an
  example here is sometext in the url:
  http://www.interfaces-n-
 creatives.com:/princesspamperparties.com.au/h5_
 s ometext.jpg
 
  The problem is the text is dynamic and may include a ?. If this
 happens
  then I get the an error. For example the URL:
  http://www.interfaces-n-
 creatives.com:/princesspamperparties.com.au/h5_
 s ometext?.jpg
 
  Notice the ? in sometext?. The resulting error is:
 
  ---
  Resource not found
  org.apache.cocoon.ResourceNotFoundException: No pipeline matched
 request:
  princesspamperparties.com.au/h5_sometext
  ---
 
  There should be a ? after h5_sometext but everything after and
 including
  the ? is removed.
 
  I realize ? are significant in URL's but is there a way to get round
  this.
 
  More info:
  The text need to be in the URL as its matched via the pipeline below
 which
  serializes as svg2jpeg:
  map:match pattern=h5_*.jpg
  map:generate src=content.xml/
  map:transform src=wordml2svgH5.xsl
  map:parameter name=image value={1}/
  /map:transform
  map:serialize type=svg2jpeg/
  /map:match
 
  Many thanks for any assistance.
 
  Linc
 
 
 
  -
  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]



cforms showForm and memory leaks: quick question

2007-05-04 Thread bart remmerie

Dear all,

I'm rewriting some of my cocoon-code and I have the following question that
continues to bother me.

I use flow to show a cform (see code below), and I'm wondering if

I need to terminate each function in flow in a clean way to avoid memory
leaks (after the form.showForm(...) provide some action (redirect the user)

or is it perfectly possible to terminate such a function with the
form.showForm(myform-display-pipeline.jx); (where the user redirects
her/himself using simple hyperlinks) ?

Is there any info available on this topic ?


function showMyForm(){
  var form=new Form(forms/myform_model.xml);
  form.createBinding(forms/myform_bind_bean.xml);
  form.load(myBean);
  form.showForm(myform-display-pipeline.jx);
}

In the past, I used to have a couple of submit widgets which could be used
to redirect the user after completing the form (these were included after
the form.showForm line:

if (form.getWidget().getSubmitWidget().getName().equals(add_record)){
   cocoon.redirectTo(/addNewRecord/);
}//end if
else ...

Thanks
Bart


Re: Question about cocoon 2.2 Dojo integration

2007-05-04 Thread Andrea Giammarchi

http://dojotoolkit.org/developer/dijit/notes/developer

So, I suppose cocoon will 2.2 use last Dojo release (no Base + Dijit),
right?

Thank you

On 5/3/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote:


Andrea Giammarchi napisał(a):
 Hello everybody,
I'm interesting about next cocoon release and its Dojo toolkit
 integration.
 I wonder if there's some official documentation about that and if Dojo
 will be integrated as Dojo.base and Dijit or not.

What kind of integration you are thinking about? What's Dojo.base and
Dijit?

Cocoon 2.2 already uses Dojo 0.4.1 for AJAX handling and utilizes some of
Dojo widgets in Forms.

--
Grzegorz Kossakowski

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




  1   2   3   4   5   6   7   8   9   10   >