Obtaining the objectModel in javascript and flow.

2003-11-04 Thread Joe Latty



There is some documentation that says I can get the 
objectModel using "cocoon.environment.objectModel" however if I use this in my 
_javascript_ I recieve a "The undefined value has no properties." 
message.
 
Joe


RE: problems with identity transformations and namespaces

2003-11-04 Thread Lars Huttar
> -Original Message-
> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2003 7:54 PM
> To: [EMAIL PROTECTED]
> Subject: problems with identity transformations and namespaces
> 
> 
> ugh... more problems since upgrading to 2.1
> 
> Some of my source xml uses a namespace (it's mixed). The prefix is 
> "idf" and my namespace declaration is like this:
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:idf="http://paraliansoftware.com/kompas/idf-1.0";>
> 
> I'm using two stylesheets in a row in my pipeline. If my first style 
> sheet has an identity transformation like:
> 
>match="*|@*|comment()|processing-instruction()|text()">
>   
>select="*|@*|comment()|processing-instruction()|text()"/>
>   
>   
> 
> then I get an error saying:
> 
> Namespace for prefix 'http://paraliansoftware.com/kompas/idf-1.0' has 
> not been declared.
> 
> It looks like it's mistaking the namespace for the prefix. Weird. I 
> specified xalan as the transformer type, thinking it was XSLTC or 
> something, but it's not. This used to work fine in 2.0.4. If I don't 
> use an identity transformer everything is fine.
> 
> any ideas?

Hmm. What does your source XML look like? Is it possible that
the error comes from the prefix declaration there?

If not, I'd try looking at the XML between the two stylesheets
(i.e. the output of the first stylesheet). You can do this using
a view (URL?cocoon-view=raw, for example).

HTH,
Lars


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



problems with identity transformations and namespaces

2003-11-04 Thread Justin Fagnani-Bell
ugh... more problems since upgrading to 2.1

Some of my source xml uses a namespace (it's mixed). The prefix is 
"idf" and my namespace declaration is like this:

http://www.w3.org/1999/XSL/Transform";
xmlns:idf="http://paraliansoftware.com/kompas/idf-1.0";>

I'm using two stylesheets in a row in my pipeline. If my first style 
sheet has an identity transformation like:

	
		
			
		
	

then I get an error saying:

Namespace for prefix 'http://paraliansoftware.com/kompas/idf-1.0' has 
not been declared.

It looks like it's mistaking the namespace for the prefix. Weird. I 
specified xalan as the transformer type, thinking it was XSLTC or 
something, but it's not. This used to work fine in 2.0.4. If I don't 
use an identity transformer everything is fine.

any ideas?

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


RE: How to write Serializer output to a temp file?

2003-11-04 Thread Andrzej Jan Taramina
> Try SourceWritingTransformer from the sitemap or else
> cocoon.processPipelineTo from a flowscript.

Unico:

I decided to bite the bullet and add flowscript to my appit worked 
perfectly!

Thanks for the pointer!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



Re: XSP/ESQL escaping

2003-11-04 Thread Christopher Painter-Wakefield

Yes, it is a pain, isn't it?  XML just doesn't care to know about or deal with whitespace, and that really is a pain when whitespace IS content!

To answer your question, it depends.  If you just have a string (no XML markup in the database), then something like this is the easiest:


        String instring = ;
        java.util.StringTokenizer st = new java.util.StringTokenizer(instring, "\n", true);
        while (st.hasMoreTokens()) {
                String token = st.nextToken();
                if ("\n".equals(token)) {
                        
                } else {
                        token
                }
        }

        

If what is in your database contains XML markup, you'll need to do something more like this (mostly lifted from the ESQL logicsheet):


        String instring = ;
        instring.replaceAll("\n", ">br/>");
        org.apache.cocoon.components.parser.Parser newParser = null;
        try {
                newParser = (org.apache.cocoon.components.parser.Parser)
                        this.manager.lookup(org.apache.cocoon.components.parser.Parser.ROLE);

                InputSource __is = new InputSource(new StringReader(rawXML));
                XSPUtil.include(__is, this.contentHandler, newParser);
        } catch (Exception e) {
                getLogger().error("Could not include page", e);
        } finally {
                if (newParser != null) this.manager.release((Component) newParser);
        }


-Christopher







Anders Forsgren <[EMAIL PROTECTED]>
11/04/2003 05:55 PM
Please respond to users

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: XSP/ESQL escaping


Sigh :(

Feels like a lot of work to make a linebreak a  tag...If I rephrase 
the question: What would be the simplest way
of  displaying the database strings with correct linebreaks in html 
(except using  in the xsl)?

thanks

Anders



Re: Cocoon 2.1.2 on Jboss 4.0.0.DR2

2003-11-04 Thread YKPrajapati
Mike,

That did the trick...things are working great. I also see performance 
improvements in latest version (2.1.2) over 2.1 while webapp deployment.

Thanks a lot. Appreciated your inputs.

-YKP

[EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I got the same error not a week ago but with JBoss 3.2.2 
and Tomcat 4.1.27.

It's the Deli block messing things up. It's totaly unstable 
so if you uncomment the line that says "exclude.block.deli=true"
and recompile you'll be fine...

Good luck!

/Mike

- -Original Message-
From: YKPrajapati [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: Cocoon 2.1.2 on Jboss 4.0.0.DR2

I am trying to deploy the latest release of Cocoon i.e. 2.1.2 as
webapp 
on JBoss 4.0.0.DR2 (built in Tomcat 4.1.24). I get following
exception:

10:10:35,083 ERROR [STDERR] Caused by: 
com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when 
processing .
Input to RDF parser ended prematurely. This is often related to an
XML 
parser abort.
Encountered  Was expecting one of:
   XML ELEMENT CONTENT

   start element rdf:RDF
   start element rdf:Description
   general start element tag
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser.jav
a:2208)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095
)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293)
10:10:35,087 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227)
10:10:35,087 ERROR [STDERR] ... 129 more

Can anybody help me figuring out what's wrong ?

FYI: I was able to deploy Cocoon 2.1 webapp on same JBoss
installation 
successfully.

- -YKP

- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: PGP 8.0.2
iQA/AwUBP6gHUYTNuy8mcLTPEQKURgCfbmttAczvc59z4u4/pWM/dg+xZt0AnjsW
r+gwE9Eytf/7uIHNmSe+vlwo
=bJuX
-END PGP SIGNATURE-
-
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]


Component getting recycled too early!

2003-11-04 Thread Justin Fagnani-Bell
Hey list,

  What causes a component to be recycled? I have a pipeline with an 
