document() function and catalog

2004-04-19 Thread David Leangen

Hello, fellow Cocoon enthusiasts!

I am trying to use the document() function to import some data from an
external XML file.

I.e.: xsl:value-of select=document('somefile.xml')/somenode/

At the same time, I am using the catalog to resolve the DTD. However, I
noticed that when using the document() function, the catalog resolver isn't
used, so I actually have to hard code the location of the DTD directly into
somefile.xml.

I.e.:

!DOCTYPE somenode PUBLIC -//Some DTD//EN
some/hardcoded/path/somedtd.dtd

This isn't good...


Am I doing something wrong, or is this by design?


Thanks!

Dave






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



Re: Aggregating Content From Multiple Sources

2004-04-19 Thread Derek Hohls
David

Look for the description of cinclude.
http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html 
and
http://wiki.cocoondev.org/Wiki.jsp?page=CInclude 

Derek

 [EMAIL PROTECTED] 2004/04/19 12:53:48 AM 
I'm looking into a way to generate content from multiple generators at
once after a user request (web) and then merge them together into one
output serializer.  I looked into map:aggregate but the documentation
seems limited and I couldn't find any examples of doing this.

So, specifically, user requests whatever.html and my sitemap is
configured to grab the results of multiple sources from disk:

part1.xml serialized through 1.xsl  becomes foo1.xml
part2.xml serialized through 2.xsl  becomes foo2.xml
part3.xml serialized through 3.xsl  becomes foo3.xml
etc.

and then concatenates foo1.xml + foo2.xml + foo3.xml and that result
can be serialized too if necessary into one final output.  Is this
possible?

Thanks,
David





__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash 

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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



Re: Woody/Cocoon forms questions

2004-04-19 Thread Marc Portier
Sebastian,

[executive summary]
- aggregate works both ways, it is about the form-model, not about 
binding nor templating

- multiform is in my head about controlling the flow between forms. As 
such the correct separation is: let cforms describe one form, let flow 
control the decission to go from one to the other

[aggregate]
the wd:aggregate allows you to centrally describe your form-data-model 
with the validation you have in place.

the decission to visualize and/or bind those values as 'one aggregated 
value' or 'multiple split values' is easy in your template (see either 
example binding/03aggregate or the date-aggregate sample)

equally separated from the model is the decission to bind the value to 
the backend in one fb:value on the level of the aggregate or in 
multiple fb:value on the level of the separate fields

as such 'aggregate' means that the model IS aggregating different split 
parts. I hope you see why we don't need a de-aggregate widget (which was 
suggested in the past) in the model you have the detail available in the 
binding and/or template you choose at which level (combined or split) 
you step in

[multiform]
the multiform issue is AFAICS out of the scope of the form-model which 
is there to describe ONE form, and to manage the lifecycle (validation 
and eventhandling) of that one thing.

That by itself is hard enough as it is. Not (currently) adding to the 
complexity the unpredictable various ways of splitting one form over 
various interactions actually follows up on the fact that modelling your 
form is (also) about describing the valid URI-request-params to your 
form interaction.

In fact you should look at cforms as a convenient way to describe/model 
the form as a single interaction-interface (i.e. the URI-request-params) 
that offers you the extra of useful data-typing, validation rules and 
some (local) event-handling.

In a web-context I truly see this formal interface declaration building 
up something I would call a unit-of-interaction to be something truly 
valuable.  IMHO adding multi-form support here seems to be blurring that 
nice responsibility.

From that angle I think the (current) work on introducing 
widget-repositories will largely simplify building up various forms 
(interaction-units) based on the same set of predefined widgets (see 
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyScratchpad)

What remains then is building up one application by glueing these 
interaction-points together.  I think most of us are just doing that by 
means of flowscript and the fact that there hasn't emerged some more 
abstract format to hook those up as e.g. wizards kinda tells me that 
flowscript by itself is a perfect match for the flexibility you need 
anyway. (that is my feeling)

HTH,
-marc=
Sebastian wrote:
Hi there,

I've following problem. I'm using woody with binding to hibernate.
In my database I've field called NIP (it is polish rate payer
identification number). It has 4 parts separated by '-'. I've written
successfuly validation class for this number and everything works
fine. Now I would like to change the way user can modify this number.
I would like to show 4 edits instead of one and then add '-' between
them, validate NIP and then store it in database. It is exaclty opposite
to wd:aggregatefield which allows to merge several fields into single
edit. My first idea was to create 4 wd:field's but what then? How to
merge them to allow validation on whole string and what is more important
how to merge them to allow binding just to single property?
Any idea? I hope that it is not another unimplemented feature like 
multipage
forms. It will always remains a great mystery for me why XForms and JXForms
were deprecated when Woody is not mature enough to be the only form handler
for Cocoon.

Thanks in advance,
Sebastian Gil
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/mpo/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Aggregating Content From Multiple Sources

2004-04-19 Thread Jan Hoskens
If you want to use aggregation, then do something like:

map:match pattern=whatever.html
map:aggregate element=MyRootElement prefix=MyPrefix
ns=myprefixnamespace
map:part src=Internal/foo1/
map:part src=Internal/foo2/
map:part src=Internal/foo3/
/map:aggregate
map:transform ./
map:serialize/
/map:match

this aggregation alone (without tranforming) results in:

MyPrefix:MyRootElement xmlns:MyPrefix=myprefixnamespace
part1/
part2/
part3/
/MyPrefix:MyRootElement

Prefix and ns isn't required.
You may want to embed each part in an element, use map:part src=..
element=myelement/.
If you want to exclude the rootelement in the parts, use strip-root=true.
I'm assuming you have an internal pipeline that matches the Internal/foo1
and others to provide an xml piece to the aggregator:

map:match pattern=Internal/foo*
map:generate src=part{1}.xml/
map:transform src={1}.xsl/
map:serialize type=xml/
/map:match

You may have better results/more flexibility by using a page with
inclusions. Use XInclude or CInlude tags in a page so that it includes all
three parts and tranform that page:

map:generate src=inclusion.xml/
map:transform type=cinclude / or xinclude
map:serialize/

in the page inclusion.xml:
mypage ...
...
cinclude:include src=foo1/
...
/mypage
(don't forget namespaces for cinclude or xinclude)

Kind Regards,
Jan

- Original Message - 
From: David Swearingen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 19, 2004 12:53 AM
Subject: Aggregating Content From Multiple Sources


 I'm looking into a way to generate content from multiple generators at
 once after a user request (web) and then merge them together into one
 output serializer.  I looked into map:aggregate but the documentation
 seems limited and I couldn't find any examples of doing this.

 So, specifically, user requests whatever.html and my sitemap is
 configured to grab the results of multiple sources from disk:

 part1.xml serialized through 1.xsl  becomes foo1.xml
 part2.xml serialized through 2.xsl  becomes foo2.xml
 part3.xml serialized through 3.xsl  becomes foo3.xml
 etc.

 and then concatenates foo1.xml + foo2.xml + foo3.xml and that result
 can be serialized too if necessary into one final output.  Is this
 possible?

 Thanks,
 David





 __
 Do you Yahoo!?
 Yahoo! Photos: High-quality 4x6 digital prints for 25¢
 http://photos.yahoo.com/ph/print_splash

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



socket write error

2004-04-19 Thread Shivakumar








Hi



Any one knows what this exception when using cocoon transformers.





java.lang.RuntimeException: java.net.SocketException:
Connection reset by peer:

socket write error

 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java

:3231)

 at java.lang.Thread.run(Thread.java:479)

java.lang.RuntimeException: java.net.SocketException:
Connection reset by peer:

socket write error

 at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java

:3231)

 at java.lang.Thread.run(Thread.java:479)







Thanks,



Shivakumar

Welcome Real-Time Pte. Ltd.

Singapore












Re: document() function and catalog

2004-04-19 Thread Yves Vindevogel
I think this is by design from XSLT.
If I'm correct, but please check, you can call the document function with  document('http://.../myfile') and with ('cocoon://')
Then you don't have to hardcode the path

But please check first, not 100% sure.

On 19 Apr 2004, at 08:23, David Leangen wrote:

Hello, fellow Cocoon enthusiasts!

I am trying to use the document() function to import some data from an
external XML file.

I.e.: xsl:value-of select=document('somefile.xml')/somenode/>

At the same time, I am using the catalog to resolve the DTD. However, I
noticed that when using the document() function, the catalog resolver isn't
used, so I actually have to hard code the location of the DTD directly into
somefile.xml.

I.e.:

!DOCTYPE somenode PUBLIC -//Some DTD//EN
some/hardcoded/path/somedtd.dtd>

This isn't good...


Am I doing something wrong, or is this by design?


Thanks!

Dave






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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller


RE: Error occured in FOP while migrating from cocoon 2.0 to 2.1

2004-04-19 Thread Jeroen Reijn
Hi,

as your stacktrace states:

Could not find variable with the name of body.font.family

Did you define your variable correct?


Greetings,

Jeroen



-Original Message-
From: Arun Prasath [mailto:[EMAIL PROTECTED]
Posted At: Monday, April 19, 2004 9:14 AM
Posted To: Cocoon User List
Conversation: Error occured in FOP while migrating from cocoon 2.0 to 2.1
Subject: Error occured in FOP while migrating from cocoon 2.0 to 2.1


I have a xsl file which is working fine in cocoon 2.0. But the same is not working 
when I port it to 2.1

The following error occured

Internal Server Error
Message: Unable to get transformer handler for 
file:/C:/Tools/jakarta-tomcat-5.0.19/webapps/cocoon/test/testxsl.xsl

Description: org.apache.cocoon.ProcessingException: Unable to get transformer handler 
for file:/C:/Tools/jakarta-tomcat-5.0.19/webapps/cocoon/test/testxsl.xsl: 
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform 
Handler

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

request-uri

/cocoon/test/testxsl_test.fo

full exception chain stacktrace

Original Exception: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in 
creating Transform Handler
 at 
org.apache.excalibur.xml.xslt.XSLTProcessorImpl.getTransformerHandlerAndValidity(XSLTProcessorImpl.java:385)
 at 
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:333)
 at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:410)
 at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:652)
 at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:541)
 at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:499)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:155)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:165)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:136)
 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:371)
 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:312)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:165)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:136)
 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:371)
 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:312)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at 

Slow cocoon

2004-04-19 Thread Wojtek
Hello,
I am using cocoon 2.0 and Xindice 1.0 . Sometimes the system rapidly slows
down and does not speed up uless the tomcat is restarted. Is there any
commonly made error? How can I improve my cocoon's performans?

Greetings,
Wojtek



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



Re: Coplets, cl:link - problems with sending and receivingparameters

2004-04-19 Thread Mariusz Wjcik

Thanks it works :




- Original Message - 
From: Philippe Guillard [EMAIL PROTECTED]
To: users cocoon [EMAIL PROTECTED]
Sent: Monday, April 19, 2004 6:00 AM
Subject: Re: Coplets, cl:link - problems with sending and
receivingparameters


 Hi Mario,

 I'm on the same thing without success, looking for a solution two...

 I think you need more configuration to pass the data from cl:link to the
 other coplet, suggest to have a look here :
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg08500.html

 To get the request param in your XSP page i suggest declare
 xmlns:util=http://apache.org/xsp/util/2.0 namespace then use a
 util:get-sitemap-parameter name=MyParameter/

 Hope it helps !

 Phil


 On Mon, 2004-04-19 at 04:31, Mariusz Wojcik wrote:
  Hi I'm using new Cocoon Portal Engine (C. 2.1.4), and I have to send
  parameters between coplets (their context is generated by xsp pages).
 
  I have set coplet attribute in my copletdata portal.xml file:
  
  (coplet data) portal.xml
  
  coplet-data id=Pracownicy name=standard
  .
  attribute
  nameid/name!-- My attribute name--
  value xsi:type=java:java.lang.String
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;Hello/value
  !-- My attribute default value--
  /attribute
  /coplet-data
 
  
 
  In the first xsp file I'm using cl:links commands to reload content,
  and setting id attribute value:
  
  first xsp file
  
  .
  cl:links
   cl:link coplet=Pracownicy-1 path=copletData/attributes/id
  value=New_Value/ !-- setting up id value--
   p
cl:link coplet=Pracownicy-1
   path=copletData/attributes/uri
  value=cocoon:/coplets/xsp/the_other_file.xsp/ !-- content
  reloading--
cl:contentMy Link Content/cl:content
  /p
  /cl:links
  
  
 
  What I should write in the  the_other_file.xsp file to get the id
  parameter value?
 
  
  The other xsp file
  
  
  ???
  
 
  Thanks for help
  Mario
 
 


 -
 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: document() function and catalog

2004-04-19 Thread Joerg Heinicke
On 19.04.2004 08:23, David Leangen wrote:
Hello, fellow Cocoon enthusiasts!

I am trying to use the document() function to import some data from an
external XML file.
I.e.: xsl:value-of select=document('somefile.xml')/somenode/

At the same time, I am using the catalog to resolve the DTD. However, I
noticed that when using the document() function, the catalog resolver isn't
used,
That's true, the document() function does not use the catalogue resolver.

so I actually have to hard code the location of the DTD directly into
somefile.xml.
But I do not understand how this should be related. You wrote above you 
are already using the catalog to resolve the DTD. Why you are forced 
to hard code the path to the DTD?

I.e.:

!DOCTYPE somenode PUBLIC -//Some DTD//EN
some/hardcoded/path/somedtd.dtd
This isn't good...

Am I doing something wrong, or is this by design?
Not that long ago someone else suggested to support the catalogues in 
the document function, but it was not implemented since then. I know 
that Ant supports it. Maybe someone has only to provide a patch :)

Joerg

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


Re: socket write error

2004-04-19 Thread Upayavira
Shivakumar wrote:

Hi

 

Any one knows what this exception when using cocoon transformers.

 

 

Where do you see this error? In the logs? If so, it is because the 
client terminated the download of the page before Cocoon had finished 
generating the page.

Upayavira

java.lang.RuntimeException: java.net.SocketException: Connection reset 
by peer:

socket write error

at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java

:3231)

at java.lang.Thread.run(Thread.java:479)

java.lang.RuntimeException: java.net.SocketException: Connection reset 
by peer:

socket write error

at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java

:3231)

at java.lang.Thread.run(Thread.java:479)

 

 

 

Thanks,

 

Shivakumar

Welcome Real-Time Pte. Ltd.

Singapore

 

 



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


Storing XML documents

2004-04-19 Thread bremerj
Dear users,

I would like to store a document produced by a transformer. This could
be in an XML database, but this option looks rather complex. Or just as
a flat file.

Could anybody give me a hint?

Thanks,

Joseph BREMER


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



RE: Storing XML documents

2004-04-19 Thread Jeroen Reijn
Hi Joseph,

you could use the Source Writing Transformer after your own transformer 

http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html

or from a flowscript. It depends on what your purpose with the file is.

Greetz,

Jeroen