Action and Generator that are tightly integrated. I'm trying to get 
them to share a DB access component. The idea is that the Action will 
load it from the component manager, initialize it (mainly setting the 
user to use to access the database), use it to to some DB stuff, then 
put it in the object model so that the Generator can use it.

The problem is that when act() is done the component is recycled, and I 
loose all the initialization.

Is there anyway I can ensure that my Action and Generator use the same 
instance and that it isn't recycled until the Generator is done?

I thought the component manager would act like a garbage collector and 
not recycle the if it's reference count was > 0. I guess not. Can I 
tell the CM to not release the component and then manually release it?

Thanks a lot,
  Justin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: XSP/ESQL escaping

2003-11-04 Thread Anders Forsgren
Sigh :(

Feels like a lot of work to make a linebreak a  tag...If I rephrase 
the question: What would be the simplest way
of  displaying the database strings with correct linebreaks in html 
(except using  in the xsl)?

thanks

Anders




Yes, you cannot use tags inside java strings in this fashion.  When XSP
sees this tag, it tries to insert a whole block of code to output the tag
into the SAX output, which should give you a compilation error.
I'm actually not certain how it is you are able to pass the results of
esql:get-xml into a function call without getting compilation errors.  The
get-xml tag also turns into a whole block of code, not an expression which
can be passed to a function.  What version of Cocoon are you using?  In
C2.0.3, which I am using, you would be unable to do this, and you would be
unable to do substitutions inside the returned XML.  Instead, you'd have to
get the results using get-string, do your substitutions (using < in
place of <), then run the resulting String through an XML parser to get it
into the SAX stream.   (A good example of this is the code that implements
get-xml in the ESQL logicsheet, which is in your cocoon jar file.)
HTH.

-Christopher



|-+>
| |   Anders Forsgren  |
| |   <[EMAIL PROTECTED]|
| |   rmers.com>   |
| ||
| |   11/04/2003 04:31 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
 
>--|
 | 
 |
 |   To:   [EMAIL PROTECTED]   
   |
 |   cc:   
 |
 |   Subject:  Re: XSP/ESQL escaping   
 |
 
>--|




 >Where and how is formatMessage() implemented? That is the code we
really
>need to see, I think.

Thanks for your time

The formatMessage is implemented above the problem in the xsp logic
section, and it (currently) only does this  :

public string formatMessage(String message)
{
return instring.replaceAll("\n", ")
}

the problem area in the xsp, like I said looks like this

formatMessage()
The problem occurs when the xsp:expr contains tags (i.e. if I do the
replace "\n" ---> "foo" , then all is well, but "\n" ---> "" will
not work. )
rgds

Anders

 



   



-
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: Why do I get a java.net.MalformedURLException?

2003-11-04 Thread David Crossley
Joerg Heinicke wrote:
> Jon Bedworth wrote:
> >
> > Please can someone help ...
> > 
> > I have been developing an application on my own server using Cocoon 2.1 
> > and Tomcat. Things work fine.
> > 
> > Yet when I transfer this to a server that is also using Tomcat but a 
> > newer version of Cocoon (version 2.1.2), I get the following error when 
> > I try to access certain pages:
> > 
> > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> > java.net.MalformedURLException: no protocol: XML_entities\ISOnum.ent
> > 
> > which seems to relate to a problem with an entity definition file I have 
> > in a sub-directory (XML_entities).
> > 
> > Has something happened in the newer release to cause this? This entity 
> > file is a standard file, and there is nothing 'malformed' about it that 
> > i can see.
> 
> As far as I know only the Xerces version has changed related to this 
> problem. Maybe you can try to switch back.
> 
> (cc-ing David Crossley, who seems not to be on this list)

(I am a digest subscriber, but only look occasionally.)

Apart from the suggestion from Joerg, i cannot think of anything
changed in Cocoon that might cause this.

Jon, here are a few more comments:

Is the Java version the same on both machines?

The error message is not saying that the file or its contents
are malformed. It is saying that the URL to the file is malformed.

I presume that you are aware that these entity sets are already
provided by the Cocoon core:
http://cocoon.apache.org/2.1/userdocs/concepts/catalog.html

What are you trying to do with ISOnum.ent that you would need
to use a hard-coded URL?

To help further, we would need to know more information:
what you are trying to achieve, the sitemap snippet that
invokes this pipeline, the xml instance that is being processed,
more context from the logfile, etc.

--David





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



RE: problem with caching of jpegs by Internet Explorer

2003-11-04 Thread Conal Tuohy
You could test for access by IE using the browser selector, and serve them the file 
with an explicit expiry in the pipeline:



Cheers

Con

> -Original Message-
> From: jim basilakis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 5 November 2003 11:20 a.m.
> To: [EMAIL PROTECTED]
> Subject: re: problem with caching of jpegs by Internet Explorer 
> 
> 
> Hi,
> 
> I have been creating a web site with Cocoon 2.1.2 that 
> dynamically generates
> jpeg/png images.
> 
> The problem is that when the site is viewed by Internet 
> Explorer, old cached
> images are view and the jpegs/png images do not refresh despite being
> modified from the last access to the site. This can be fixed 
> on the client
> side by selecting on the browser 'Internet Options -> 
> Settings -> Check for
> newer version of stored pages' and changing the setting to 
> 'Every visit to
> the page' instead of 'Automatically' but this is not a good 
> solution if
> others wish to view the page.
> 
> Is there anything I can do in Cocoon to make sure that changes to the
> jpegs/pngs are shown whenever the site is accessed?
> 
> Thanks in advance,
> Jim
> 
> 
> 
> -
> 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]



[WOODY] binding xml of a multiple repeaters inclusion

2003-11-04 Thread Nicolas Maisonneuve



hy ,
- what the xml binding file for this data 
?
 

 
    
[EMAIL PROTECTED]    
        
 Lucien   
             
 
        
 Joris   
           
   
  
 
 
- in the binding repeater definition we must set 
:

unique-row-id 
unique-path 
but when we don"t have a id attribute , how do it ?
 
thanks 
 
nicolas maisonneuve
 

PS : Without the binding i tried to create 
a form with this model of data  (multiple repeater inclusion) and 
it's work  ! 


re: problem with caching of jpegs by Internet Explorer

2003-11-04 Thread jim basilakis
Hi,

I have been creating a web site with Cocoon 2.1.2 that dynamically generates
jpeg/png images.

The problem is that when the site is viewed by Internet Explorer, old cached
images are view and the jpegs/png images do not refresh despite being
modified from the last access to the site. This can be fixed on the client
side by selecting on the browser 'Internet Options -> Settings -> Check for
newer version of stored pages' and changing the setting to 'Every visit to
the page' instead of 'Automatically' but this is not a good solution if
others wish to view the page.

Is there anything I can do in Cocoon to make sure that changes to the
jpegs/pngs are shown whenever the site is accessed?

Thanks in advance,
Jim



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



Re: XSP/ESQL escaping

2003-11-04 Thread Christopher Painter-Wakefield




Yes, you cannot use tags inside java strings in this fashion.  When XSP
sees this tag, it tries to insert a whole block of code to output the tag
into the SAX output, which should give you a compilation error.

I'm actually not certain how it is you are able to pass the results of
esql:get-xml into a function call without getting compilation errors.  The
get-xml tag also turns into a whole block of code, not an expression which
can be passed to a function.  What version of Cocoon are you using?  In
C2.0.3, which I am using, you would be unable to do this, and you would be
unable to do substitutions inside the returned XML.  Instead, you'd have to
get the results using get-string, do your substitutions (using < in
place of <), then run the resulting String through an XML parser to get it
into the SAX stream.   (A good example of this is the code that implements
get-xml in the ESQL logicsheet, which is in your cocoon jar file.)

HTH.

-Christopher




|-+>
| |   Anders Forsgren  |
| |   <[EMAIL PROTECTED]|
| |   rmers.com>   |
| ||
| |   11/04/2003 04:31 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
  |
  |   Subject:  Re: XSP/ESQL escaping  
  |
  
>--|





  >Where and how is formatMessage() implemented? That is the code we
really

 >need to see, I think.


Thanks for your time

The formatMessage is implemented above the problem in the xsp logic
section, and it (currently) only does this  :


public string formatMessage(String message)
{
 return instring.replaceAll("\n", ")
}


the problem area in the xsp, like I said looks like this

formatMessage()

The problem occurs when the xsp:expr contains tags (i.e. if I do the
replace "\n" ---> "foo" , then all is well, but "\n" ---> "" will
not work. )

rgds

Anders

>
>
>
>


-
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: Desing patterns used by Cocoon

2003-11-04 Thread Ugo Cei
Geoff Howard wrote:
Nicolas Maisonneuve wrote:
i would like to know the list of all the design patterns used by 
cocoon (and avalon)












All of the 23 GOF patterns. With a few hundred source files, I' ready to 
bet you can find an instance of every single GOF pattern under 
org.apache.cocoon.*.


	Ugo



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


Re: XSP/ESQL escaping

2003-11-04 Thread Anders Forsgren
 >Where and how is formatMessage() implemented? That is the code we 
really

>need to see, I think.

Thanks for your time

The formatMessage is implemented above the problem in the xsp logic 
section, and it (currently) only does this  :


public string formatMessage(String message)
{
return instring.replaceAll("\n", ")
}

the problem area in the xsp, like I said looks like this

formatMessage()

The problem occurs when the xsp:expr contains tags (i.e. if I do the 
replace "\n" ---> "foo" , then all is well, but "\n" ---> "" will 
not work. )

rgds

Anders







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


Session Transformer

2003-11-04 Thread Mariusz Sieraczkiewicz
sitemap:







xsl ( based on the example from doc):
==
http://www.w3.org/1999/XSL/Transform";
xmlns:req-gen="http://apache.org/cocoon/request/2.0";
xmlns:session="http://apache.org/cocoon/session/1.0";>





 
  
  
  

  

  Carsten

  

  
  

  
Ziegeler
true
  
  
Walter
  

  
  
 



(The template match really takes place, because when I comment
everything between ... then output is OK (without
session tags of course).
Then I get:
===
Original Exception: java.lang.RuntimeException: 
java.lang.RuntimeException: java.util.EmptyStackException
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427)
	at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
	at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:529)
	at 
org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.java:215)
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:532)
	at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
	at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:683)