-Original Message-
From: bremerj [mailto:[EMAIL PROTECTED]
Posted At: Monday, April 19, 2004 11:27 AM
Posted To: Cocoon User List
Conversation: Storing XML documents
Subject: Storing XML documents


Dear users,

I would like to store a document produced by a transformer. This could
be in an XML database, but this option looks rather complex. Or just as
a flat file.

Could anybody give me a hint?

Thanks,

Joseph BREMER


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



How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread yangontha Maung
Hi,

I am using cocoon 2.1.4 on Red Hat Linux Server using
Tomcat 4.0.17.

When I start the cocoon using
./cocoon.sh servlet
There will be a few messages come out and the cocoon
will be running. It is normal. But the starting
command line screen hangs there and I have to use Ctrl
C to shut down the cocoon server.

How can I just give the starting command and make the
screen back to normal command prompt, so that I can
carry on to use it for others?

Below is the messages

(Also I cannot use the SHUTDOWN message to stop.. as
mentioned there..)

rgds,




[EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet
./cocoon.sh: using /usr/local/cocoon/build/webapp as
the webapp directory
 Loading 
Processing repository:
/usr/local/cocoon/tools/jetty/lib
Adding jar:
/usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
Adding jar:
/usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
Processing repository: /usr/local/cocoon/lib/endorsed
Adding jar:
/usr/local/cocoon/lib/endorsed/xalan-2.5.2.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xercesImpl-2.6.1.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xml-apis.jar
 Executing -
Main Class: org.mortbay.jetty.Server
18:20:27.972 EVENT  Checking Resource aliases
18:20:28.376 EVENT  Starting Jetty/4.2.14
18:20:28.904 EVENT  Started
WebApplicationContext[/,/usr/local/cocoon/build/weba
pp]
 INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
 WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
 INFO [main] (Database.java:331) - Database points to
/usr/local/cocoon-2.1.4/db
 INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
 WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
server.properties not found, using command line or
default properties
Opening database:
/usr/local/cocoon-2.1.4/build/webapp/WEB-INF/db/cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly
context: /usr/local/cocoon-2.1.4/build/webapp
 INFO [main] (DirectSchedulerFactory.java:295) -
Quartz scheduler 'Cocoon
 INFO [main] (DirectSchedulerFactory.java:298) -
Quartz scheduler version: 1.2.3
 INFO [main] (QuartzScheduler.java:327) - Scheduler
Cocoon_$_Sat_Apr_17_18:20:36
_SGT_2004 started.
Sat Apr 17 18:20:37 SGT 2004 Listening for connections
...
WARN! *** JMS block is installed but jms client
library not found. ***
- For the jms block to work you must install and start
a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in
cocoon.xconf but is not bundled w
ith Cocoon.
18:20:37.405 EVENT  Started SocketListener on
0.0.0.0:
18:20:37.406 EVENT  Started
[EMAIL PROTECTED]







__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

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



Re: How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread Upayavira
yangontha Maung wrote:

Hi,

I am using cocoon 2.1.4 on Red Hat Linux Server using
Tomcat 4.0.17.
 

You're not using Tomcat, you're using the Jetty built into Cocoon.

This built in Jetty is intended for testing/evaluation, not for deployment.

If you want to start this version in the background, while learning, try 
just adding a  to the end of the command:

./cocoon.sh servlet 

You'll still get the stuff going to the screen, but you'll get your 
command prompt back.

Or:
./cocoon.sh servlet  cocoon.log 
so that the screen stuff goes to a log file.

Then, to see the contents of the log file, do:

tail -f cocoon.log

CTRL_C will get you out of that.

This is all Unix stuff really.

When you come to deploy your site, you're going to have to work out how 
to deploy Cocoon within a proper servlet container, either Tomcat, or 
the full Jetty distribution.

Regards, Upayavira

When I start the cocoon using
./cocoon.sh servlet
There will be a few messages come out and the cocoon
will be running. It is normal. But the starting
command line screen hangs there and I have to use Ctrl
C to shut down the cocoon server.
How can I just give the starting command and make the
screen back to normal command prompt, so that I can
carry on to use it for others?
Below is the messages

(Also I cannot use the SHUTDOWN message to stop.. as
mentioned there..)
rgds,



[EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet
./cocoon.sh: using /usr/local/cocoon/build/webapp as
the webapp directory
 Loading 
Processing repository:
/usr/local/cocoon/tools/jetty/lib
Adding jar:
/usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
Adding jar:
/usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
Processing repository: /usr/local/cocoon/lib/endorsed
Adding jar:
/usr/local/cocoon/lib/endorsed/xalan-2.5.2.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xercesImpl-2.6.1.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xml-apis.jar
 Executing -
Main Class: org.mortbay.jetty.Server
18:20:27.972 EVENT  Checking Resource aliases
18:20:28.376 EVENT  Starting Jetty/4.2.14
18:20:28.904 EVENT  Started
WebApplicationContext[/,/usr/local/cocoon/build/weba
pp]
INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
INFO [main] (Database.java:331) - Database points to
/usr/local/cocoon-2.1.4/db
INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
server.properties not found, using command line or
default properties
Opening database:
/usr/local/cocoon-2.1.4/build/webapp/WEB-INF/db/cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly
context: /usr/local/cocoon-2.1.4/build/webapp
INFO [main] (DirectSchedulerFactory.java:295) -
Quartz scheduler 'Cocoon
INFO [main] (DirectSchedulerFactory.java:298) -
Quartz scheduler version: 1.2.3
INFO [main] (QuartzScheduler.java:327) - Scheduler
Cocoon_$_Sat_Apr_17_18:20:36
_SGT_2004 started.
Sat Apr 17 18:20:37 SGT 2004 Listening for connections
...
WARN! *** JMS block is installed but jms client
library not found. ***
- For the jms block to work you must install and start
a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in
cocoon.xconf but is not bundled w
ith Cocoon.
18:20:37.405 EVENT  Started SocketListener on
0.0.0.0:
18:20:37.406 EVENT  Started
[EMAIL PROTECTED]






__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
-
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: Trying to get a selectionlist label into a binding

2004-04-19 Thread Nacho Jimenez
Joerg Heinicke wrote:

On 16.04.2004 16:46, Nacho Jimenez wrote:

The selection list is another dimension of a field and no value in the 
closer sense. So it's normally not bound to the field. The value of 
this field is only the selected value at the end.

So the normal way is setting the selection list via
wd:selection-list src=cocoon:/users/
which calls another pipeline. In this pipeline you transform your 
custom XML to the wd:item syntax.

As already said you already bound the selected value of the field. And 
this happens via a standard
wb:value id=user path=where-ever-you-want-to-store-it/

Is this what you want?

Joerg


   It seems I'm not explaining the problem clearly.. Sorry.  Let's see 
if I can make myself clear this third time using a simple example...

   I've already populated my field widget with a list of elements, and 
I can do the normal binding like you are proposing.. the thing is, i 
want to bind BOTH the selected value and the selected label into the 
destination XML.. 

   For Example: Imagine you have a list of countries in your form, so 
the user can choose his address... In the form, the countries appear as 
a selection list with the names of the countries (say Germany, 
Spain, United Kingdom, and so on), and their country code as value 
(de, es, uk..) .

   I have  populated the list, and i  have binded  the value as 
country id='es'/, but what I want is to bind it as country 
id='es'Spain/country. As there's no an out-of-the-box binding 
command that gives me the selection list selected value's label, I have 
to use the javascript binding command, and access the widget object, but 
I do not know where in that object is that stored..

   I hope you understand now...

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


Re: How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread yangontha Maung
Hi,

Thanks for your guidance.

But I have tried this
./cocoon.sh servlet 

But it is still listening for something and the
command prompt did not come back.

At the same time, I would like to ask another thing.
All along I thought that I am running cocoon over
Tomcat. Could you guide me where I can learn on how to
run for production on Tomcat?

thanks,

Here is the message after using ...


[EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet 
[1] 3570
./cocoon.sh: using /usr/local/cocoon/build/webapp as
the webapp directory
[EMAIL PROTECTED] cocoon]#  Loading

Processing repository:
/usr/local/cocoon/tools/jetty/lib
Adding jar:
/usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
Adding jar:
/usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
Processing repository: /usr/local/cocoon/lib/endorsed
Adding jar:
/usr/local/cocoon/lib/endorsed/xalan-2.5.2.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xercesImpl-2.6.1.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xml-apis.jar
 Executing -
Main Class: org.mortbay.jetty.Server
18:52:57.382 EVENT  Checking Resource aliases
18:52:58.134 EVENT  Starting Jetty/4.2.14
18:52:59.038 EVENT  Started
WebApplicationContext[/,/usr/local/cocoon/build/weba
pp]
 INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
 WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
 INFO [main] (Database.java:331) - Database points to
/usr/local/cocoon-2.1.4/db
 INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
 WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
server.properties not found, using command line or
default properties
Opening database:
/usr/local/cocoon-2.1.4/build/webapp/WEB-INF/db/cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly
context: /usr/local/cocoon-2.1.4/build/webapp
 INFO [main] (DirectSchedulerFactory.java:295) -
Quartz scheduler 'Cocoon
 INFO [main] (DirectSchedulerFactory.java:298) -
Quartz scheduler version: 1.2.3
 INFO [main] (QuartzScheduler.java:327) - Scheduler
Cocoon_$_Sat_Apr_17_18:53:09
_SGT_2004 started.
WARN! *** JMS block is installed but jms client
library not found. ***
- For the jms block to work you must install and start
a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in
cocoon.xconf but is not bundled w
ith Cocoon.
18:53:09.776 EVENT  Started SocketListener on
0.0.0.0:
18:53:09.777 EVENT  Started
[EMAIL PROTECTED]
Sat Apr 17 18:53:10 SGT 2004 Listening for connections
...


+
--- Upayavira [EMAIL PROTECTED] wrote:
 yangontha Maung wrote:
 
 Hi,
 
 I am using cocoon 2.1.4 on Red Hat Linux Server
 using
 Tomcat 4.0.17.
   
 
 You're not using Tomcat, you're using the Jetty
 built into Cocoon.
 
 This built in Jetty is intended for
 testing/evaluation, not for deployment.
 
 If you want to start this version in the background,
 while learning, try 
 just adding a  to the end of the command:
 
 ./cocoon.sh servlet 
 
 You'll still get the stuff going to the screen, but
 you'll get your 
 command prompt back.
 
 Or:
 ./cocoon.sh servlet  cocoon.log 
 
 so that the screen stuff goes to a log file.
 
 Then, to see the contents of the log file, do:
 
 tail -f cocoon.log
 
 CTRL_C will get you out of that.
 
 This is all Unix stuff really.
 
 When you come to deploy your site, you're going to
 have to work out how 
 to deploy Cocoon within a proper servlet container,
 either Tomcat, or 
 the full Jetty distribution.
 
 Regards, Upayavira
 
 When I start the cocoon using
 ./cocoon.sh servlet
 There will be a few messages come out and the
 cocoon
 will be running. It is normal. But the starting
 command line screen hangs there and I have to use
 Ctrl
 C to shut down the cocoon server.
 
 How can I just give the starting command and make
 the
 screen back to normal command prompt, so that I can
 carry on to use it for others?
 
 Below is the messages
 
 (Also I cannot use the SHUTDOWN message to stop..
 as
 mentioned there..)
 
 rgds,
 
 
 
 
 [EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet
 ./cocoon.sh: using /usr/local/cocoon/build/webapp
 as
 the webapp directory
  Loading 
 Processing repository:
 /usr/local/cocoon/tools/jetty/lib
 Adding jar:
 /usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
 Adding jar:
 /usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
 Processing repository:
 /usr/local/cocoon/lib/endorsed
 

Re: Hibernate, Woody and repeaters

2004-04-19 Thread Marc Portier
Enjoy those beers dudes!

-marc=



Joel McConaughy wrote:

You're on!  The beer fridge is stocked...
 
Thanks for the help.
 
snip/

 
-Original Message-
*From:* Mark Lundquist [mailto:[EMAIL PROTECTED]

P.S. One gets so used to corresponding with people all over the
world on these lists, so when I saw that you're in Seattle, it felt
like we're practically neighbors (I'm in Portland)... tell you
what, forget the email, I'll hop on I-5 and come up and just come up
and /look/ at your code... :-)
--
Marc Portierhttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/mpo/
[EMAIL PROTECTED]  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread Upayavira
yangontha Maung wrote:

Hi,

Thanks for your guidance.

But I have tried this
./cocoon.sh servlet 
But it is still listening for something and the
command prompt did not come back.
 

Ah, it does. But you've also got your output showing too. You can still 
type commands amidst the flow of Cocoon messages.

That's why I suggested ./cocoon.sh servlet  cocoon.log 

That way, all output goes to a file, and you can still use your console 
without the interference of Cocoon's messages.

At the same time, I would like to ask another thing.
All along I thought that I am running cocoon over
Tomcat. Could you guide me where I can learn on how to
run for production on Tomcat?
 

Look at http://cocoon.apache.org/2.1/installing/index.html

Regards, Upayavira

thanks,

Here is the message after using ...

[EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet 
[1] 3570
./cocoon.sh: using /usr/local/cocoon/build/webapp as
the webapp directory
[EMAIL PROTECTED] cocoon]#  Loading

Processing repository:
/usr/local/cocoon/tools/jetty/lib
Adding jar:
/usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
Adding jar:
/usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
Processing repository: /usr/local/cocoon/lib/endorsed
Adding jar:
/usr/local/cocoon/lib/endorsed/xalan-2.5.2.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xercesImpl-2.6.1.jar
Adding jar:
/usr/local/cocoon/lib/endorsed/xml-apis.jar
 Executing -
Main Class: org.mortbay.jetty.Server
18:52:57.382 EVENT  Checking Resource aliases
18:52:58.134 EVENT  Starting Jetty/4.2.14
18:52:59.038 EVENT  Started
WebApplicationContext[/,/usr/local/cocoon/build/weba
pp]
INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
INFO [main] (Database.java:331) - Database points to
/usr/local/cocoon-2.1.4/db
INFO [main] (DatabaseImpl.java:183) - No
configuration file specified, going wi
th the default configuration
WARN [main] (DatabaseImpl.java:210) - The database
configuration file is not sp
ecified and there was no xindice.db.home property set,
so Xindice was unable to
determine a database location. Database will be
created relative to the current
directory.
server.properties not found, using command line or
default properties
Opening database:
/usr/local/cocoon-2.1.4/build/webapp/WEB-INF/db/cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
abort abruptly
context: /usr/local/cocoon-2.1.4/build/webapp
INFO [main] (DirectSchedulerFactory.java:295) -
Quartz scheduler 'Cocoon
INFO [main] (DirectSchedulerFactory.java:298) -
Quartz scheduler version: 1.2.3
INFO [main] (QuartzScheduler.java:327) - Scheduler
Cocoon_$_Sat_Apr_17_18:53:09
_SGT_2004 started.
WARN! *** JMS block is installed but jms client
library not found. ***
- For the jms block to work you must install and start
a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in
cocoon.xconf but is not bundled w
ith Cocoon.
18:53:09.776 EVENT  Started SocketListener on
0.0.0.0:
18:53:09.777 EVENT  Started
[EMAIL PROTECTED]
Sat Apr 17 18:53:10 SGT 2004 Listening for connections
...
+
--- Upayavira [EMAIL PROTECTED] wrote:
 

yangontha Maung wrote:

   

Hi,

I am using cocoon 2.1.4 on Red Hat Linux Server
 

using
   

Tomcat 4.0.17.

 

You're not using Tomcat, you're using the Jetty
built into Cocoon.
This built in Jetty is intended for
testing/evaluation, not for deployment.
If you want to start this version in the background,
while learning, try 
just adding a  to the end of the command:

./cocoon.sh servlet 

You'll still get the stuff going to the screen, but
you'll get your 
command prompt back.

Or:
./cocoon.sh servlet  cocoon.log 
so that the screen stuff goes to a log file.

Then, to see the contents of the log file, do:

tail -f cocoon.log

CTRL_C will get you out of that.

This is all Unix stuff really.

When you come to deploy your site, you're going to
have to work out how 
to deploy Cocoon within a proper servlet container,
either Tomcat, or 
the full Jetty distribution.

Regards, Upayavira

   

When I start the cocoon using
./cocoon.sh servlet
There will be a few messages come out and the
 

cocoon
   

will be running. It is normal. But the starting
command line screen hangs there and I have to use
 

Ctrl
   

C to shut down the cocoon server.

How can I just give the starting command and make
 

the
   

screen back to normal command prompt, so that I can
carry on to use it for others?
Below is the messages

(Also I cannot use the SHUTDOWN message to stop..
 

as
   

mentioned there..)

rgds,



[EMAIL PROTECTED] 

Anyone using Cocoon 2.1.x in an educational environment ?

2004-04-19 Thread Sandor Spruit
Hi,

I'm looking for other people working with Cocoon in an educational 
environment (university, professional education). An important part
of my work will be to create lab assignments for students, explain
all sorts of Cocoon stuff, perhaps set-up experiments of all sorts.
I'd be willing to share materials with others in similar settings,
say: code, stylesheets, examples, slides, diagrams etc.

Regards,
Sandor
--
NEW! master programme 'Content and Knowledge Engineering'
see: http://www.informationscience.nl/
Personal coordinates: http://www.cs.uu.nl/people/sandor/
Our minds are harnessed by knowledge, by the hill and the will
to succeed. From: Fish, Vigil in a wilderness of mirrors
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread yangontha Maung
Hi,

I got your point. Thanks.

And I will continue to read the installation notes.


thanks  rgds,


--- Upayavira [EMAIL PROTECTED] wrote:
 yangontha Maung wrote:
 
 Hi,
 
 Thanks for your guidance.
 
 But I have tried this
 ./cocoon.sh servlet 
 
 But it is still listening for something and the
 command prompt did not come back.
   
 
 Ah, it does. But you've also got your output showing
 too. You can still 
 type commands amidst the flow of Cocoon messages.
 
 That's why I suggested ./cocoon.sh servlet 
 cocoon.log 
 
 That way, all output goes to a file, and you can
 still use your console 
 without the interference of Cocoon's messages.
 
 At the same time, I would like to ask another
 thing.
 All along I thought that I am running cocoon over
 Tomcat. Could you guide me where I can learn on how
 to
 run for production on Tomcat?
   
 
 Look at
 http://cocoon.apache.org/2.1/installing/index.html
 
 Regards, Upayavira
 
 thanks,
 
 Here is the message after using ...
 
 
 [EMAIL PROTECTED] cocoon]# ./cocoon.sh servlet 
 [1] 3570
 ./cocoon.sh: using /usr/local/cocoon/build/webapp
 as
 the webapp directory
 [EMAIL PROTECTED] cocoon]#  Loading
 
 Processing repository:
 /usr/local/cocoon/tools/jetty/lib
 Adding jar:
 /usr/local/cocoon/tools/jetty/lib/jetty-4.2.14.jar
 Adding jar:
 /usr/local/cocoon/tools/jetty/lib/servlet-2.3.jar
 Processing repository:
 /usr/local/cocoon/lib/endorsed
 Adding jar:
 /usr/local/cocoon/lib/endorsed/xalan-2.5.2.jar
 Adding jar:
 /usr/local/cocoon/lib/endorsed/xercesImpl-2.6.1.jar
 Adding jar:
 /usr/local/cocoon/lib/endorsed/xml-apis.jar
  Executing -
 Main Class: org.mortbay.jetty.Server
 18:52:57.382 EVENT  Checking Resource aliases
 18:52:58.134 EVENT  Starting Jetty/4.2.14
 18:52:59.038 EVENT  Started

WebApplicationContext[/,/usr/local/cocoon/build/weba
 pp]
  INFO [main] (DatabaseImpl.java:183) - No
 configuration file specified, going wi
 th the default configuration
  WARN [main] (DatabaseImpl.java:210) - The database
 configuration file is not sp
 ecified and there was no xindice.db.home property
 set,
 so Xindice was unable to
 determine a database location. Database will be
 created relative to the current
 directory.
  INFO [main] (Database.java:331) - Database points
 to
 /usr/local/cocoon-2.1.4/db
  INFO [main] (DatabaseImpl.java:183) - No
 configuration file specified, going wi
 th the default configuration
  WARN [main] (DatabaseImpl.java:210) - The database
 configuration file is not sp
 ecified and there was no xindice.db.home property
 set,
 so Xindice was unable to
 determine a database location. Database will be
 created relative to the current
 directory.
 server.properties not found, using command line or
 default properties
 Opening database:

/usr/local/cocoon-2.1.4/build/webapp/WEB-INF/db/cocoondb
 HSQLDB server 1.7.1 is running
 Use SHUTDOWN to close normally. Use [Ctrl]+[C] to
 abort abruptly
 context: /usr/local/cocoon-2.1.4/build/webapp
  INFO [main] (DirectSchedulerFactory.java:295) -
 Quartz scheduler 'Cocoon
  INFO [main] (DirectSchedulerFactory.java:298) -
 Quartz scheduler version: 1.2.3
  INFO [main] (QuartzScheduler.java:327) - Scheduler
 Cocoon_$_Sat_Apr_17_18:53:09
 _SGT_2004 started.
 WARN! *** JMS block is installed but jms client
 library not found. ***
 - For the jms block to work you must install and
 start
 a JMS server and place th
 e client jar in WEB-INF/lib.
 - The default server, OpenJMS is configured in
 cocoon.xconf but is not bundled w
 ith Cocoon.
 18:53:09.776 EVENT  Started SocketListener on
 0.0.0.0:
 18:53:09.777 EVENT  Started
 [EMAIL PROTECTED]
 Sat Apr 17 18:53:10 SGT 2004 Listening for
 connections
 ...
 
 
 +
 --- Upayavira [EMAIL PROTECTED] wrote:
   
 
 yangontha Maung wrote:
 
 
 
 Hi,
 
 I am using cocoon 2.1.4 on Red Hat Linux Server
   
 
 using
 
 
 Tomcat 4.0.17.
  
 
   
 
 You're not using Tomcat, you're using the Jetty
 built into Cocoon.
 
 This built in Jetty is intended for
 testing/evaluation, not for deployment.
 
 If you want to start this version in the
 background,
 while learning, try 
 just adding a  to the end of the command:
 
 ./cocoon.sh servlet 
 
 You'll still get the stuff going to the screen,
 but
 you'll get your 
 command prompt back.
 
 Or:
 ./cocoon.sh servlet  cocoon.log 
 
 so that the screen stuff goes to a log file.
 
 Then, to see the contents of the log file, do:
 
 tail -f cocoon.log
 
 CTRL_C will get you out of that.
 
 This is all Unix stuff really.
 
 When you come to deploy your site, you're going to
 have to work out how 
 to deploy Cocoon within a proper servlet
 container,
 either Tomcat, or 
 the full Jetty distribution.
 
 Regards, Upayavira
 
 
 
 When I start the cocoon using
 ./cocoon.sh servlet
 There will be a few messages come out and the
   
 
 cocoon
 
 
 will be running. It is normal. But the starting
 command line screen hangs 

Re: Woody/Cocoon forms questions

2004-04-19 Thread Sebastian
Thanks all for your reply and sorry for the mess I did :)