..
..

Run on Cocoon 2.1, Tomcat 4.0.

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


Re: i18n: how to override locale date format?

2003-11-04 Thread Tomasz Bech
It uses DateFormat.getDateInstance(style, locale). How Java handles the 
locale don't know, but it hadles it correctly: According to Polish rules 
it should be (and IS) -MM-dd.



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


RE: Cocoon 2.1.2 on Jboss 4.0.0.DR2

2003-11-04 Thread Mikael Björn
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I got the same error not a week ago but with JBoss 3.2.2 
and Tomcat 4.1.27.

It's the Deli block messing things up. It's totaly unstable 
so if you uncomment the line that says "exclude.block.deli=true"
and recompile you'll be fine...

Good luck!

/Mike

- -Original Message-
From: YKPrajapati [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: Cocoon 2.1.2 on Jboss 4.0.0.DR2


I am trying to deploy the latest release of Cocoon i.e. 2.1.2 as
webapp 
on JBoss 4.0.0.DR2 (built in Tomcat 4.1.24). I get following
exception:

10:10:35,083 ERROR [STDERR] Caused by: 
com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when 
processing .
Input to RDF parser ended prematurely. This is often related to an
XML 
parser abort.
Encountered  Was expecting one of:
XML ELEMENT CONTENT

start element rdf:RDF
start element rdf:Description
general start element tag

10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser.jav
a:2208)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095
)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293)
10:10:35,087 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227)
10:10:35,087 ERROR [STDERR] ... 129 more

Can anybody help me figuring out what's wrong ?

FYI: I was able to deploy Cocoon 2.1 webapp on same JBoss
installation 
successfully.

- -YKP


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

-BEGIN PGP SIGNATURE-
Version: PGP 8.0.2

iQA/AwUBP6gHUYTNuy8mcLTPEQKURgCfbmttAczvc59z4u4/pWM/dg+xZt0AnjsW
r+gwE9Eytf/7uIHNmSe+vlwo
=bJuX
-END PGP SIGNATURE-


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



Re: XSP/ESQL escaping

2003-11-04 Thread Christopher Painter-Wakefield




Where and how is formatMessage() implemented?  That is the code we really
need to see, I think.

We also use eclipse+tomcat 4+cocoon 2.0.x.  For some classes of error (I'm
not sure which ones), Eclipse suspends the thread for debugging, which
might be causing the timeout you are experiencing.  If you don't get a
response in the expected time, go to the debug perspective and continue and
suspended threads.  That will produce the normal Cocoon error message page
in your browser.  (There might be a way of telling eclipse to ignore those
exceptions, I haven't explored it.)

-Christopher



|-+>
| |   Anders Forsgren  |
| |   <[EMAIL PROTECTED]|
| |   rmers.com>   |
| ||
| |   11/04/2003 02:41 |
| |   PM   |
| |   Please respond to|
| |   users|
| ||
|-+>
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
|
  |   cc:  
  |
  |   Subject:  XSP/ESQL escaping  
  |
  
>--|




Hi

I have a problem with escaping when retrieving database data in an xsp
page. For each row in the resultset, the following xml is generated:


   
   
   formatDate()
   formatMessage()


The formatMessage method will replace all line breaks (\n) with the tag
, however in this context that will give a  an error for some
reason. If I replace the \n's with >br/< etc, then it works, so
it's a document structure error obviously, but I don't see why it should
be?.

Also, which is the best way to develop xsp efficiently? I'm using
eclipse/tomcat4/cocoon2.0 on windows, and with this configuration the
requests time out when there is an error in either the code or structure
of the xsp, not easily debugged. Even the not-so-helpful generated code
error pages would be more helpful, but they only show up on rare occasions.

Thanks for any help

Anders



>


-
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: Desing patterns used by Cocoon

2003-11-04 Thread Geoff Howard
Nicolas Maisonneuve wrote:

i would like to know the list of all the design patterns used by 
cocoon (and avalon)
i know  cocoon use :
- MVC
- Separation of concern
and ?

You will never get such a list without compiling it yourself, if that is 
even possible.  Is this
for a class assignment?  You may find a person here willing to help you 
find evidence of a
few specific patterns, but you are going to have to do the work 
yourself.  There are - to
put it mildly - a lot of different patterns used.



Sure, no problem.  Just send me a list of all the patterns that exist, 
and I'll let you know
which ones Cocoon uses.



Patterns?  We don't need no stinkin' patterns!



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


Re: status of Apple block

2003-11-04 Thread Marc Portier


Joerg Heinicke wrote:
On 04.11.2003 09:40, [EMAIL PROTECTED] wrote:

What is the status of the Apple block?
Is there a Beta version?


In Cocoon we don't have alpha or beta status, they are marked as stable 
or unstable, what refers to interfaces at first.

yep, the implementation has been tested in real life cases and should be 
stable and trustworthy (of course I'm happy to learn about possible bugs)

we can use some more people tossing around with the ideas in there and 
send us some new use cases that maybe push up the need for more 
elaborate API design that e.g. allows for better integration with Woody 
and the like

the API is quite basic ATM, but as you can see from the samples it seems 
to offer already enough to be quite useable (IMHO)

main thing that is lacking ATM is some more detailed docos and/or 
wiki-pages, but again: the samples should get you started


Quote from blocks.properties:


What's the status of the apple block can tell you only one person I 
guess, so I will cc him.

Can you give any status information, Marc?

Joerg
Joerg, thx for forwarding, and to the enterested audience: sorry for 
missing out on this...

regards,
-marc=
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at  http://radio.weblogs.com/0116284/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XSP/ESQL escaping

2003-11-04 Thread Anders Forsgren
Hi

I have a problem with escaping when retrieving database data in an xsp 
page. For each row in the resultset, the following xml is generated:


  
  
  formatDate()
  formatMessage()


The formatMessage method will replace all line breaks (\n) with the tag 
, however in this context that will give a  an error for some 
reason. If I replace the \n's with >br/< etc, then it works, so 
it's a document structure error obviously, but I don't see why it should 
be?.

Also, which is the best way to develop xsp efficiently? I'm using 
eclipse/tomcat4/cocoon2.0 on windows, and with this configuration the 
requests time out when there is an error in either the code or structure 
of the xsp, not easily debugged. Even the not-so-helpful generated code 
error pages would be more helpful, but they only show up on rare occasions.

Thanks for any help

Anders

  




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


xhtml character encoding

2003-11-04 Thread John Morrow
Hi,

I am using cocoon 2.1.2 and I need some help getting the xml serializer 
to behave like the html serializer. I can demostrate the problem using 
the hello-world sample.

If I modify  samples/hello-world/content/hello.xml and insert the code 
½ as follows:


  


  


Hello

 This is my ½ first Cocoon page!


When I access it as hello.html I get
This is my ½ first Cocoon page!
as hello.xhtml I get
This is my ½ first Cocoon page!
I'm not sure the extra char will appear in this email, however viewing 
the page in a browser displays an additional A with a caret in front of 
the half symbol.

I would like to output as xhtml but would prefer the output using the 
text encoding as in the html example.

Is this possible?

Many thanks,
John.


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


Desing patterns used by Cocoon

2003-11-04 Thread Nicolas Maisonneuve



i would like to know the list of all the design 
patterns used by cocoon (and avalon) 
i know  cocoon use :
- MVC
- Separation of concern
and ?


How to update one table while mod-db add to another in same request?

2003-11-04 Thread Bruce Perryman
I have a form from which I can perform several options
each having it's own submit button that passes the
value of the option selected to a sitemap pattern like
the one below.

The behavior that I want from option 3 is to update a
flag in one database table and also perform a modular
db add to another table. Since my cocoon actions are
different (update and mod-db add), I used an xsl for
the table update and an action for the mod-db add. The
db update in the xsl file is not performed but the
mod-db add is performed as desired. In order for the
db update to be performed, I had to remove the
redirects and serialize the output to xml or html. The
xsl file does a simple update table where key field =
"value".

What prohibits the update in the xsl file in
combination with the mod-db add and redirects as
coded? Is there a better way to do this? Can the
desired behavior be achieved without writing my own
action? 

In my sitemap is the following:


   

  


  



  
   


  

   
 
   
   
 
  

  

  
  

  

  



  



  


  



  

 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



[WOODY] convert xsd to form model

2003-11-04 Thread Nicolas Maisonneuve



Is iT theorically possible to convert xsd to woody 
form  (with for example a xsl ) ?


Cocoon 2.1.2 on Jboss 4.0.0.DR2

2003-11-04 Thread YKPrajapati
I am trying to deploy the latest release of Cocoon i.e. 2.1.2 as webapp 
on JBoss 4.0.0.DR2 (built in Tomcat 4.1.24). I get following exception:

10:10:35,083 ERROR [STDERR] Caused by: 
com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when 
processing .
Input to RDF parser ended prematurely. This is often related to an XML 
parser abort.
Encountered  Was expecting one of:
   XML ELEMENT CONTENT

   start element rdf:RDF
   start element rdf:Description
   general start element tag
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser.java:2208)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095)
10:10:35,085 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308)
10:10:35,086 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293)
10:10:35,087 ERROR [STDERR] at 
com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227)
10:10:35,087 ERROR [STDERR] ... 129 more