Marc Portier napisa(a):

 [executive summary]
 - aggregate works both ways, it is about the form-model, not about
 binding nor templating

I though so at the begining, because it seams to be natural for me.
I just encountered a problem and then looked at wiki and what I've found
is aggregatefield widget - used to edit the value of multiple fields through
one textbox. I think that someone should change this because it leads to
missunderstanding.

 - multiform is in my head about controlling the flow between forms. As
 such the correct separation is: let cforms describe one form, let flow
 control the decission to go from one to the other

But this approach doesn't allow me to go back between forms. Or maybe
I don't know something then please clarify that.

 [aggregate]
 the wd:aggregate allows you to centrally describe your form-data-model
 with the validation you have in place.

 the decission to visualize and/or bind those values as 'one aggregated
 value' or 'multiple split values' is easy in your template (see either
 example binding/03aggregate or the date-aggregate sample)

Hmm. I cannot find that in 2.1.4. Currently I'm downloading nightly snapshot
to check if it's availiable there. Thanks for pointing me.

 equally separated from the model is the decission to bind the value to
 the backend in one fb:value on the level of the aggregate or in
 multiple fb:value on the level of the separate fields

 as such 'aggregate' means that the model IS aggregating different split
 parts. I hope you see why we don't need a de-aggregate widget (which was
 suggested in the past) in the model you have the detail available in the
 binding and/or template you choose at which level (combined or split)
 you step in

It is clear. As I mentioned above for me this approach is natural.
I was missleaded by wiki.

 [multiform]
 the multiform issue is AFAICS out of the scope of the form-model which
 is there to describe ONE form, and to manage the lifecycle (validation
 and eventhandling) of that one thing.

I completly agree. Multiform is a way of presentation not dependant on
model. It is also true that validation is executed on model not on form.
However the way of presentation shouldn't be limited by model.

 That by itself is hard enough as it is. Not (currently) adding to the
 complexity the unpredictable various ways of splitting one form over
 various interactions actually follows up on the fact that modelling your
 form is (also) about describing the valid URI-request-params to your
 form interaction.

 In fact you should look at cforms as a convenient way to describe/model
 the form as a single interaction-interface (i.e. the URI-request-params)
 that offers you the extra of useful data-typing, validation rules and
 some (local) event-handling.

 In a web-context I truly see this formal interface declaration building
 up something I would call a unit-of-interaction to be something truly
 valuable.  IMHO adding multi-form support here seems to be blurring that
 nice responsibility.

I cannot agree. Sometimes I need to allow user on first page to choose
which page will be next. For example, on first page user can check some
checkboxes and regarding to user choice I would like to show forms
which are availiable for choosed by user options. I don't want him to
waste a time for filling data which are not important for him. Moreover
all data on availiable pages should be validated independently from others.
So if user choice is page 1 and 3 then I would like to verify data
availiable on page 1 and 3 and don't validate data specific for page 2.
It was very nicely done in jXForms. I would like also to show confirm
page and allow user to go back between pages.

  From that angle I think the (current) work on introducing
 widget-repositories will largely simplify building up various forms
 (interaction-units) based on the same set of predefined widgets (see
 http://wiki.cocoondev.org/Wiki.jsp?page=WoodyScratchpad)

I also see great oportunity in introduction of widget-repositories.

 What remains then is building up one application by glueing these
 interaction-points together.  I think most of us are just doing that by
 means of flowscript and the fact that there hasn't emerged some more
 abstract format to hook those up as e.g. wizards kinda tells me that
 flowscript by itself is a perfect match for the flexibility you need
 anyway. (that is my feeling)

I agree that woody and flow are very good way for cocoon and we should
follow it. Now modeling forms with UML is clear for me, because I can see
real object and sequences. Hovewer I can't see any reason why we should
give up multiforms.

Kindly regards,
Sebastian Gil

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



Re: Woody/Cocoon forms questions

2004-04-19 Thread Leon Widdershoven

I cannot agree. Sometimes I need to allow user on first page to choose
which page will be next. For example, on first page user can check some
checkboxes and regarding to user choice I would like to show forms
which are availiable for choosed by user options. I don't want him to
waste a time for filling data which are not important for him. Moreover
all data on availiable pages should be validated independently from others.
So if user choice is page 1 and 3 then I would like to verify data
availiable on page 1 and 3 and don't validate data specific for page 2.
It was very nicely done in jXForms. I would like also to show confirm
page and allow user to go back between pages.
I really think javascript/flowscript is invented for just this
type of action. Woody, JXTemplates and flowscript together (optionally
bookmarking the state) allows all kinds of validation, as long as it
can be expressed in javascript or java (which is almost everything).
The form is there literally the GUI with which the application interacts
with the user. I think you can't really be more flexible than that.
Leon

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


Re: cocoon under eclipse

2004-04-19 Thread Olivier Billard
Hi Flavio,

It may come from a dependency on blocks
Check the block.properties if you didn't forget a block on what an other 
block depends...

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


Re: Woody/Cocoon forms questions

2004-04-19 Thread Marc Portier


Sebastian wrote:

Thanks all for your reply and sorry for the mess I did :)

Marc Portier napisa(a):


[executive summary]
- aggregate works both ways, it is about the form-model, not about
binding nor templating


I though so at the begining, because it seams to be natural for me.
I just encountered a problem and then looked at wiki and what I've found
is aggregatefield widget - used to edit the value of multiple fields through
one textbox. I think that someone should change this because it leads to
missunderstanding.
thx for spotting, since it is a wiki you should be encouraged to just fix


- multiform is in my head about controlling the flow between forms. As
such the correct separation is: let cforms describe one form, let flow
control the decission to go from one to the other


But this approach doesn't allow me to go back between forms. Or maybe
I don't know something then please clarify that.
why do you think that is the case?

you can easily have one flow-script function to be handling more then 
one form!!!

of course everyone stops at using the sample-form2 implied construct:

map:call function=handleForm
  map:parameter name=function value=form2xml/
  map:parameter name=form-definition value=forms/form2_model.xml/
  map:parameter name=bindingURI value=forms/form2_bind_xml.xml/
/map:call
where you just have 2 create your own form2xml() function that receives 
a ready made form!

but please understand that this is done by handleForm() and that it is 
only a very convenient thingy applicable (only) in the most simple case.