Can anybody help me figuring out what's wrong ?

FYI: I was able to deploy Cocoon 2.1 webapp on same JBoss installation 
successfully.

-YKP

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


Re: JXForms and Java Action class like in XMLForm

2003-11-04 Thread Ugo Cei
Twan Munster wrote:
I have the same problem. I have to get my old xmlforms working with 
jxforms. When will actions be implemented?
Probably never. The "official" Cocoon forms framework will be based upon 
Woody. See .

	Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Dynamic transformer chains in sitemap?

2003-11-04 Thread Justin Fagnani-Bell
Hello,

  I have a situation where I want to assemble a chain of XSL style 
sheets dynamically. An action in my pipeline knows which stylesheets to 
chain, but I can't figure out how to assemble the chain, short of 
trying to write something like the CocoonTransformerChainBuilderFilter.

All I really need is to chain XSL stylesheets, but I guess it'd be nice 
and more general to Cocoon if I could build a chain of any type of 
transformers.

 --Justin

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


passing session context data

2003-11-04 Thread julien bloit
Hi all,

I have an application in which a non-authenticated user collects a set of
items from a catalog (shopping-cart like), and stores the item list in the
context of the session. I use the session taglib and the session transformer
to do so.

To proceed to the cart command, the user logs in. I use the the
DatabaseAuthenticatorAction to do so. This creates a new session for the
user.

I'm trying to figure out how to pass the shopping-cart context from the
unauthenticated session to the authenticated one. But I have trouble seeing
how it can be done : is the previous session terminated as soon the user
authenticates? How can I track info from another session?

Many thanks for your thoughts!!

These are the concerned parts of my sitemap :

  
  
   


 



   
  
  
  
   



   
  

  
  
   

 
 


   
  
  
  
   

 
  
  
 
   
  





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



Using the context:// protocol in ExcaliburTest

2003-11-04 Thread Andreas Hartmann
Hi Cocoon community,

I want to test some components with an ExcaliburTest
subclass.
Resolving a source using the context:// protocol
does not work - the returned source is not valid.
What can I do to solve this problem?
Thanks in advance!

-- Andreas

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


RE: Cocoon + XSP + ESQL problem

2003-11-04 Thread Lars Huttar
Should  be ?
Just a guess from an XSP newbie.
Lars

-Original Message-
From: HERBUEL Alain (DSIT-EX) [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:43 PM
Subject: Cocoon + XSP + ESQL problem

Hello,
I use Apache Tomcat/4.0.4 + Cocoon 2.0.3
I queries a DB via ODBC, xsp et esql.I would like to group the result on a certain 
tag. My code is
the following.
...


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



Re: problem: JXTemplate Generator

2003-11-04 Thread Christopher Oliver
Try this:

${session.getAttribute("myBean").getUserName()}

The "session" object is of type org.apache.cocoon.environment.Session.

See 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/Session.html.

Chris

Patrick Hess wrote:

Hi!

I'm trying to work this JXTemplate generator but it seems I'm missing 
something...

This is my pipeline:





realms.xml looks like this:

http://apache.org/cocoon/templates/jx/1.0";>

${session.myBean.getUserName()}


${session.myBean.getUserName()}


My result is always something like

...

...
so I guess the expression is substituted (by an empty string).
Then I changed my realms.xml: (taken from cocoon website)
...


The value of greeting is ${greeting}

...
and got

The value of greeting is

Q1) Is this ${session.myBean.getUserName()} correct to get the result
of the getUserName() method in class myBean stored in the session?
Q2) What is wrong with my version using ?

So if anybody can me I would be very happy... :-) Thanks...

Patrick



-
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: Two-pass transformation tutorial needed

2003-11-04 Thread Ralph Goers
If your stylesheet stays the same but different documents needed to be
dynamically included you can write a source resolver and then reference it
as . Your source resolver can
then include different versions of mydocument.xsl based upon whatever
criteria you need. I am doing exactly this to dynamically choose documents
based upon the website name.

Ralph

> -Original Message-
> From: Johannes Becker [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2003 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: Two-pass transformation tutorial needed
> 
> 
> Hi,
> 
> I' looking for a two-pass transformation tutorial for cocoon.
> Why?
> 
> My post on xsl-list:
> __
> _
> 
> My problem is that I have lots of different stylesheets for the 
> main-template (), and I don't 
> want to write 
> millions of different xsl's that differ just in one entry 
> ( href="X"/>).
> Is there an other way to solve this problem?
> 
> my xsl:
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>  select="/document/style"/>
> 
> ...
> 
> ...
> 
> 
> 
> 
> 
> 
> __
> 
> They told me to use two pass transformation. Are there some 
> documented 
> examples for this in cocoon?
> 
> Regards
> Jonny
> 
> _
> FreeSMS abräumen mit dem MSN Messenger - der Countdown läuft! 
> http://messenger-mania.msn.de Jetzt mitmachen und gewinnen!
> 
> 
> -
> 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]



new Sitemap Viewer

2003-11-04 Thread Alten, Jelle Paul (sds-sp)
I put a new version of the Sitemap Viewer in bugzilla: 

http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=8918
 
I think it is getting better. Let me know what you think.

Greetings,

Jelle

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



How to write Serializer output to a temp file?

2003-11-04 Thread Andrzej Jan Taramina
I've been searching the docs and wiki (plus googling), but can't seem to find 
anything on the best way to take the output of a serializer (in my case, PDF 
output) and store that in a temp file, with an auto-generated filename.

Anythingalready out there in the way of actions/transformers/serializers that 
can do this?


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



xsp visual edtior

2003-11-04 Thread jrome
Hi all,

I'm currently working on web interfaces built with and i like to know if
one of you know a XSP graphical editor...

By this way, I mean that it's boring a lot to code every line of your XSP
page, so i like to know if you know a tool that generates XSP code...

Thanks a lot for answering and best regards

Jerome


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



Re: Useful Transfomers? - wsinclude, htmlinclude

2003-11-04 Thread Bertrand Delacretaz
Tony Culshaw wrote:

... These have been running for a while in a stable environment 
(currently 2.1.1) and have been well used.
FYI, I have uploaded your submission to bugzilla so that we don't 
forget about it:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24391

-Bertrand

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


Re: + The Use of JSPGenerator +

2003-11-04 Thread Hassan Abolhassani
Hi,