Pls understand that the above is just a shorthand for this:

map:call function=test2 /

where you now have your own function that creates forms:

function test2() {

  var form = new Form(form2xml);
  form.createBinding(forms/form2_bind_xml.xml);
  // after above initialization of this one form
  // you can load/save the data from/to backend models
  // and you can manage the form in any way you already know
  form.showForm(form2pipe);
  // or replace it by another
  form = previousForm;
  // or manage an array
  myForms[2] = new Form(theThirdFormdefinition);
  // be creative, go wild!
}
Maybe now you see how you can easily handle more then form from your 
flow?  The flexibility here is a lot higher then the one we could 
possibly provide through declarative XML definition files, no?



[aggregate]
the wd:aggregate allows you to centrally describe your form-data-model
with the validation you have in place.
the decission to visualize and/or bind those values as 'one aggregated
value' or 'multiple split values' is easy in your template (see either
example binding/03aggregate or the date-aggregate sample)


Hmm. I cannot find that in 2.1.4. Currently I'm downloading nightly snapshot
to check if it's availiable there. Thanks for pointing me.
you are right, aggregate doesn't do this until recently (hence the doco 
mismatch too)

see: it might be 'natural' to you, but it wasn't to us from the start :-)


equally separated from the model is the decission to bind the value to
the backend in one fb:value on the level of the aggregate or in
multiple fb:value on the level of the separate fields
as such 'aggregate' means that the model IS aggregating different split
parts. I hope you see why we don't need a de-aggregate widget (which was
suggested in the past) in the model you have the detail available in the
binding and/or template you choose at which level (combined or split)
you step in


It is clear. As I mentioned above for me this approach is natural.
I was missleaded by wiki.
feel free to fix


[multiform]
the multiform issue is AFAICS out of the scope of the form-model which
is there to describe ONE form, and to manage the lifecycle (validation
and eventhandling) of that one thing.


I completly agree. Multiform is a way of presentation not dependant on
model. It is also true that validation is executed on model not on form.
However the way of presentation shouldn't be limited by model.
I think my point is that the form-model is not about the presentation, 
it is about the HTTP protocol, and which parameters are 
available/expected in the communication.

And, yes it does limit: the presentation can only show widgets which 
were definied in the first place. How else?


That by itself is hard enough as it is. Not (currently) adding to the
complexity the unpredictable various ways of splitting one form over
various interactions actually follows up on the fact that modelling your
form is (also) about describing the valid URI-request-params to your
form interaction.
In fact you should look at cforms as a convenient way to describe/model
the form as a single interaction-interface (i.e. the URI-request-params)
that offers you the extra of useful data-typing, validation rules and
some (local) event-handling.
In a web-context I truly see this formal interface declaration building
up something I would call a unit-of-interaction to be something truly
valuable.  IMHO adding multi-form 

Re: Help with fb:multi-value/ binding - CFORMS

2004-04-19 Thread Marc Portier


Uchenna Igwebuike wrote:

No errors in the log files, it binds the widget without a blip but
somewhere b/w executing the binding and the transformations, the
selected values are not reflected in the form.
strange, have you debugged this to the level were you have some proof of 
those values being set onto the widget?

-marc=

-Original Message-
From: Marc Portier [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 15, 2004 11:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Help with fb:multi-value/ binding - CFORMS



Uchenna Igwebuike wrote:


Hello Mark,

I tried out your suggestions and it works for binding the selected
values from the form to the bean but when I call form.load(bean) ie
binding from bean to form, it doesn't seem to work, the selected
values

do not show up on the form. Any thoughts on this?. Thanks in advance. 



hm, bummer, any exceptions along the way?
Maybe messages in log files?
(relevant portion of dump after setting log-level to debug on log-target
  'forms' might help as well)

-marc=


NB. I am modeling the field as a long data type.



shouldn't make a difference: meaning it should work for all datatypes, 
but those datatypes need to match between backend and frontend for sure.



Uchenna

-Original Message-
From: Marc Portier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:06 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Help with fb:multi-value/ binding - CFORMS

copying dev since there is some food for design-thought...

Joerg Heinicke wrote:



On 12.04.2004 16:14, Uchenna Igwebuike wrote:



When I bind a form without selecting any data to the bean, I don't
get


any errors, but when it contains some selections I get the following
error
uncaught JavaScript exception: at material



(file:/C:/projects/zes/construction/jboss-3.2.3/server/default/tmp/deplo


y/tmp16629ZESApplication-0.1.ear-contents/Mercury.war/inventory/flow/inv

entory.js, Line 64) at
(resource://org/apache/cocoon/forms/flow/javascript/Form.js, Line
164):


org.apache.commons.jxpath.JXPathException: Exception trying to create
xpath measureCollection; Factory is not set on the JXPathContext -
cannot create path: /facility[1]


I guess the problem is only the predicate [1]. JXPath can not create a


node for an XPath with a predicate. Can you try for testing some thing


like facility1, facility2 and so on? Of course this looks like a hack,


hm, this will not work IMHO



but I don't know how you can fix it in a good way. Someone more 
experienced with JXPath might help here. Marc or Bruno?



Hm, I suppose the predicate is not in the Uchenna's binding file, but 
rather introduced by the execution of the multi-value binding: it
wants 

to create a space to store each value from the multi-value array...

Suggestion:
I assume your backend now has some method: Object[] getFacility() that


produces an array (more likely a List I'm afraid) in which the various


facilities to be bound are present?
IIf it is acceptable that
1/ the type of this facility would become Object[] (in stead of List)
2/ and you can provide a setFacility(Object[]) accessor as well
then you could find a work-around in using the classic value-binding
(this is because the widget-value is also of type Object[]
Pls let us know if this works for you.

For the interested reader, some more info:
[1 - on the reported error]
The error 'factory is not set' from jxpath indicates that no 
node-factory (jxpath terminology) is available (to the jxpath context)


to create new 'nodes' in the backend (i.e. a bigger array in the bean,


or additional objects to add to the list).

I assume the multi-value binding was only tested versus XML backends 
since those have by default a node-generation factory installed (and 
thus the problem never occurs)

Towards javaBean backends this reveals that the the multi-value lacks 
the feature of declaring such a factory (to compare: this is what the 
on-insert inside the repeater binding is for)

IMHO multi-value binding code looks like an early clone of the 
simple-repeater binding.  This issue kinda re-affirms my feeling that 
there is no reason to maintain this multi-value-binding in the future.

[2 - on the confusing naming of the bindings]
Of course this leads me to some other observation: the names of the 
bindings are way too look-alike to the names of the widgets!

Because of this the misconception has grown that the binding file is a


duplicate of your definition file that needs to allocate the matching 
binding-component to the matching widget. THIS IS NOT THE CASE. (see 
e.g. the last binding-sample '03aggregate': there an aggregate widget 
gets bind using both the aggregate-binding and the value-binding: that


just works, and it's not a hack, nor an after-thought.)

In the form-definition one needs to select those widgets that build up


the 'form-model' that is capable of supporting the
end-user-interaction 

(ie both html form generation and request parameter 

Link: Project: InvitoCMS - Web based WYSIWYG CMS

2004-04-19 Thread Robert Soesemann
Title: Message



http://www.invitocms.com/tiki-index.php

Summary:

Intuitive 
browser-based content management system based on Cocoon 
featuring:
- extensible 
XML-based content model 
- customizable content-type dependant XSL design 
templates
- WYSIWYG editing mode
- Windows-like "Site Explorer"
-typical CMSapproval 
process
- numerous content 
import/export formats (e.g. RTF, Print View)
- generation of 
navigation element (e.g overview pages, navigation tabs, article 
abstracts)
- keyword-based 
content cross-selling (See also pages)
- customizable 
design templates
.


PS: Is there a way 
to edit an entry on "Live Sites" later on?

Regards

Robert 
Sösemann


Re: Link: Project: InvitoCMS - Web based WYSIWYG CMS

2004-04-19 Thread Derek Hohls
Robert

Competition for Lenya?  For those us whose German
is rusty to nonexistent, it would be useful to be able
to view this site in English - for example, I assume 
this is an OS project, but under what license?

Derek


 [EMAIL PROTECTED] 2004/04/19 12:20:54 PM 
http://www.invitocms.com/tiki-index.php 
 
Summary:
 
Intuitive browser-based content management system based on Cocoon featuring:
- extensible XML-based content model 
- customizable content-type dependant XSL design templates
- WYSIWYG editing mode
- Windows-like Site Explorer
- typical CMS approval process
- numerous content import /export formats (e.g. RTF, Print View)
- generation of navigation element (e.g overview pages, navigation tabs, article 
abstracts)
- keyword-based content cross-selling (See also pages)
- customizable design templates
.
 

PS: Is there a way to edit an entry on Live Sites later on?
 
Regards
 
Robert Sösemann


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



How to get notified when users login or logout in authentication-fw

2004-04-19 Thread jj_gong

Hi,
 I tried the authentication-fw with the help of the document and everything works well. :-)
 But I have a question about how to get notified when a user logs in or logs out. I want to write something to log when a specific user logs in or out. It's not enough to add some codes to the login and logout actions because the logout event can be triggered by session timeout event, so the direct solution is let the object implement the HttpSessionBindingListener interface but the object, which is UserState in authentication-fw, doesn't implement that interface and furthermore it is decared as 'final'.
 Any suggestions? Thx. :)
 Steven GongMsg sent via Spymac Mail - http://www.spymac.com

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



RE: Validator Transformer

2004-04-19 Thread Carmona Perez, David

You were right. It has been corrected

-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] nombre de Martin Holz
Enviado el: viernes, 16 de abril de 2004 14:49
Para: [EMAIL PROTECTED]
Asunto: Re: Validator Transformer



Carmona Perez, David [EMAIL PROTECTED] writes:


 I've created a transformer that can be inserted in any stage of an XML
 pipeline, in order to validate its contents.  This can be a powerful tool for
 debugging and conformance testing..


 http://wiki.cocoondev.org/Wiki.jsp?page=ValidationTransformer

Thank you. The first tests look good.


The documentation of the  stopForErrors parameter is slightly wrong,
the wiki says stopForErrors, but the source says
stop-for-errors.

Martin


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


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/
map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/

And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



RE: Problem redirecting in flowscript

2004-04-19 Thread Joel McConaughy
I bet it uses the http-client library instead.

Joel McConaughy
Managing Partner
Displayware
800 Fifth Ave., #101-316
Seattle, WA 98104-3191
206-300-4732 Direct
206-382-2188 Fax
[EMAIL PROTECTED]


-Original Message-
From: Mark Lundquist [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 17, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem redirecting in flowscript



On Apr 13, 2004, at 11:33 AM, Joel McConaughy wrote:

 Apache commons library does not support cross-host redirects.
 ..snip..

How come map:redirect-to does not suffer from this?  It'll redirect 
you to anywhere!
- mark

 From: Mark Lundquist [mailto:[EMAIL PROTECTED]

 Any word on this?  I never saw a reply, but I too am interested in the

 answer... any takers? Thanks,
 Mark L :-)

 On Apr 2, 2004, at 8:08 AM, Mark H wrote:

 I'm having a problem doing redirects in flowscript (using a 
 non-cocoon

 protocol). I've traced the problem to the code below and it says 
 redirects to a new URL are not allowed in the comments. Can anybody 
 tell me why this is?

 org.apache.cocoon.environment.wrapper.EnvironmentWrapper:

 /**
  * Redirect the client to a new URL is not allowed
  */
 public void redirect(boolean sessionmode, String newURL)
 throws IOException {
 this.redirectURL = newURL;

 // check if session mode shall be activated
 if (sessionmode) {
 // get session from request, or create new session
 request.getSession(true);
 }
 }

 Mark H



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




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


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




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


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



RV: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Hi,

If I save the result of the xinclude processing to a file and do the following:

map:read src=xincludedfile.xml/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/

then everything goes ok.

This seems a bug of the XInclude transformer.

Has this happened to anyone else?


-Mensaje original-
De: Carmona Perez, David
Enviado el: lunes, 19 de abril de 2004 16:24
Para: Cocoon (E-mail)
Asunto: SAXParseException: Content is not allowed in prolog.




Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/
map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/

And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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



Re: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Upayavira
Carmona Perez, David wrote:

Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/

map:read

map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/
 

If you get content is not allowed in prolog, look for characters before 
the ?xml tag at the beginning of your files. From the stacktrace, I'd 
look at your XSLTs first. Basically, the ? should be ABSOLUTELY the 
first characters in the file. No spaces, no newlines.

Upayavira

And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)
How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.
Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*
-
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: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

Sorry, I meant map:generate instead of map:read

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 16:37
Para: [EMAIL PROTECTED]
Asunto: Re: SAXParseException: Content is not allowed in prolog.



Carmona Perez, David wrote:

Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/

map:read

map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/
 

If you get content is not allowed in prolog, look for characters before
the ?xml tag at the beginning of your files. From the stacktrace, I'd
look at your XSLTs first. Basically, the ? should be ABSOLUTELY the
first characters in the file. No spaces, no newlines.

Upayavira

And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
   at 
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
   at 
 org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
   at 
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
   at 
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
   at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
   at 
 org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
   at 
 org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at 
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
   at com.icl.saxon.om.Builder.build(Builder.java:265)
   at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
   at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
   at com.icl.saxon.functions.Document.evaluate(Document.java:70)
   at 
 com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
   at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
   at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
   at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
   at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

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


*
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



RE: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Carmona Perez, David

What is strange it that the fatal errors happen after the endDocument sax event is 
received!!!
I've discovered this thanks to the LogTransformer.

-Mensaje original-
De: Carmona Perez, David
Enviado el: lunes, 19 de abril de 2004 16:49
Para: [EMAIL PROTECTED]
Asunto: RE: SAXParseException: Content is not allowed in prolog.




Sorry, I meant map:generate instead of map:read

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 16:37
Para: [EMAIL PROTECTED]
Asunto: Re: SAXParseException: Content is not allowed in prolog.



Carmona Perez, David wrote:

Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/

map:read

map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/




If you get content is not allowed in prolog, look for characters before

the ?xml tag at the beginning of your files. From the stacktrace, I'd

look at your XSLTs first. Basically, the ? should be ABSOLUTELY the

first characters in the file. No spaces, no newlines.

Upayavira

And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
   at 
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
   at 
 org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
   at 
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
   at 
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
   at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
   at 
 org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
   at 
 org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
   at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at 
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
   at com.icl.saxon.om.Builder.build(Builder.java:265)
   at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
   at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
   at com.icl.saxon.functions.Document.evaluate(Document.java:70)
   at 
 com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
   at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
   at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
   at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
   at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)

How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.

Thanks in advance for any help.

David.

*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*

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



Re: cocoon under eclipse

2004-04-19 Thread Flavio Palumbo
Hi Olivier,

thank you for the replay, but I overtook that phase ; in fact I found on
the mail archive a mail of yours with links to Wiki pages LoadInEclipse
and DebuggingCocoon; so I rebuilt my project following that documents
; unfortunately the built went fine, but when I tried to start jetty from
within eclipse, I always get an exception java.lang.NoClassDefFoundError:
Loader
Exception in thread main.
I configured jetty as an application following these notes, reported at
the bottom of the LoadInEclipse document :

- make sure ./tools/loader is on your eclipse classpath (it isn't by default)

- create an eclipse run configuration for Jetty Cocoon:
  - On configurations 'Main' tab use 'Loader' as the main class.
  - On the Arguments tab set:
- Program arguments: tools\jetty\conf\main.xml
- VM arguments: -Djava.endorsed.dirs=./lib/endorsed
-Dwebapp=./build/webapp
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
-Djetty.port= -Djetty.admin.port=8889
-Dhome=.
-Dloader.jar.repositories=./tools/jetty/lib,./lib/endorsed
-Dloader.main.class=org.mortbay.jetty.Server

Can you please help me ?

Thanks a lot

Flavio Palumbo



-- Original Message --
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
From: Olivier Billard [EMAIL PROTECTED]
Subject: Re: cocoon under eclipse
Date: Mon, 19 Apr 2004 15:06:10 +0200


Hi Flavio,

It may come from a dependency on blocks
Check the block.properties if you didn't forget a block on what an other

block depends...

--
Olivier Billard


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





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



XSL Reuse: Including XSL documents in a master xsl document

2004-04-19 Thread Grange, John
Title: XSL Reuse:  Including XSL documents in a master xsl document





Hi,


This question has probably been posed and answered before. If so, can somebody point me to where?


I am creating reports (some of which are in pdf) using cocoon as a display engine. The reports have to be presented differently based upon user preference. I would like to be able to include a document containing the attribute-sets into my stylesheet which is looked up based on the requesting user. The information as to where to find the document can be found in the document being transformed and I can populate a variable with the url, but I don't seem to be able to include it into the document, either using xsp:include or xsp:import.

In addition to this, all reports have an exceptions portion, the xsl of which I can write once, if I can persuade cocoon to include it into my xsl file.

I think, if I cannot get xsp:include or xsp:import to work for me, I'm going to have to write a pipeline which transforms my xsl document, but I'm not sure how to produce xsl from an xsl transformation.

Help, please


John Grange 
Software Team Leader 


Tel: +44 (0) 1749 834922 
Email: [EMAIL PROTECTED] 



BlueFinger Limited 
Underwood Business Park, Wookey Hole Road, Wells, Somerset, BA5 1AF, UK 
Tel: +44 (0) 1749 834900
Fax: +44 (0) 1749 834902 
Mobile: +44 (0) 7876 038058 
web: www.bluefinger.com http://www.bluefinger.com 





Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG.


*** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.***




woody and content aggregation

2004-04-19 Thread Trevisani Andrea
Title: woody and content aggregation





I need a great help!!


I have a composite web page, combined with map:aggregate. I have a great problem with a woody form: when Woody validates the form and the the result is KO the flowscript invokes my display pipeline but I can't display all the composite page, I get only the form

I know that a solution exist for this problem (multiple forms on a single page), please help me with an example ...


Thanks (excuse me for my english ...)



Andrea Trevisani
Wind Telecomunicazioni S.p.A. - Direzione e Coordinamento di Enel S.p.A.
Via Brunacci 36 - 30175 Marghera (VE)
Progettazione RF - Nord Est
Cell. +39 328 7100204
Tel. Uff. +39 41 8293981
Fax +39 06 83175298
Fax2 +39 41 8293347
e-mail: [EMAIL PROTECTED]



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

Re: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Klaus Bertram
I have the same problem with svg2jpeg.
When I serialize to svg2jpg after a transform element. When I serialize 
to svgxml it work's correct.
It seems that the document generation at xalan don't work (is a DOM 
generated for it?)
When I seralize to XML, save the output in a file and use it as source 
it generates the jpg.

Original Exception: java.lang.RuntimeException: 
org.w3c.dom.DOMException: The current node (type: 9, name: #document) do 
not allow children of the given type (type: 3, name: #text)
	at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
	at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)

Carmona Perez, David wrote:

What is strange it that the fatal errors happen after the endDocument sax event is 
received!!!
I've discovered this thanks to the LogTransformer.
-Mensaje original-
De: Carmona Perez, David
Enviado el: lunes, 19 de abril de 2004 16:49
Para: [EMAIL PROTECTED]
Asunto: RE: SAXParseException: Content is not allowed in prolog.


Sorry, I meant map:generate instead of map:read

-Mensaje original-
De: Upayavira [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 19 de abril de 2004 16:37
Para: [EMAIL PROTECTED]
Asunto: Re: SAXParseException: Content is not allowed in prolog.


Carmona Perez, David wrote:


Hi all,

I have a problem with Cocoon that I find a little hard to debug.

My pipeline is something like:

map:read src=myfile.xml/

map:read


map:transform type=xinclude/
!--Till here XML received is well formed--
map:transform type=saxon src=mystylesheet.xsl/
map:generate type=html/


If you get content is not allowed in prolog, look for characters before

the ?xml tag at the beginning of your files. From the stacktrace, I'd

look at your XSLTs first. Basically, the ? should be ABSOLUTELY the

first characters in the file. No spaces, no newlines.

Upayavira


And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:385)
at 
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:315)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1309)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:809)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:350)
at 
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
at com.icl.saxon.om.Builder.build(Builder.java:265)
at com.icl.saxon.functions.Document.makeDoc(Document.java:228)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at 
com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:76)
at com.icl.saxon.style.StyleElement.processChildren(StyleElement.java:634)
at com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:225)
at com.icl.saxon.style.XSLTemplate.start(XSLTemplate.java:198)
How can I guess where it is happening? A breakpoint doesn't help much.
Even though this error, I get correct results.  The problem is that the logs get full 
and slows my app.
Thanks in advance for any help.

David.


*
Este correo ha sido procesado por el antivirus del Grupo FCC.
*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
nbis - Porschestr. 5 - 51381 Leverkusen - Germany
phone +49 2171 58079 0 - fax +49 2171 58079 9
email [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Cocoon WebMail Client Application - java.lang.RuntimeException: org.xml.sax.SAXException:

2004-04-19 Thread Marot Laurent
Hi all,

Having a look at Cocoon WebMail Client Application (block Sample Mailing Coccon 2.1.3) 
i'm getting the following error while trying to connect my imap server:

org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): 
java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of 
integral value 238 that is not represented in specified output encoding of .

any advice to solve that problem ?

Earlier thanks.


laurent




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



Re: cocoon under eclipse

2004-04-19 Thread Unico Hommes
Flavio Palumbo wrote:

- make sure ./tools/loader is on your eclipse classpath (it isn't by default
 

More precicely this should read add it to the source path since the 
files in that folder are java files, not class files. Then you should 
also add ./tools/jetty/lib/jetty.jar to the classpath.

Hope this helps,
Unico
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Woody/Cocoon forms questions

2004-04-19 Thread Sebastian
Dnia Mon, 19 Apr 2004 15:18:38 +0200, Marc Portier [EMAIL PROTECTED] 
napisa:

thx for spotting, since it is a wiki you should be encouraged to just fix
I did so.

- multiform is in my head about controlling the flow between forms. As
such the correct separation is: let cforms describe one form, let flow
control the decission to go from one to the other


But this approach doesn't allow me to go back between forms. Or maybe
I don't know something then please clarify that.
why do you think that is the case?

you can easily have one flow-script function to be handling more then 
one form!!!
For sure. I know that. And I didn't stop on sample-form2 :)
I still don't understand how do you know if user pushed next
or prev button on my form. Flow below doesn't handle that.
Sorry :) I can't get the idea. Continuation throws me to the place
where I was and that's okey with me and what next? As I mentioned
before I want to go back in flow or go forward as usualy. It's not
a problem for me to do showform1; showform2; etc. I would like
to know how determine which button was pressed and depending on it
go forward or backward. And if possible do it as much generic as
it is possible. For example to set number of forms by parameter
in flow. I did sucha generic action for XForms and I can't see
the same idea in flow. My problem is that I need someone to put
some light on me :)
function test2() {

   var form = new Form(form2xml);
   form.createBinding(forms/form2_bind_xml.xml);
   // after above initialization of this one form
   // you can load/save the data from/to backend models
   // and you can manage the form in any way you already know
   form.showForm(form2pipe);
   // or replace it by another
   form = previousForm;
   // or manage an array
   myForms[2] = new Form(theThirdFormdefinition);
   // be creative, go wild!
}
[...]

I think my point is that the form-model is not about the presentation, 
it is about the HTTP protocol, and which parameters are 
available/expected in the communication.

And, yes it does limit: the presentation can only show widgets which 
were definied in the first place. How else?
That's true, but I can show different templates using selected widgets.
So for eg. I have widgets: name, surname, age, sex and then I can use
template transformer with template1 containing name and surname and
then template2 containing age and sex. Do you agree with me that I can do
that on separated pages and still have the same data model (single)?
like you say yourself: it is more then one form...
but it is one application, and it should be glued together by the flow
For sure, but as I mentioned above it could be glued also with a single
model. Well, that's how I see it.
waste a time for filling data which are not important for him. Moreover
all data on availiable pages should be validated independently from 
others.
surely different forms, no?
No. Idea described above. So different pages but still the same model.
Maybe I'm fucking something here :) but I don't see any problems
in handling forms in this way. I just need that super sexy flow which
allow me to go back and forward on number templates.
So if user choice is page 1 and 3 then I would like to verify data
availiable on page 1 and 3 and don't validate data specific for page 2.
not even show page 2 would be my guess?
exactly

I agree that woody and flow are very good way for cocoon and we should
follow it. Now modeling forms with UML is clear for me, because I can 
see
real object and sequences. Hovewer I can't see any reason why we should
give up multiforms.

I didn't say we should give up on multiforms/wizards: they just 
shouldn't be handled at the level of cforms IMHO
I want to handle them on flow level but with using different templates
for the same model. Excuse me, I think we missunderstood each other
and this is my fault because I didn't provide to you my completly vision
of the system. I hope now it is clear.
Kindly regards,
Sebastian Gil
--
Thought by thought we see our own mistakes.
mailto: [EMAIL PROTECTED]

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


Re: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread J.Pietschmann
Carmona Perez, David wrote:
And receive the following exception (inside Xerces and Saxon):

org.xml.sax.SAXParseException: Content is not allowed in prolog.
First check your XML files for whitespace before the XML declaration
and text (including NBSPs) outside the document element, as described
in earlier replies. If the problem cause still isn't obvious, update
your JRE to the very latest release, or put the latest Xerces jar in
your JRE's lib/endorsed directory, one of Sun's JRE releases was bundled
with a Xerces release which had a bug causing the error message above in 
certain situations.

J.Pietschmann

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


Re: Link: Project: InvitoCMS - Web based WYSIWYG CMS

2004-04-19 Thread Joerg Heinicke
On 19.04.2004 15:57, Derek Hohls wrote:

for example, I assume 
this is an OS project, but under what license?
It's hosted at SourceForge, so you can always go to the project's 
summary page to see under what license it is released:
http://sourceforge.net/projects/invitocms

= GPL

Furthermore on the page is written that it will be re-released under the 
Bremer Lizenz für freie Softwarebibliotheken. It's a license 
especially adapted to the German laws. More can be read at 
http://www.heise.de/newsticker/meldung/45764 (again in German).

Joerg

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


Re: Cocoon WebMail Client Application - java.lang.RuntimeException: org.xml.sax.SAXException:

2004-04-19 Thread Joerg Heinicke
On 19.04.2004 17:49, Marot Laurent wrote:

Hi all,

Having a look at Cocoon WebMail Client Application (block Sample Mailing Coccon 2.1.3) i'm getting the following error while trying to connect my imap server:

org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of integral value 238 that is not represented in specified output encoding of .

any advice to solve that problem ?
This bug is not related to the mail block, but to the Xalan version used 
in 2.1.3. Try to upgrade it. Switching from UTF-8 to another encoding 
might also temporarily fix the problem.

Joerg

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


HttpSession and Frames

2004-04-19 Thread Anna Bikkina
Hi,

This might not be the appropriate place to post my question but I thought I 
might get an answer if I post the question here.

I have a web page which has 2 frames each opening 2 different web 
applications.When I logon to frame1 I internally also logon to web app in 
frame2 and display the index page in frame2. Practically I want both he 
application to have differnt HttpSessions. When user click on a link in 
frame1 it should open a window with href being the url of the webapplication 
in frame2 using session of frame2. 

This works in netscape perfectly. In IE the new window does not open frame2's 
index page it instead goes to the login page as if the user did not login in 
earlier. I want the index page to be displayed and the new window opened to 
use the same session as frame2 and not of frame1. Is this possible? 

Can someone please suggest how I can do this in IE? When I use 
window.parent.open it opens the index page but then the same session is 
carried in the new window and the parent window which is causing different 
problems.

Thanks in advance,
Anna.


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



little Cocoon digital library project (was Re: performance with transformation on BIG xml files)

2004-04-19 Thread Adrian Petru Dimulescu
Hello,

I managed to put my little digital library project online as a live Cocoon 
site (yesss!)  

The purpose of the site is publishing mainly Romanian texts, so the site is 
mainly in Romanian. However the index page is translated into English and 
French.

You can take a look at it here: http://www.scriptorium.ro (you'll have to 
click the English link on the right until I figure out how to switch pages 
automatically using the Accepted-Languages header :)

Best regards,
Adrian

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



RE: Cocoon WebMail Client Application - java.lang.RuntimeException: org.xml.sax.SAXException:

2004-04-19 Thread Marot Laurent
thanks a lot Joerg, i've upgrated from xalan 2.5.2 to 2.6.0 and it works fine !

The other solution mentionned was to switch from UTF-8 to another encoding. where can 
i do that. Sorry for stupid question but i'm totally newbie.

Laurent

-Message d'origine-
De : Joerg Heinicke [mailto:[EMAIL PROTECTED]
Envoyé : lundi 19 avril 2004 19:29
À : [EMAIL PROTECTED]
Objet : Re: Cocoon WebMail Client Application -
java.lang.RuntimeException: org.xml.sax.SAXException:


On 19.04.2004 17:49, Marot Laurent wrote:

 Hi all,
 
 Having a look at Cocoon WebMail Client Application (block Sample Mailing Coccon 
 2.1.3) i'm getting the following error while trying to connect my imap server:
 
 org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): 
 java.lang.RuntimeException: org.xml.sax.SAXException: Attempt to output character of 
 integral value 238 that is not represented in specified output encoding of .
 
 any advice to solve that problem ?

This bug is not related to the mail block, but to the Xalan version used 
in 2.1.3. Try to upgrade it. Switching from UTF-8 to another encoding 
might also temporarily fix the problem.

Joerg


-
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: Cocoon WebMail Client Application - java.lang.RuntimeException: org.xml.sax.SAXException:

2004-04-19 Thread Joerg Heinicke
On 19.04.2004 21:29, Marot Laurent wrote:

thanks a lot Joerg, i've upgrated from xalan 2.5.2 to 2.6.0 and it works fine !

The other solution mentionned was to switch from UTF-8 to another encoding. where can i do that. Sorry for stupid question but i'm totally newbie.
Somewhere in the root sitemap the serializer are configured:

map:serializers
  map:serializer name=html some-other-attributes=/
  map:serializer name=xml some-other-attributes=/
/map:serializers
and so on.

The encoding can be set (it defaults to UTF-8) by changing the 
serializer's configuration to:

  map:serializer name=xml some-other-attributes=
encodingISO-8859-1/encoding
  /map:serializer
The element names here are the attribute names at an xsl:output element 
in XSLT.

Joerg

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


Re: Woody/Cocoon forms questions

2004-04-19 Thread Marc Portier


Sebastian wrote:
Dnia Mon, 19 Apr 2004 15:18:38 +0200, Marc Portier 
[EMAIL PROTECTED] napisa:

thx for spotting, since it is a wiki you should be encouraged to just fix


I did so.

thx.

- multiform is in my head about controlling the flow between forms. As
such the correct separation is: let cforms describe one form, let flow
control the decission to go from one to the other


But this approach doesn't allow me to go back between forms. Or maybe
I don't know something then please clarify that.
why do you think that is the case?

you can easily have one flow-script function to be handling more then 
one form!!!


For sure. I know that. And I didn't stop on sample-form2 :)
I still don't understand how do you know if user pushed next
or prev button on my form. Flow below doesn't handle that.
make next and prev buttons on your form of type fd:submit
after the showForm you can check the submit-id on the form
see the aggregate-sample with the 'switch' button
(of course that is a somewhat giving you the idea that you _should_ have 
multiple templates for one form, but you should at least notice that 
both templates mention ALL the widgets from the form-definition file)

Sorry :) I can't get the idea. Continuation throws me to the place
where I was and that's okey with me and what next? As I mentioned
before I want to go back in flow or go forward as usualy. It's not
a problem for me to do showform1; showform2; etc. I would like
to know how determine which button was pressed and depending on it
go forward or backward. And if possible do it as much generic as
it is possible. For example to set number of forms by parameter
in flow. I did sucha generic action for XForms and I can't see
the same idea in flow. My problem is that I need someone to put
some light on me :)
function test2() {

   var form = new Form(form2xml);
   form.createBinding(forms/form2_bind_xml.xml);
   // after above initialization of this one form
   // you can load/save the data from/to backend models
   // and you can manage the form in any way you already know
   form.showForm(form2pipe);
   // or replace it by another
   form = previousForm;
   // or manage an array
   myForms[2] = new Form(theThirdFormdefinition);
   // be creative, go wild!
}


[...]

I think my point is that the form-model is not about the presentation, 
it is about the HTTP protocol, and which parameters are 
available/expected in the communication.

And, yes it does limit: the presentation can only show widgets which 
were definied in the first place. How else?


That's true, but I can show different templates using selected widgets.
hm, but with sometimes unwanted effects, no?

e.g. a missing boolean-widget will automatically be set to false
this is a consequence of how these booleans (radio buttons) are 
(not)transmitted from HTML forms