To be able to use fo2pdf you need to transform your xml to XSL-FO
(http://www.w3.org/TR/xsl/slice6.html#fo-section).

You can of course do this by a xslt tranformation step between you jsp
generator and fo2pdf serialization. Cocoon has a hello world pdf sample that
may help you understand the steps.

Regards,
Hassan

- Original Message - 
From: "pagop Serge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 10:42 PM
Subject: + The Use of JSPGenerator +


> Hi all,
>
> I' am a newbie with cocoon 2.0 and this is my problem :
>
> I have a jsp file and with the JSPGenerator I can generate the
> correspondant xml file and then now come the problem ( I would to use
> the generated xml file to have a pdf file) but  I don't how Can I do to
> have this xml file
> and then use it with the fo2pdf  to have a pdf file.
>
> please when someone an ideal hat reply me as email
>
>
> -
> 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: store file after transformation

2003-11-04 Thread Hassan Abolhassani
You can use two or more transformers in a pipeline.

Are you inserting necessary tags needed for sourcewriter transformer in your
first step transformation. The result of first step transformation should be
something like:


   ...
   http://apache.org/cocoon/source/1.0";>
 context://doc/editable/my.xml
 
 
   Hello World
   
 This is my first paragraph.
   
 
 
   
   ...
 


Inside the  you can have any xml content like 
contents.
(
Detailed explanation:
http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html
)

Anyway please note that pdf files are created in the serialization step, if
you use fop serializer. So in this case, you don't have the pdf content
after first transformation. You can have xsl:fo content instead and write it
to a file using sourcewriter transformation.

If you can explain your use case more clearly, maybe better help can be
provided.

Regards,
Hassan

- Original Message - 
From: "Ulrich, Dominik" <[EMAIL PROTECTED]>
To: "Cocoon Mailing Liste (E-Mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, November 04, 2003 8:58 PM
Subject: store file after transformation


> Hi Everybody
>
> I'new to cocoon but I've got a difficult question, and I would be really
thankful
> if somebody can help me out.
>
> what I'm trying to do is:
> 1. submit a form which tells cocoon which files to include in final
document
> 2. transform this files into another document (xml->pdf)
> 3. write to a file (SourceWritingTransformer)
> 4. display a page like "task complete"
>
> how can I configure the sitemap?
>
> this is an example of my sitemap, I'm not sure, can I use two
transformers?
>
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> sourcewriter
> 
> 
> 
>
> everytime i use this, I'm getting the documt in the browser window and not
on disk
>
> can anybody help me with this? I'using cocoon 2.1.2
>
> thanks!
> ciao
> dominik
>
> -
> 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: JXForms and Java Action class like in XMLForm

2003-11-04 Thread Reinhard Poetz

I'm sorry to say this but I think none of the Cocoon committer will do
it because we concentrate our efforts on Cocoon Forms (aka Woody) which
overcomes many limitations of JXForms/XMLForms. Of course if somebody
provides a patch it will be added to the JXForms block.

After releasing Cocoon Forms we will deprecate JXForms as well - so if
it is possible for you the best way would be switching to Cocoon Forms
(but be aware that a contract stable release will take another few
months from now).

HTH

--
Reinhard


-Original Message-
From: Twan Munster [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 12:50 PM
To: [EMAIL PROTECTED]
Subject: JXForms and Java Action class like in XMLForm


> Hi,
> 
> I have got a question concerning JXForms. My problem as a 
> XMLForm user is that 
> I would not like to use js(javascript) files for the flow 
> control, I would 
> rather prefer the way it was or is in XMLForm. There you 
> create a java class 
> *Action (and a JavaBean Model) as a class. 
> Is there a way of doing creating java classes instead of 
> javascript in JXForm.

No, hasn't been implemented yet. But it shouldn't be too difficult.

Cheers,
Reinhard

Hello,

I have the same problem. I have to get my old xmlforms working with
jxforms. When will actions be implemented? 

thnx 

Twan


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



Re: access session context from flowscript

2003-11-04 Thread Antonio Gallardo
Check in the samples of authentication framework fro Cocoon CVS. I thought
there are example using flow.

Best Regards,

Antonio Gallardo

Markus Heussen dijo:
> Hi everybody,
>
> I need to access the session authentication context created by the
> authentication framework using javascript within flowscript.
>
> Can anybody give some javascript code that does it for me? Or how can I
> use the class XSPSessionHelperFw to do it for me (see below)?
>
>
> public class XSPSessionFwHelper {
> /** GetXML Fragment from the given session context and path
>   *
>   *
>   * @param session The Session object
>   * @param context The Session context tha define where to search *
> @param path The parameter path
>   * @param defaultValue Value to substitute in absence of the
> required
> Fragment
>  **/
>  public static DocumentFragment getXML(ComponentManager cm, String
> context, String path) throws ProcessingException {
>
>  SessionManager sm = null;
>  DocumentFragment df = null;
>
>  try {
>  // Start looking up the manager
>  sm = (SessionManager)cm.lookup(SessionManager.ROLE);
>  // Make our work
>  df = sm.getContextFragment(context, path);
>  if (sm != null) {
>  cm.release((Component)sm);
>  }
>  } catch (ComponentException ce) {
>  throw new ProcessingException("Error during lookup of
> SessionManager component.", ce);
>  } finally {
>  // End releasing the sessionmanager
>cm.release((Component)sm);
>}
>  return df;
>  }
> }
>
> Many thanks, Markus
>
>
>
> - 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]



+ The Use of JSPGenerator +

2003-11-04 Thread pagop Serge
Hi all,

I' am a newbie with cocoon 2.0 and this is my problem :

I have a jsp file and with the JSPGenerator I can generate the 
correspondant xml file and then now come the problem ( I would to use 
the generated xml file to have a pdf file) but  I don't how Can I do to 
have this xml file
and then use it with the fo2pdf  to have a pdf file.

please when someone an ideal hat reply me as email

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


Re: Useful Transfomers? - wsinclude, htmlinclude

2003-11-04 Thread Oleg Dulin
+1 for wsinclude!!!

Tony Culshaw wrote:

Hi,
 
These have been running for a while in a stable environment (currently 
2.1.1) and have been well used.
 
Htmlinclude is similar to the html generator.
 
Wsinclude is a web service transfomer.
 
Code is 'javadoc'ed.
 
If there's any interest, I'll ensure they get updated and supply some 
sample pipelines.
 
 



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


access session context from flowscript

2003-11-04 Thread Markus Heussen
Hi everybody,

I need to access the session authentication context created by the
authentication framework using javascript within flowscript.

Can anybody give some javascript code that does it for me? Or how can I use
the class XSPSessionHelperFw to do it for me (see below)?


public class XSPSessionFwHelper {
/** GetXML Fragment from the given session context and path
  *
  *
  * @param session The Session object
  * @param context The Session context tha define where to search
  * @param path The parameter path
  * @param defaultValue Value to substitute in absence of the required
Fragment
 **/
 public static DocumentFragment getXML(ComponentManager cm, String
context, String path) throws ProcessingException {

 SessionManager sm = null;
 DocumentFragment df = null;

 try {
 // Start looking up the manager
 sm = (SessionManager)cm.lookup(SessionManager.ROLE);
 // Make our work
 df = sm.getContextFragment(context, path);
 if (sm != null) {
 cm.release((Component)sm);
 }
 } catch (ComponentException ce) {
 throw new ProcessingException("Error during lookup of
SessionManager component.", ce);
 } finally {
 // End releasing the sessionmanager
 cm.release((Component)sm);
 }
 return df;
 }
}

Many thanks, Markus



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



store file after transformation

2003-11-04 Thread Ulrich, Dominik
Hi Everybody

I'new to cocoon but I've got a difficult question, and I would be really thankful
if somebody can help me out.

what I'm trying to do is:
1. submit a form which tells cocoon which files to include in final document
2. transform this files into another document (xml->pdf)
3. write to a file (SourceWritingTransformer)
4. display a page like "task complete"

how can I configure the sitemap?

this is an example of my sitemap, I'm not sure, can I use two transformers?





 





sourcewriter


 

everytime i use this, I'm getting the documt in the browser window and not on disk

can anybody help me with this? I'using cocoon 2.1.2

thanks!
ciao
dominik

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



JXForms and Java Action class like in XMLForm

2003-11-04 Thread Twan Munster




> Hi,> > I have got a 
question concerning JXForms. My problem as a > XMLForm user is 
that > I would not like to use js(_javascript_) files for the flow 
> control, I would > rather prefer the way it was or 
is in XMLForm. There you > create a java class > 
*Action (and a JavaBean Model) as a class. > Is there a way of 
doing creating java classes instead of > _javascript_ in 
JXForm.No, hasn't been implemented yet. But it shouldn't be too 
difficult.Cheers,Reinhard
Hello,
 
I have the same problem. I have to get my old 
xmlforms working with jxforms. When will actions be implemented? 
 
thnx 
 
Twan


createSecurityManager

2003-11-04 Thread Flavio Costa

   Hello all,

my new hosting provider has just said that they cannot grant us the
"createSecurityManager" permission, for the environment is shared and this
would compromise the security.

Is there any way to use Cocoon without this permission? Is this permission
really a hazard in a shared environment?

Thanks in advance,

   Flavio Costa




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



problem: JXTemplate Generator

2003-11-04 Thread Patrick Hess
Hi!

I'm trying to work this JXTemplate generator but it seems I'm missing 
something...

This is my pipeline:





realms.xml looks like this:

http://apache.org/cocoon/templates/jx/1.0";>

${session.myBean.getUserName()}


${session.myBean.getUserName()}


My result is always something like

...

...
so I guess the expression is substituted (by an empty string).
Then I changed my realms.xml: (taken from cocoon website)
...


The value of greeting is ${greeting}

...
and got

	The value of greeting is

Q1) Is this ${session.myBean.getUserName()} correct to get the result
of the getUserName() method in class myBean stored in the session?
Q2) What is wrong with my version using ?

So if anybody can me I would be very happy... :-) Thanks...