would need to do a full scan on the widgets to see how others would 
react (don't e.g. required widgets get their validation error fired?)

So for eg. I have widgets: name, surname, age, sex and then I can use
template transformer with template1 containing name and surname and
then template2 containing age and sex. Do you agree with me that I can do
that on separated pages and still have the same data model (single)?
yes, it might (will often) work, but rather unintentionally so.

like you say yourself: it is more then one form...
but it is one application, and it should be glued together by the flow


For sure, but as I mentioned above it could be glued also with a single
model. Well, that's how I see it.
I understand, but it's not how things are intended to work as explained 
above.

waste a time for filling data which are not important for him. Moreover
all data on availiable pages should be validated independently from 
others.


surely different forms, no?


No. Idea described above. So different pages but still the same model.
got that, but there is little preventing you to make it different forms, 
right? (as soon as you get the flow thingy in shape)

Maybe I'm fucking something here :) but I don't see any problems
in handling forms in this way. I just need that super sexy flow which
allow me to go back and forward on number templates.
So if user choice is page 1 and 3 then I would like to verify data
availiable on page 1 and 3 and don't validate data specific for page 2.


not even show page 2 would be my guess?


exactly

I agree that woody and flow are very good way for cocoon and we should
follow it. Now modeling forms with UML is clear for me, because I can 
see
real object and sequences. Hovewer I can't see any reason why we should
give up multiforms.

I didn't say we should give up on multiforms/wizards: they just 
shouldn't be handled at the level of cforms IMHO


I want to handle them on flow level but with using different templates
for the same model. Excuse me, I think we missunderstood each other
and this is my fault because I didn't provide to you my completly vision
of the system. I hope now it is clear.
I 

RE: document() function and catalog

2004-04-19 Thread David Leangen

Joerg,

Thanks for the reply!

  I am trying to use the document() function to import some data
  from an external XML file.
 
  I.e.: xsl:value-of select=document('somefile.xml')/somenode/
 
  At the same time, I am using the catalog to resolve the DTD. However,
  I noticed that when using the document() function, the catalog
  resolver isn't used,

 That's true, the document() function does not use the catalogue
 resolver.

  so I actually have to hard code the location of the DTD directly
  into somefile.xml.

 But I do not understand how this should be related. You wrote above
 you are already using the catalog to resolve the DTD. Why you are
 forced to hard code the path to the DTD?

In 'somefile.xml', I found that I have to be able to point to the DTD as
follows:

!DOCTYPE somenode PUBLIC -//Some DTD//EN
some/hardcoded/path/somedtd.dtd

The reason I have to hardcode the path is because the DTD is not located
otherwise.

Really, I have two choices: (1) to completely leave out the DTD, or (2) to
hard-code it.

I don't like either choice. I want to have the DTD, but I don't want to have
to hard-code it, either.


What happens when I don't hard-code the DTD is that the system generates a
TransformerException (see extract of core.log below) and won't return any
value (or maybe returns null, which for all practical purposes is the same
thing in this case).

In other words, xsl:value-of select=document('somefile.xml')/somenode/
returns null, when it should be returning some value.


 Not that long ago someone else suggested to support the catalogues
 in the document function, but it was not implemented since then.
 I know that Ant supports it. Maybe someone has only to provide a
 patch :)

Is that a hint? ;-)

If so, tell me where to look, and I'll see if I can make the time to look
into that some day.


Thanks!


Dave


Generated log (edited to fit into and email for readability and also to
hide the actual local paths):

DEBUG   (2004-04-20) 05:39.11:119   [core.xslt-processor] (/ns/contract)
PoolThread-4/XSLTProcessorImpl:
  resolve(href = some/href/somefile.xml,
base = file:/some/base);
resolver =
[EMAIL PROTECTED]
DEBUG   (2004-04-20) 05:39.11:129   [core.xslt-processor] (/ns/contract)
PoolThread-4/XSLTProcessorImpl:
  xslSource = [EMAIL PROTECTED],
system id = file:/some/full/path/commission.xml
WARN(2004-04-20) 05:39.11:399   [core.xslt-processor] (/ns/contract)
PoolThread-4/TraxErrorHandler:
  Error in TraxTransformer:
file:/some/application/path/contract/contract.xslt;
Line 74; Column 99; ;
SystemID: file:/some/application/path/contract/contract.xslt;
Line#: 74; Column#: 99

javax.xml.transform.TransformerException: Can not load requested doc:
location/of/dtd/somefile.dtd (The system cannot find the file specified)
at org.apache.xalan.templates.FuncDocument.warn(FuncDocument.java:456)
at org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:393)
at org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:229)
at
org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprI
teratorSimple.java:157)
at
org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:166)
at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:191)
at org.apache.xpath.axes.NodeSequence.setRoot(NodeSequence.java:250)
at org.apache.xpath.axes.LocPathIterator.execute(LocPathIterator.java:249)
at org.apache.xpath.XPath.execute(XPath.java:306)
at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:316)
at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:284)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2362)
at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:165)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:429)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:215)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2362)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:153)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:429)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:215)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2362)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
716)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:429)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:215)
   

RE: XSL Reuse: Including XSL documents in a master xsl document

2004-04-19 Thread Conal Tuohy
John Grange wrote:

 I am creating reports (some of which are in pdf) 
 using cocoon as a display engine.  The reports 
 have to be presented differently based upon user 
 preference.  I would like to be able to include 
 a document containing the attribute-sets into my 
 stylesheet which is looked up based on the 
 requesting user.  The information as to where to 
 find the document can be found in the document 
 being transformed and I can populate a variable 
 with the url, but I don't seem to be able to 
 include it into the document, either using 
 xsp:include or xsp:import.

Why not perform the styling as a separate stage in the pipeline? Clearly the report 
layout and styling are separate concerns, so they should be done with 2 distinct XSL 
transformations, one after the other. The first XSLT would create FO elements and 
annotate them with a style name. I suggest using the @role attribute, e.g. 
fo:block role=heading1blah/fo:block)
The second stage would replace these roles with xsl-fo formatting attributes.
http://www.w3.org/TR/xsl/slice7.html#role

 In addition to this, all reports have an 
 exceptions portion, the xsl of which I can write 
 once, if I can persuade cocoon to include it 
 into my xsl file.

 I think, if I cannot get xsp:include or 
 xsp:import to work for me, I'm going to have to 

You have a problem with xsl:import? This should work ... tell us what happens.

 write a pipeline which transforms my xsl 
 document, but I'm not sure how to produce xsl 
 from an xsl transformation.

This isn't too hard either. Use the namespace-alias feature in XSLT:
http://www.w3.org/TR/xslt#dt-alias
Here's how to configure your sitemap:
http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets

Good luck

Con

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



RE: SAXParseException: Content is not allowed in prolog.

2004-04-19 Thread Conal Tuohy
David, it sounds like your mystylesheet.xsl has some content in the prolog. Are you 
sure there's nothing wrong there? It's easy to accidentally insert some white space at 
the start of the file or something.

 -Original Message-
 From: Carmona Perez, David [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 20 April 2004 2:36 a.m.
 To: Cocoon (E-mail)
 Subject: RV: SAXParseException: Content is not allowed in prolog.
 
 
 
 Hi,
 
 If I save the result of the xinclude processing to a file and 
 do the following:
 
 map:read src=xincludedfile.xml/
 !--Till here XML received is well formed--
 map:transform type=saxon src=mystylesheet.xsl/
 map:generate type=html/
 
 then everything goes ok.
 
 This seems a bug of the XInclude transformer.
 
 Has this happened to anyone else?

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



Re: How to make the command prompt reapeear after cocoon start?

2004-04-19 Thread David Crossley
yangontha Maung wrote:
snip/
 
 (Also I cannot use the SHUTDOWN message to stop.. as
 mentioned there..)

Upayavira answered your other concerns.

Now, about that SHUTDOWN message. That is a message not
from Cocoon's embedded Jetty servlet container, but from
the HSQLDB database server, because you must have compiled
Cocoon with the databases Blocks. It is a very confusing
message and it would nice to be rid of it.

--David



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



RE: document() function and catalog

2004-04-19 Thread David Crossley
David Leangen wrote:
 Joerg,
 
 Thanks for the reply!
 
   I am trying to use the document() function to import some data
   from an external XML file.
  
   I.e.: xsl:value-of select=document('somefile.xml')/somenode/
  
   At the same time, I am using the catalog to resolve the DTD. However,
   I noticed that when using the document() function, the catalog
   resolver isn't used,
 
  That's true, the document() function does not use the catalogue
  resolver.
 
   so I actually have to hard code the location of the DTD directly
   into somefile.xml.
 
  But I do not understand how this should be related. You wrote above
  you are already using the catalog to resolve the DTD. Why you are
  forced to hard code the path to the DTD?
 
 In 'somefile.xml', I found that I have to be able to point to the DTD as
 follows:
 
 !DOCTYPE somenode PUBLIC -//Some DTD//EN
 some/hardcoded/path/somedtd.dtd
 
 The reason I have to hardcode the path is because the DTD is not located
 otherwise.

I have heard various alarms on the Cocoon lists about using
the document() function from an XSL (efficiency, caching, does not
get re-loaded if the document instance is changed, ...)

There must be a better way, using the power of Cocoon's sitemap.

Still, what you are trying to do should be able to work. I have
often tried to figure out why it will not, to no avail. Perhaps
the Xalan stylesheet processor is using a different xml parser
instance than that which is configured by Cocoon at startup.

I do know that Xalan uses the catalog entity resolver when it
processes the stylesheets. See the test at
http://localhost:/samples/catalog/ at the bottom of the page
produced by http://localhost:/samples/catalog/catalog-demo

However, it must be different when Xalan uses the document() func.

Maybe someone needs to do some research at the Xalan website
or with Google.

 Really, I have two choices: (1) to completely leave out the DTD, or (2) to
 hard-code it.

Another alternative would be to declare the DTD as an
internal subset in the head of the xml instance documents.

--David

 I don't like either choice. I want to have the DTD, but I don't want to have
 to hard-code it, either.

 
 What happens when I don't hard-code the DTD is that the system generates a
 TransformerException (see extract of core.log below) and won't return any
 value (or maybe returns null, which for all practical purposes is the same
 thing in this case).
 
 In other words, xsl:value-of select=document('somefile.xml')/somenode/
 returns null, when it should be returning some value.
 
 
  Not that long ago someone else suggested to support the catalogues
  in the document function, but it was not implemented since then.
  I know that Ant supports it. Maybe someone has only to provide a
  patch :)
 
 Is that a hint? ;-)
 
 If so, tell me where to look, and I'll see if I can make the time to look
 into that some day.
 
 
 Thanks!
 
 
 Dave



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



how to build webpage of growing length by cocoon

2004-04-19 Thread Lechael Han



Basically I want to create a page of growing 
length.
For example, 
first user select an itemH from a droping 
list and then select some attributes for Item H,
Then user selects item B then select some 
attributes for item B.
and so on
I want a page with user's selectionsup 
to now, as well as future possiblechoices in a droping 
list

Then here is my question
1, I think some kind of loop is necessary in the 
pipeline. am I right? Is there some kind of component in cocoon that can 
do this?
2. Or this can be done by several pipelines working 
together, but this way, how can 
cocoonknowthe numberofelements,and the number 
ofattributes in every element in the page up to now?

Thanks for your kind help!
Thanks