Patrick



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


Re: Bug in SQL-Transformer ??

2003-11-04 Thread Luca Morandini
T K wrote:

I have posted this question on Friday before, but apparently no one 
seems to know a solution... Therefore I am posting my problem more 
detailed again, for having solved this problem is really important to me.

I'm using Cocoon2.1, JDK 1.4, Oracle9i and Tomcat 4.0.6. (anything left 
out ?)
Try "DB_HP_TST.SP_GET_USER_ID (?, ?, input);" instead (question marks 
used as output parameters' placeholders).

Regards,

---
Luca Morandini   -   GIS Consultant
[EMAIL PROTECTED]
http://xoomer.virgilio.it/ukmorand/
---


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


RE: JXForms vs. Woody vs. KISS

2003-11-04 Thread Bruno Dumon
On Tue, 2003-11-04 at 10:49, [EMAIL PROTECTED] wrote:
> Sorry for my ignorance but what do you mean with "continuations"?

these should help you:

http://cocoon.apache.org/2.1/userdocs/flow/index.html
http://wiki.cocoondev.org/Wiki.jsp?page=WhatIsFlow

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



RE: JXForms vs. Woody vs. KISS

2003-11-04 Thread Sylvain.Thevoz
Sorry for my ignorance but what do you mean with "continuations"?

Regards
Sylvain

> -Message d'origine-
> De: Bruno Dumon [mailto:[EMAIL PROTECTED]
> Date: mardi, 4. novembre 2003 10:41
> À: [EMAIL PROTECTED]
> Objet: RE: JXForms vs. Woody vs. KISS
> 
> 
> On Mon, 2003-11-03 at 15:24, Carmona Perez, David wrote:
> > I think because JavaScript supports continuations and Java no,
> > although the work is in progress (look at the Apple block).
> 
> The apple block doesn't aim at supporting continuations though. (see
> also the pages about generalized flow on the wiki)
> 
> -- 
> Bruno Dumon http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> [EMAIL PROTECTED]  [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: JXForms vs. Woody vs. KISS

2003-11-04 Thread Bruno Dumon
On Mon, 2003-11-03 at 15:24, Carmona Perez, David wrote:
> I think because JavaScript supports continuations and Java no,
> although the work is in progress (look at the Apple block).

The apple block doesn't aim at supporting continuations though. (see
also the pages about generalized flow on the wiki)

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Re: Newbie: Woody Xml Binding and SourceWriter remove CDATA tag and change xml encoding

2003-11-04 Thread Bruno Dumon
On Mon, 2003-11-03 at 16:14, Gianluca Morello wrote:
> Hallo,
> 
> i'm using woody binding for editing some  xml files.
> 
> I notice that the saved xml don't have the CDATA tag anymore.
> Is there a way to mantain the CDATA tag in the output xml?

If the CDATA-containing nodes are being modified by the binding, then
there's not much to do about it (ok, everything can be fixed of course,
but I don't think it's worth the effort). Other nodes containing CDATA
sections should stay intact though.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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



Re: status of Apple block

2003-11-04 Thread Joerg Heinicke
On 04.11.2003 09:40, [EMAIL PROTECTED] wrote:

What is the status of the Apple block?
Is there a Beta version?
In Cocoon we don't have alpha or beta status, they are marked as stable 
or unstable, what refers to interfaces at first.

Quote from blocks.properties:
# unstable blocks are currently under development and do not guarantee 
that the
# contracts they expose (API, xml schema, properties, behavior) will remain
# constant in time. Developers are not committed to back-compatibility 
just yet.
# This doesn't necessarily mean the blocks implementation is unstable or
# the code can't be trusted for production, but use with care and watch
# its development as things might change over time before they are marked
# stable.

What's the status of the apple block can tell you only one person I 
guess, so I will cc him.

Can you give any status information, Marc?

Joerg

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


Re: Two-pass transformation tutorial needed

2003-11-04 Thread Joerg Heinicke
It's a sitemap thing:


  
  
  
  

If you now do in step1 the output independent transformations and in 
step2 the dependent ones (the main template), you should have less 
stylesheets than before.

Joerg

On 04.11.2003 08:21, Johannes Becker wrote:

Hi,

I' looking for a two-pass transformation tutorial for cocoon.
Why?
My post on xsl-list:
___
My problem is that I have lots of different stylesheets for the 
main-template (), and I don't want to 
write millions of different xsl's that differ just in one entry 
().
Is there an other way to solve this problem?

my xsl:

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


...

...






__

They told me to use two pass transformation. Are there some documented 
examples for this in cocoon?

Regards
Jonny


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


Re: Why do I get a java.net.MalformedURLException?

2003-11-04 Thread Joerg Heinicke
On 04.11.2003 06:48, Jon Bedworth wrote:

Hello,

Please can someone help ...

I have been developing an application on my own server using Cocoon 2.1 
and Tomcat. Things work fine.

Yet when I transfer this to a server that is also using Tomcat but a 
newer version of Cocoon (version 2.1.2), I get the following error when 
I try to access certain pages:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.net.MalformedURLException: no protocol: XML_entities\ISOnum.ent

which seems to relate to a problem with an entity definition file I have 
in a sub-directory (XML_entities).

Has something happened in the newer release to cause this? This entity 
file is a standard file, and there is nothing 'malformed' about it that 
i can see.
As far as I know only the Xerces version has changed related to this 
problem. Maybe you can try to switch back.

(cc-ing David Crossley, who seems not to be on this list)

Joerg

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


Re: moving from cocoon 2.1 dev to cocoon 2.1.3 dev

2003-11-04 Thread Joerg Heinicke
On 04.11.2003 06:34, iyy wrote:
We are moving our application from Cocoon 2.1 Dev to Cocoon 2.1.3 Dev.

One xsl statement that worked in Cocoon 2.1 dev causes error in Cocoon 2.1.3 Dev.

   

Seems to be correct indeed. $variable_name is declared I guess?

In the xsl-if , if I used normalize-space then the page fails with the following error: 

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. 



XML document must have a top level element. Error processing resource 
This is an Internet Explorer error message. Try to find the error 
messages server side, i.e. the Cocoon ones.

View source on browser displays empty page.

If I removed the normalize-space, then the page works ok  ie. 
   

Really strange, didn't came across such an error.

As far as I know, xsl syntax is ok. 
Any tips are welcome.
The only difference between 2.1 and the current CVS are the versions of 
Xalan and Xerces. I don't know how old your 2.1 dev is, but 2.1 was 
released with Xalan 2.5.1, now we have 2.5.2, Xerces from 2.4 to 2.5. 
Could be that there are any regression bugs in one of the versions, 
maybe you can switch back. Or do you have updated endorsed dirs?

I suggest to search for an server side error message first and 
afterwards (if this doesn't help) switch to an older version of both 
Xerces and Xalan.

Joerg

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


status of Apple block

2003-11-04 Thread Sylvain.Thevoz
What is the status of the Apple block?
Is there a Beta version?

Thanks
Sylvain

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



RE : [auth-fw] NPE in Application Manager

2003-11-04 Thread Laurent Trillaud

> > But if, in the application, the pipeline associated to the load is
> > started automatically at login, at logout the pipeline associated to
the
> > save isn't triggered.
> Yes, currently. I'm +1 for adding this feature, but there is of course
the
> potential that the user never logs out and simply leaves the site (by
> closing the browser).
> 
> I think - not only to be compatible - we should make this
configurable,
> which means, like the loadOnDemand you can specify a "saveOnLogout"
> attribute and then the application is saved on logout.
> 
> What do you think?
> 
Yes of course I'm +1. It's much much better, but ... I'm not sure to be
able to do it by myself, because I'm still fighting with the auth-fw
that isn't a piece of cake for me.
And I guess that I found another bug: applications declare in an handler
can generate multiple xml roots.
To reproduce this issue, go inside the authentication-fw example add an
application
...

   ...
   
  
 

 
  
   
   ...


The protected page that came after the login shows 2 roots
 and  instead of
/authentication/applications
I run it under the debugger but I haven't found what is wrong!
Laurent Trillaud



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



Re: how to override locale date format?

2003-11-04 Thread Konstantin Piroumian
Date formats used by i18n transformer come from the JDK resource bundles.
Check the i18n samples in Cocoon and switch to Polish translation, there is
a date somewhere at the last line and it should be formatted according to
the selected locale.

In any case, if you want another format then you can use
 to specify the desired date format. But
note that this format will be fixed for all the locales.

Regards,
  Konstantin

From: "Marcin Okraszewski" <[EMAIL PROTECTED]>

> Hi,
> I'm using i18n for localizing date format. It works fine, but I
> don't agree with format for Polish date (-MM-dd and should
> rather be dd.MM.). How can I change it?
>
> Regards,
> Marcin Okraszewski
>
> -
> 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]



Two-pass transformation tutorial needed

2003-11-04 Thread Johannes Becker
Hi,

I' looking for a two-pass transformation tutorial for cocoon.
Why?
My post on xsl-list:
___
My problem is that I have lots of different stylesheets for the 
main-template (), and I don't want to write 
millions of different xsl's that differ just in one entry ().
Is there an other way to solve this problem?

my xsl:

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


...

...






__

They told me to use two pass transformation. Are there some documented 
examples for this in cocoon?

Regards
Jonny
_
FreeSMS abräumen mit dem MSN Messenger - der Countdown läuft! 
http://messenger-mania.msn.de Jetzt mitmachen und gewinnen!

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


Re: moving from cocoon 2.1 dev to cocoon 2.1.3 dev

2003-11-04 Thread Antonio Gallardo
Hi:

Try to switch from xalan to xsltc or inverse.

Best Regards,

Antonio Gallardo




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