Bug in portal-fw ??

2003-03-26 Thread Helmut Tammen
Hi,

I think Ive found a little bug in the portal framework. I hope this is the 
right place to report it.

Changing the resource uri of a coplet has no effect as long as tomcat is 
not shut down, the files in cache-dir are deleted manually and tomcat is 
restarted.
It does make no difference it the uri is changed via the admin pages of the 
portal or directly in the file copletprofile.xml.

Is there any workaround?

Helmut

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


Portal session-context in the portal-fw

2003-03-26 Thread Helmut Tammen
Hi,

I cant get any information from the session-context portal.

Following situation:
1. Coplet resource uri: resource uri=cocoon:/sunspotdemo-test/
2. pipeline in sitemap.xmap: map:match pattern=sunspotdemo-test
map:generate src=resources/auth/test.xsp type=serverpages/
map:transform type=session/
map:serialize type=xml/
  /map:match
3. xsp - file test.xsp (excerpt):
  xsp:page xmlns:xsp=http://apache.org/xsp;
xmlns:session=http://apache.org/xsp/session/2.0;
URI:session:getxml context=portal path=/configuration/uri/br/
color:session:getxml context=portal 
path=/layout/coplets/content/background/color/
  /xsp:page

Result:
Test.xsp is called and executed (I do some more other things inside it 
which work fine) but the strings after URI: and color: are emtpy.

Thanks Helmut

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


RE: Can I do this?

2003-03-26 Thread Reinhard Pötz
If I understand your request right you would have to write a custom
input module or an action if you want to do something special with a
request paramter.

Reinhard

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 26, 2003 12:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Can I do this?
 
 
 It's really working :) Thanks ! :)
 
 I just have one problem, if I search for two terms it goes as 
 term1+term2 and it produces no results, as well if i type 
 them under quotes, like term1 term2 :|
 
 Can I parse the querystring on the fly ?
 
 Thanks
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2003 11:01 PM
 Subject: Re: Can I do this?
 
 
  Oops... forget it I've changed the wrong cocoon.xconf (I'm 
 working on 
  the network, but have changed local file :| ), it's now error free:)
 
  Thanks
 
 
  - Original Message -
  From: Reinhard Pötz [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, March 25, 2003 10:56 PM
  Subject: RE: Can I do this?
 
 
  Which cocoon version do you use?
 
  If you use 2.04 it seems to me that input modules are not 
 supported by 
  the compiled sitemap. But I'm not sure because I've been 
 using Cocoon 
  2.1dev for month (interpreted sitemap and input modules 
 work). But be 
  warned - Cocoon 2.1 is still alpha!!! But I think this will 
 change in 
  the nearer future.
 
  Regards,
  Reinhard
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 11:48 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Can I do this?
  
  
   Thanks :)
  
   I've added them into cocoon.xconf, but know i'm having this:
  
   message Error while creating node 'generate' at file:/C:/Program 
   Files/Apache Group/Tomcat 
   4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
  
   description 
   org.apache.avalon.framework.configuration.ConfigurationExcepti
   on: Error while creating node 'generate' at file:/C:/Program 
   Files/Apache Group/Tomcat 
   4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
  
   that's here:
  
 map:match pattern=do-search
  
   map:generate type=file 
   src=http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
   fcgi?db=pubmed
   amp;term={request:query}amp;retmax=200/
   map:transform type=xslt 
 src=stylesheets/pubmed2html.xsl/
   map:serialize type=html/
   /map:match
  
  
   I'm doing anything wrong? Or do I need to use, input-module 
   name=request/ ?
  
   TIA
  
   Joao Cesar
  
  
  
  
  
  
  
  
  
  
  
   - Original Message -
   From: Reinhard Pötz [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 10:29 PM
   Subject: RE: Can I do this?
  
  
   Checkout input modules - they should be available in 2.04. They 
   grant you easy access to the request parameters.
  
   map:generate type=file 
   src=http://blablabla?term={request:query}/
  
   Regards,
   Reinhard
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 10:54 PM
   To: [EMAIL PROTECTED]
   Subject: Can I do this?
  
  
   Can I (?) do anything like this:
  
   map:match pattern=search?query=*
   map:generate type=file src=http://blablabla?term={1}/
   map:transform type=xslt 
 src=stylesheets/search2html.xsl/
   map:serialize type=html/
   /map:match
  
   I've found that if I do (...) pattern=*.search (...)  
 it works, 
   and i can do for example search phrase.search in the 
 address bar 
   and it matches with the generate prototype.. but i want 
 to use that 
   notation to match a GET form.
  
   Thanks
  
   João César
   [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]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: how instantiate an Action for each session?

2003-03-26 Thread Reinhard Pötz
You can check in the action if the session is new - have a look at the
API (If I'm right there is a session.isNew() method ...)

Regards,
Reinhard

 -Original Message-
 From: vupt vupt [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 26, 2003 3:16 AM
 To: [EMAIL PROTECTED]
 Subject: how instantiate an Action for each session?
 
 
 Hi,
 
 I am hoping someone can help me with this. I have created an 
 Action and 
 would like an instance of that Action to be instantiated for each new 
 session that uses the Action.
 
 For example, take this snippet from my sitemap.
 
 map:components
map:actions
  map:action name=JukeBoxAction src=test.JukeBoxAction/
 /map:actions
 /map:components
 
 map:pipeline
   map:match pattern=jukeBox/jukeBox.xmap
 map:act type=JukeBoxAction
 map:generate src=xmlAction/xmlAction.xsp 
 type=serverpages/
 map:transform src=jukeBox/jukeBox.xsl/
 map:serialize type=html/
 /map:act
 /map:match
   /map:pipeline
 
 
 I would like an instance of JukeBoxAction to be created for 
 each person or 
 session that matches the above pattern.
 
 The behaviour right now is that one instance of the 
 JukeBoxAction object is 
 created and multiple sessions access the same object instance.
 
 I would like each session to create and use its own  
 JukeBoxAction instance.
 
 Any help with this problem would be most appreciated.
 Thanks.
 
 
 
 
 
 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
 http://join.msn.com/?page=features/junkmail
 
 
 -
 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-2.1-dev build fails

2003-03-26 Thread Stephan Michels


On Tue, 25 Mar 2003, Geoff Howard wrote:

 Ok, you're not crazy - the build is in fact broken.  Sort of.  What is
 broken is
 an old validation target that was recently put back in (validate-jars in
 src/targets/validate-build.xml).  It appears that everything is actually
 built correctly,
 but this old target has not been correctly updated to deal with blocks (at
 least on
 windows).  By the way, sorry for accusing you of using the old build
 method - I was looking at your second attempt using -D instead of
 build.properties and leapt to conclusions.

 For now, your quickest bet is to go to src/targets/webapp-build.xml and find
 the line:

 target name=webapp ...
 and remove the string validate-jars (and the comma) from the depends
 attribute (try line 127, column 191 or so)

 Unfortunately, when validate-jars was put back in, an override mechanism
 wasn't added so you're stuck manually editing the build file for now.

 I'll be submitting a patch to first of all add the override mechanism so
 that this won't trip people up until the target is fixed.

Hmm, I don't get any problems with the validate-jars target, perhaps an
windows-only problem.

 (speaking to developers now)
 Unfortunately, fixing the target looks non-trivial to me.  The problem seems
 to be that moving the jar libs into src/blocks broke the basic mechanism.
 The filter on @JARS@ into build/temp/current-jars.xml for the blocks jars
 produces entries like:
 jarD:/eclipse/workspace/cocoon-2.1/src/blocks/batik/lib/batik-all-1.5b2.ja
 r/jar

 On quick inspection, check-jars.xsl seems to be looking for literal string
 matches from lib/jars.xml which will be impossible if fileset is returning
 absolute paths.  I tried various combinations of relative paths with no
 success.  Either some trick is needed to make
 xsl:if test=count($directory/jars/jar[normalize-space(text()) = $this]) =
 0
   xsl:message terminate=yes
 allow relative paths to match the absolute path (don't this this is
 feasible?)

 or

 fileset needs to be made/configured to return relative paths (don't know ant
 well enough myself)

 or

 some other means of checking jars needs to be devised (custom task?).

 Is this broken only on windows, or does this affect *nix and mac?

Can you send me your build/cocoon-2.1-dev/temp/current-jars.xml, then I'll
check this.

Stephan.


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



Re: Can I do this?

2003-03-26 Thread Konstantin Piroumian
You can also use XPath expressions to parse your parameters, e.g.:
{request:translate(query, '+', ' ')}

--
  Konstantin

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

 It's really working :) Thanks ! :)

 I just have one problem, if I search for two terms it goes as
 term1+term2 and it produces no results, as well if i type
 them under quotes, like term1 term2 :|

 Can I parse the querystring on the fly ?

 Thanks

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2003 11:01 PM
 Subject: Re: Can I do this?


  Oops... forget it I've changed the wrong cocoon.xconf (I'm
 working on
  the network, but have changed local file :| ), it's now error free:)
 
  Thanks
 
 
  - Original Message -
  From: Reinhard Pötz [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, March 25, 2003 10:56 PM
  Subject: RE: Can I do this?
 
 
  Which cocoon version do you use?
 
  If you use 2.04 it seems to me that input modules are not
 supported by
  the compiled sitemap. But I'm not sure because I've been
 using Cocoon
  2.1dev for month (interpreted sitemap and input modules
 work). But be
  warned - Cocoon 2.1 is still alpha!!! But I think this will
 change in
  the nearer future.
 
  Regards,
  Reinhard
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 11:48 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Can I do this?
  
  
   Thanks :)
  
   I've added them into cocoon.xconf, but know i'm having this:
  
   message Error while creating node 'generate' at file:/C:/Program
   Files/Apache Group/Tomcat
   4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
  
   description
   org.apache.avalon.framework.configuration.ConfigurationExcepti
   on: Error while creating node 'generate' at file:/C:/Program
   Files/Apache Group/Tomcat
   4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
  
   that's here:
  
 map:match pattern=do-search
  
   map:generate type=file
   src=http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
   fcgi?db=pubmed
   amp;term={request:query}amp;retmax=200/
   map:transform type=xslt
 src=stylesheets/pubmed2html.xsl/
   map:serialize type=html/
   /map:match
  
  
   I'm doing anything wrong? Or do I need to use, input-module
   name=request/ ?
  
   TIA
  
   Joao Cesar
  
  
  
  
  
  
  
  
  
  
  
   - Original Message -
   From: Reinhard Pötz [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 10:29 PM
   Subject: RE: Can I do this?
  
  
   Checkout input modules - they should be available in 2.04. They
   grant you easy access to the request parameters.
  
   map:generate type=file
   src=http://blablabla?term={request:query}/
  
   Regards,
   Reinhard
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 25, 2003 10:54 PM
   To: [EMAIL PROTECTED]
   Subject: Can I do this?
  
  
   Can I (?) do anything like this:
  
   map:match pattern=search?query=*
   map:generate type=file src=http://blablabla?term={1}/
   map:transform type=xslt
 src=stylesheets/search2html.xsl/
   map:serialize type=html/
   /map:match
  
   I've found that if I do (...) pattern=*.search (...)
 it works,
   and i can do for example search phrase.search in the
 address bar
   and it matches with the generate prototype.. but i want
 to use that
   notation to match a GET form.
  
   Thanks
  
   João César
   [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]
 
 



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



generate wbmp from svg

2003-03-26 Thread bruno nunes jacinto
How can I do to generate WPMP from a SVG file in cocoon?
Is there any serializer?
 Or what can I do?


Thanks for your help

Bruno jacinto.

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



RE: Cocoon-2.1-dev build fails

2003-03-26 Thread Geoff Howard


 -Original Message-
 From: Stephan Michels [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 5:26 AM
 To: cocoon-users
 Subject: RE: Cocoon-2.1-dev build fails

 On Tue, 25 Mar 2003, Geoff Howard wrote:

  Ok, you're not crazy - the build is in fact broken.  Sort of.  What is
  broken is
  an old validation target that was recently put back in (validate-jars in
snip/
 
  I'll be submitting a patch to first of all add the override mechanism so
  that this won't trip people up until the target is fixed.

 Hmm, I don't get any problems with the validate-jars target, perhaps an
 windows-only problem.
snip/
  Is this broken only on windows, or does this affect *nix and mac?

 Can you send me your build/cocoon-2.1-dev/temp/current-jars.xml, then I'll
 check this.

 Stephan.

I'll have to do that after work - looks like it was cleaned up out of
build/temp after a
successful build (interestingly blocks-build.xml wasn't).

Geoff


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



generate wbmp from svg

2003-03-26 Thread bruno nunes jacinto
How can I do to generate WPMP from a SVG file in cocoon?
Is there a serializer? Or what can I do?

Thanks for your help

Bruno Jacinto

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



Re: Orcale-XML-Parser in Coccon2

2003-03-26 Thread Uwe Gerger
Hello,
I change the cocoon.xconf to use the Oracel-parser:
xml-parser class=oracle.xml.jaxp.JXSAXParser
logger=core.xml-parser

parameter name=sax-parser-factory
value=oracle.xml.jaxp.JXSAXParserFactory/
parameter name=document-builder-factory
value=oracle.xml.jaxp.JXDocumentBuilderFactory/
/xml-parser

When starting the web-server an loading a cocoon-application I get the
following error messages in core.log:


DEBUG   (2003-03-26) 13:20.16:866   [core.startup] (Unknown-URI)
Unknown-thread/DefaultComponentHandler: ComponentHandler initialized
for: oracle.xml.jaxp.JXSAXParser
DEBUG   (2003-03-26) 13:20.16:866   [core.startup] (Unknown-URI)
Unknown-thread/ExcaliburComponentManager: Could not access the Component
for role: org.apache.avalon.excalibur.xml.Parser
java.lang.IllegalAccessException: oracle.xml.jaxp.JXSAXParser
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:102)
at
org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(DefaultComponentHandler.java:106)
at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.java:139)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:374)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:324)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:266)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:499)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:453)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:361)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletContextImpl.java:752)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletContextImpl.java:726)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
ERROR   (2003-03-26) 13:20.16:866   [core] (Unknown-URI)
Unknown-thread/Cocoon: Could not configure Cocoon environment
org.apache.avalon.framework.component.ComponentException: Could not
access the Component
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:407)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:324)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:266)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:499)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:453)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:361)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletContextImpl.java:752)
at
weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletContextImpl.java:726)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
java.lang.IllegalAccessException: oracle.xml.jaxp.JXSAXParser
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:102)
at
org.apache.avalon.excalibur.component.DefaultComponentHandler.doGet(DefaultComponentHandler.java:106)
at
org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.java:139)
at

XMLForm: could I use repeat tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hello,

I want to have a XMLForm view with a code that could be (I think) like this:

xf:repeat nodeset=variable
  xf:output ref=variableName/
  xf:output ref=variableValue/
  xf:output ref=variableOrder/
/xf:repeat


My goal is to display an array like this:

display

Variables:

variableNamevariableValue   variableOrder
-   -
server  sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap, etc...) I 
could store this variable for the repeat tag. The data come from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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



Re: XMLForm: could I use repeat tag with Collection or ...

2003-03-26 Thread ivelin
should work.

-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use repeat tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:

xf:repeat nodeset=variable
  xf:output ref=variableName/
  xf:output ref=variableValue/
  xf:output ref=variableOrder/
/xf:repeat


My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this variable for the repeat tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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


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



RE: XMLForm: could I use repeat tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hi Ivelin,

You means that I could use a Collection to store my data?

Regards
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 14:54
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use repeat tag with Collection or ...


should work.

-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use repeat tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:

xf:repeat nodeset=variable
  xf:output ref=variableName/
  xf:output ref=variableValue/
  xf:output ref=variableOrder/
/xf:repeat


My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this variable for the repeat tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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


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


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



Re: XMLForm: could I use repeat tag with Collection or ...

2003-03-26 Thread ivelin
Yes. any Collection for the nodeset.


-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 8:00 AM
Subject: RE: XMLForm: could I use repeat tag with Collection or ...


Hi Ivelin,

You means that I could use a Collection to store my data?

Regards
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 14:54
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use repeat tag with Collection or ...


should work.

-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use repeat tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:

xf:repeat nodeset=variable
  xf:output ref=variableName/
  xf:output ref=variableValue/
  xf:output ref=variableOrder/
/xf:repeat


My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this variable for the repeat tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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


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


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


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



Re: Portal session-context in the portal-fw

2003-03-26 Thread Helmut Tammen
Here are some additional informations:

Cocoon - Verion: 2.1-dev (CVS)

All attributes in the session:
Name: uprofile:portalhandler|sunspotdemo:user_5_guest_guest Value: 
{misc=[Lorg.w3c.dom.Node;124154, typeConfPaths=[profile/layout- 
profile[not(*)]/portal[not(*)]/layouts[not(*)]/layout[not(*) 
]/background[not(*)]/[EMAIL PROTECTED] and formpath and formdescription], 
profile/layout-profile[not(*)]/portal[not(*)]/layouts[not(*) 
]/layout[not(*)]/font[not(*)]/[EMAIL PROTECTED] and formpath and 
formdescription], profile/layout-profile[not(*)]/portal[not(*) 
]/columns[not(*)]/[EMAIL PROTECTED] and formpath and formdescription], 
profile/portal-profile[not(*)]/content[not(*) 
]/[EMAIL PROTECTED]/[EMAIL PROTECTED] and formpath and formdescription], 
profile/portal-profile[not(*)]/content[not(*) 
]/[EMAIL PROTECTED]/coplets[not(*)]/[EMAIL PROTECTED] and number and 
position]/status[not(*)]/[EMAIL PROTECTED] and formpath and 
formdescription], profile/portal-profile[not(*)]/content[not(*) 
]/[EMAIL PROTECTED]/coplets[not(*)]/[EMAIL PROTECTED] and number and 
position]/status[not(*)]/[EMAIL PROTECTED] and formpath and 
formdescription]], portalLayouts={html=[layout: null], wap=[layout: 
null]}, copletLayouts={html=[layout: null], wap=[layout: null]}, 
typePaths=[profile/layout-profile[not(*)]/portal[not(*)]/layouts[not(*) 
]/layout[not(*)]/background[not(*)]/color[not(*) 
]/backgroundcolor|Backgroundcolor, profile/layout-profile[not(*) 
]/portal[not(*)]/layouts[not(*)]/layout[not(*)]/font[not(*) 
]/color[not(*)]/textcolor|Fontcolor, profile/layout-profile[not(*) 
]/portal[not(*)]/columns[not(*)]/number[not(*)]/columnnumber|Amount, 
profile/portal-profile[not(*)]/content[not(*) 
]/[EMAIL PROTECTED]/width[not(*)]/CARDINAL|Width, profile/portal- 
profile[not(*)]/content[not(*)]/[EMAIL PROTECTED]/coplets[not(*) 
]/[EMAIL PROTECTED] and number and position]/status[not(*)]/visible[not(*) 
]/BOOLEAN|Visibile, profile/portal-profile[not(*)]/content[not(*) 
]/[EMAIL PROTECTED]/coplets[not(*)]/[EMAIL PROTECTED] and number and 
position]/status[not(*)]/size[not(*)]/copletsize|Size], 
defCoplets={sundnnews=[coplet: null], customnews=[coplet: null], 
feedback=[coplet: null], personalizeguest=[coplet: null], S0=[coplet: 
null], consultantprofile=[coplet: null], germany=[coplet: null], 
S1=[coplet: null], banknews=[coplet: null]}, profile=[#document-fragment: 
null], mediaCoplets={html={}, wap={}}}

Name: portalConfportalhandler:sunspotdemo Value: {S=sunspotdemo-portal, 
D=profiles/copletprofile.xml, M=cocoon:raw:/sunspotdemoresource- 
userprofile, R=profiles/admintypes.xml, K=cocoon:raw:/sunspotdemoresource- 
saveroleprofile, F=profiles/types.xml, H=cocoon:raw:/sunspotdemoresource- 
saveglobalprofile, U=false, J=cocoon:raw:/sunspotdemoresource-roleprofile, 
C=profiles/layoutprofile.xml, T=sunspotdemo, 
N=cocoon:raw:/sunspotdemoresource-saveuserprofile, 
P=cocoon:raw:/sunspotdemoresource-userstatus, B=sunspotdemo-portal, 
Q=cocoon:raw:/sunspotdemoresource-saveuserstatus, 
G=profiles/globalprofile.xml, V=1, E=profiles/copletprofile.xml}

Name: org.apache.cocoon.webapps.authentication.Handlers Value: 
{portalhandler=authentication-Handler portalhandler}

Name: org.apache.cocoon.webapps.authentication.SessionContext Value: 
[EMAIL PROTECTED]

Name: org.apache.cocoon.webapps.session.context.TransactionState Value: 
[EMAIL PROTECTED]@f2625f} 

Name: org.apache.cocoon.webapps.session.context.SessionContext Value: 
{org.apache.cocoon.webapps.portal.context.SessionContext:[EMAIL PROTECTED] 




Hi,

I cant get any information from the session-context portal.

Following situation:
1. Coplet resource uri: resource uri=cocoon:/sunspotdemo-test/
2. pipeline in sitemap.xmap: map:match pattern=sunspotdemo-test
map:generate src=resources/auth/test.xsp type=serverpages/
map:transform type=session/
map:serialize type=xml/
/map:match
3. xsp - file test.xsp (excerpt):
xsp:page xmlns:xsp=http://apache.org/xsp;
xmlns:session=http://apache.org/xsp/session/2.0;
URI:session:getxml context=portal path=/configuration/uri/br/
color:session:getxml context=portal 
path=/layout/coplets/content/background/color/
/xsp:page

Result:
Test.xsp is called and executed (I do some more other things inside it 
which work fine) but the strings after URI: and color: are emtpy.

Thanks Helmut

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





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


RE: XMLForm: could I use repeat tag with Collection or ...

2003-03-26 Thread Sylvain.Thevoz
Hi again,

If I take a look at the wizard example, I notice that the getter method (for a HashMap 
object) uses a Set class:

public Set getObject() {
  return object.entrySet();
{

Do I need something like that with a collection?


About XPath and a Collection:
if I have a Collection (variables) that contains variable objects and this object 
contains 2 attributes (name and order), how do you access to these data?

If I try:
code
xf:repeat nodeset=variables/variable
  xf:output ref=name/
  xf:output ref=orderrder/
/xf:repeat
code

Am I in the right way

Thanks for your help.
Regards
Sylvain



-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 15:10
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use repeat tag with Collection or ...


Yes. any Collection for the nodeset.


-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 8:00 AM
Subject: RE: XMLForm: could I use repeat tag with Collection or ...


Hi Ivelin,

You means that I could use a Collection to store my data?

Regards
Sylvain

-Message d'origine-
De: ivelin [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. mars 2003 14:54
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: could I use repeat tag with Collection or ...


should work.

-=Ivelin=-
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:23 AM
Subject: XMLForm: could I use repeat tag with Collection or ...


Hello,

I want to have a XMLForm view with a code that could be (I think) like this:

xf:repeat nodeset=variable
  xf:output ref=variableName/
  xf:output ref=variableValue/
  xf:output ref=variableOrder/
/xf:repeat


My goal is to display an array like this:

display

Variables:

variableName variableValue variableOrder
 - -
server sfh3344 1
display red 2

display

My problem is that I don't know in which object (Collection, Array, HashMap,
etc...) I could store this variable for the repeat tag. The data come
from a database.

In the wizard example the author uses a HashMap.
But in this case I think it's not possible.

Is anyone could help me?

Thanks
Sylvain (T)

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


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


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


-
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: Orcale-XML-Parser in Coccon2

2003-03-26 Thread Vadim Gritsenko
Uwe Gerger wrote:

Hello,
I change the cocoon.xconf to use the Oracel-parser:
xml-parser class=oracle.xml.jaxp.JXSAXParser
You shouldn't touch this line. This specifies Avalon XML Parser 
component. JXSAXParser is neither Component, nor has anything to do with 
Avalon.

Vadim

logger=core.xml-parser

   parameter name=sax-parser-factory
value=oracle.xml.jaxp.JXSAXParserFactory/
   parameter name=document-builder-factory
value=oracle.xml.jaxp.JXDocumentBuilderFactory/
/xml-parser
When starting the web-server an loading a cocoon-application I get the
following error messages in core.log:
 

...



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


error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies




Apologies if this has been answered previously but I'm a relative newbie to Cocoon2.

I have a structured text file which is exported from a database (non SQL, a complete mess so there's no chance of using standard xsl logic to extract data) and need to convert it into ead-xml.

I am trying to see if I am capable of doing this using a TextParserGenerator to get it into an XML format that I can manipulate into ead. Unfortunately I keep getting the following Internal Server Error:

type fatal
message Error in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
description org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

Here's the bulk of the sitemap:

map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"
map:components
	map:generators default="file"
map:generator name="textparser"
	   src=""/
/map:generators
-- other components --
/map:components
map:pipelines
map:pipeline
map:match pattern=""
map:generate src="" type="textparser"
		map:parameter name="grammar" value="ead.grm"/
		map:parameter name="includeignorabletokens" value="false"/
/map:generate
map:serialize type="xml"/
/map:match
/map:pipeline
/map:pipelines
/map:sitemap

If the grammer file would be helpful I'll post it, but I'll try and keep this minimal for now.

Thanks.





RE: database forms

2003-03-26 Thread Scherler, Thorsten
Hi Stefan, hi Lorenzo,

The solution to go with an action seems to be quite practical because both of you have 
proposed that.
While I had a glance on the book Professional XML Schema I was think that our 
validation is existent but quite rudimental.

1) The select problem
 xsl:template match=dbf:listbox
   esql:connection
 esql:poolxsp:exprdbfpool/xsp:expr/esql:pool
 esql:execute-query
   esql:querySELECT xsl:value-of select=@entries-column/ FROM
 xsl:value-of select=@entries-table//esql:query
   esql:results
  select
   esql:row-results
 option
   esql:get-string column=name/
 /option
   /esql:row-results
/select
   /esql:results
 /esql:execute-query
   /esql:connection
 /xsl:template
 
 note: dbfpool is a variable that might be set by a sitemap-parameter
 
 Then use it in an xsp-page like:
 dbf:listbox entries-table=author entries-column=name/
 
 That get's you in one line a  listbox filled with all the names in the
 author-table. Defining another parameter like ref=authorid 
 you could then
 bind it to a field in the book table.
 

I had the same approach when I was coding the selectoption - block. I think that 
is your (Stefan) solution of The select problem

2) The Lorenzo approach
 
 2. Reply to Lorenzo
 That is quite close to what I was talking about. However I 
 don't like having
 to write an extensive configuration file. For example, I 
 don't like having
 to define listboxes using a block of esql every time. I'd 
 very much prefer
 something like I outlined above.
 Besides I don't need to use the same form elements again and again in
 different contexts (which your system seems to be very useful 
 for), it's
 more about being able to write one single form really quickly 
 and directly
 without loads of support code (like the esql) around it.
 
 
Stefan got a point there! Your example (Lorenzo) is very good and advanced. The only 
problem was mentioned by Stefan. If we use your example for further development we 
have to simplify the structure. Especially if I keep in mind that I have a block of 
question were I do not know the name. 

3) XMLFormXindice

 3. More thoughts: XMLForms
 I'd been looking into XMLForms before and reading Lorenzo's 
 note at the end
 of his last message I took another deeper look. I found a 
 quite interesting
 tutorial that describes how to replace the form model (currently
 incorporated by a JavaBean) by a model defined by an XML-File 
 that is linked
 to an XIndice database:
 http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormXindice
 
 I was wondering whether this would be worth a thought in this 
 case as well,
 since XML may be generated from any ordinary relational database, too.
 
 You would generate an XML-Model from the database, use it to 
 keep the form
 data and in the end send the data back to the database. That 
 would also have
 the advantage that you could build multi-page forms to gather 
 the data for
 one table (for example one form to gather the book data and a 
 separate one
 to select the author from a long list) and then in the end 
 send it to the
 database altogether (otherwise you would have to store the 
 book data without
 the author being filled in which wouldn't be possible, cause 
 the author
 field can't be empty...)
 
 So I am currently pondering about what to go for: an XSP 
 logicsheet approach
 as outlined above - that might be easier to implement right 
 now - or try to
 use XMLForms which would be a lot more flexible.

The problem with the logicsheet is the missing validation. 
The problem with the XMLFormXindice approach is the custom programming. If I compare 
your reference I find the ArtistAction.java that I have to edit and fill that with my 
fields. But like I stated before what will happen if I don't know this fields.

I am a bit confused, Stefan, do you want to use Xindice to store the options? Do you 
consider Xindice only as tool or do you want to use it?

4) Thought: DTD/Schema approach (in the spirit of DB2XML)
Some time ago I found this tool 
http://www.informatik.fh-wiesbaden.de/~turau/DB2XML/index.html DB2XML. The nice thing 
on it that the dtd will be generate on the fly. Using that this could give us the 
validation input. I admit it is quite similar to the Xindice approach. But the problem 
with Xindice is (in my opinion) the validation of dynamic data. 

The question remain whether DTD is enough or do we have to use schemas?

King regards
Thorsten

 
 Any advice is highly appreciated.
 Stefan
 
 
 
 AGAINST THE WAR!
 

Against Cesar Bush and the war!

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

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

XMLForm Schematron question

2003-03-26 Thread Rob Johnston
Hello -- I have a quick Schematron/XMLForm question.

Let's say I have the following XPath:

/data/selectedwhich can be either text or number
/data/number  a valid number

I want to write a validation pattern that will assert iff /data/selected
is 'number' and /data/number must be a number.

For instance:

rule context=/data/number
  assert test=number(.)=.
You must specify a valid number.
  /assert
/rule

works fine, but I want the above to happen ONLY if /data/selected is the
value number.  So if /data/selected is the value text, it will
completely ignore the check to see if the /data/number field is a
numeric value.

Any help would be appreciated.

thanks,
rob

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



Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Hello Rob,

you simply must add a predicate to the context:

rule context=/data/number[/data/selected = 'number']
  assert test=number(.)=.
You must specify a valid number.
  /assert
/rule
Furthermore I think you should change the test pattern. If someone writes 
5.0, it can return false. I have in mind 5.0 and 5, if the transformer tests 
on strings and not on numbers. (I had the same problem a few days ago with 
XSLT. Is the behaviour simply processor dependent or specified anywhere?) If 
you change the test to number() = number() you are on the safe side, 
because NaN = NaN returns always false.

Regards,

Joerg

Rob Johnston wrote:
Hello -- I have a quick Schematron/XMLForm question.

Let's say I have the following XPath:

/data/selectedwhich can be either text or number
/data/number  a valid number
I want to write a validation pattern that will assert iff /data/selected
is 'number' and /data/number must be a number.
For instance:

rule context=/data/number
  assert test=number(.)=.
You must specify a valid number.
  /assert
/rule
works fine, but I want the above to happen ONLY if /data/selected is the
value number.  So if /data/selected is the value text, it will
completely ignore the check to see if the /data/number field is a
numeric value.
Any help would be appreciated.

thanks,
rob
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: error trying to use TextParserGenerator

2003-03-26 Thread Stephan Michels

On Wed, 26 Mar 2003, Neil Davies wrote:

 Apologies if this has been answered previously but I'm a relative
 newbie to Cocoon2.

 I have a structured text file which is exported from a database
 (non SQL, a complete mess so there's no chance of using standard xsl
 logic to extract data) and need to convert it into ead-xml.

 I am trying to see if I am capable of doing this using a
 TextParserGenerator to get it into an XML format that I can manipulate
 into ead. Unfortunately I keep getting the following Internal Server
 Error:

 type fatal
 message Error in sitemap configuration : 
 org.apache.cocoon.generation.TextParserGenerator
 description
 org.apache.avalon.framework.configuration.ConfigurationException: Error
 in sitemap configuration :
 org.apache.cocoon.generation.TextParserGenerator
 sender org.apache.cocoon.servlet.CocoonServlet
 source Cocoon servlet

 Here's the bulk of the sitemap:

 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
 map:components
   map:generators default=file
 map:generator name=textparser
  src=org.apache.cocoon.generation.TextParserGenerator/
 /map:generators
 -- other components --
 /map:components
 map:pipelines
 map:pipeline
 map:match pattern=
 map:generate src=documents/et6766.txt type=textparser
   map:parameter name=grammar value=ead.grm/
   map:parameter name=includeignorabletokens value=false/
 /map:generate
 map:serialize type=xml/
 /map:match
 /map:pipeline
 /map:pipelines
 /map:sitemap

 If the grammer file would be helpful I'll post it, but I'll try and keep this 
 minimal for now.

Is there a detailed exception in the logs under WEB-INF/logs/*.log ?
(Perhaps you must set the log level higher)

With this exception I can only draw the conclusion, that the generator
have problems with the configuration within the components section.

Stephan.


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



Newbie: Best practices for DocBook XSL on Cocoon

2003-03-26 Thread Joe Williams



I have a question about using DocBook XSL with 
Cocoon, for anyone who has been successful in doing so. In hopes of getting some 
help and maybe helping others, I offer the following background.

After reading numerous posts to the archives for 
this list, and other resources, I am aware that not everyone is in favor of 
using the DocBook XSL stylesheets with Cocoon. However, I have also found that 
some people have done so successfully, and would like to do so 
myself.

I have been successful in serving DocBook XML 
content with a homegrown XSL stylesheet and CSS, but when I attempted to use the 
DocBook XSL to produce html, I get a blank page. (The transform runs fine from 
the command line.)

Looking at cocoon/WEB-INF/logs/error.log I see a 
fatal exception in "docbook/html/common/common.xsl; Line 1576; Column 35", 
"javax.xml.transform.TransformerException: 13 = 1" and farther down in the 
log, I see"java.lang.ArrayIndexOutOfBoundsException: 13 = 
1"

Going to "docbook/html/common/common.xsl; Line 
1576; Column 35", I see the following:

xsl:when test="$value !="''"

OK, so xalan doesn't like this line, I 
guess?

Here's my setup:

Cocoon 2.0.3

Using these classes in 
/usr/tomcat/webapps/cocoon/WEB-INF/lib:

xalan-2.3.1.jar

xalan2.jar (docbook extensions from 
Norm)

xercesImpl-2.0.0.jar

xml-apis.jar

Using jre 1.3.1_06

DocBook XML DTD 4.2

DocBook XSL 1.5

I would like to keep using xalan, but if I have to 
add saxon, please point me to a good procedure for doing so. Ditto for any other 
suggestions.

When I get the setup working, I will post the info 
to the list.

Thanks.

Joe


Re: XMLForm Schematron question

2003-03-26 Thread Rob Johnston
On Wed, 26 Mar 2003, Joerg Heinicke wrote:

 Hello Rob,
 
 you simply must add a predicate to the context:
 
 rule context=/data/number[/data/selected = 'number']
   assert test=number(.)=.
 You must specify a valid number.
   /assert
 /rule

Sweet.  I hadn't even thought about putting a predicate there.  That
worked perfectly.  I appreciate it!

thanks,
rob

 Furthermore I think you should change the test pattern. If someone writes 
 5.0, it can return false. I have in mind 5.0 and 5, if the transformer 
 tests on strings and not on numbers. (I had the same problem a few days ago 
 with XSLT. Is the behaviour simply processor dependent or specified 
 anywhere?) If you change the test to number() = number() you are on the 
 safe side, because NaN = NaN returns always false.
 
 Regards,
 
 Joerg
 
 Rob Johnston wrote:
 Hello -- I have a quick Schematron/XMLForm question.
 
 Let's say I have the following XPath:
 
 /data/selectedwhich can be either text or number
 /data/number  a valid number
 
 I want to write a validation pattern that will assert iff /data/selected
 is 'number' and /data/number must be a number.
 
 For instance:
 
 rule context=/data/number
   assert test=number(.)=.
 You must specify a valid number.
   /assert
 /rule
 
 works fine, but I want the above to happen ONLY if /data/selected is the
 value number.  So if /data/selected is the value text, it will
 completely ignore the check to see if the /data/number field is a
 numeric value.
 
 Any help would be appreciated.
 
 thanks,
 rob
 
 -- 
 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
on a slightly different note, how does one reference another rule context.
i.e.:

let's say i have two elts, /password and /password2:

pattern name=Password Validation Pattern id=password
rule context=/password
assert test=string-length(.) gt; 5Name
should be at least 6 characters./assert
assert test=string-length(.) lt; 60Password
should be less
than 60 characters./assert
/rule
rule context=/password2
assert test=string-length(.) gt; 5Name
should be at least 6 characters./assert
/rule
/pattern

...how can i validate that /password and /password2 are equal in the
rule for /password?  i could use a predicate, but that won't give the user
an error message (from an assert test).  perhaps, this solution is just as
simple (i hope)? =-)  [i'm pretty sure i tried referencing (../password2)
but it didn't seem to work.]


 -Original Message-
 From: Rob Johnston [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: Re: XMLForm Schematron question
 
 
 On Wed, 26 Mar 2003, Joerg Heinicke wrote:
 
  Hello Rob,
  
  you simply must add a predicate to the context:
  
  rule context=/data/number[/data/selected = 'number']
assert test=number(.)=.
  You must specify a valid number.
/assert
  /rule
 
 Sweet.  I hadn't even thought about putting a predicate there.  That
 worked perfectly.  I appreciate it!
 
 thanks,
 rob
 
  Furthermore I think you should change the test pattern. If 
 someone writes 
  5.0, it can return false. I have in mind 5.0 and 5, if the 
 transformer 
  tests on strings and not on numbers. (I had the same 
 problem a few days ago 
  with XSLT. Is the behaviour simply processor dependent or specified 
  anywhere?) If you change the test to number() = number() 
 you are on the 
  safe side, because NaN = NaN returns always false.
  
  Regards,
  
  Joerg
  
  Rob Johnston wrote:
  Hello -- I have a quick Schematron/XMLForm question.
  
  Let's say I have the following XPath:
  
  /data/selectedwhich can be either text or number
  /data/number  a valid number
  
  I want to write a validation pattern that will assert iff 
 /data/selected
  is 'number' and /data/number must be a number.
  
  For instance:
  
  rule context=/data/number
assert test=number(.)=.
  You must specify a valid number.
/assert
  /rule
  
  works fine, but I want the above to happen ONLY if 
 /data/selected is the
  value number.  So if /data/selected is the value text, it will
  completely ignore the check to see if the /data/number field is a
  numeric value.
  
  Any help would be appreciated.
  
  thanks,
  rob
  
  -- 
  
  System Development
  VIRBUS AG
  Fon  +49(0)341-979-7419
  Fax  +49(0)341-979-7409
  [EMAIL PROTECTED]
  www.virbus.de
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Navigation Issue

2003-03-26 Thread Ines Robbers
Hi list,

I'm building my first cocoon site on the basis of this article:
http://www.cocooncenter.de/cc/documents/resources/navigation/index.html

Now, I don't only want to use a menu on the left but also one above it,
one at the top of the page and a footer at the bottom. It all should
look like this: http://www.comprehend.de/unipotsdam/

I am uncertain about the approach: Do I stick all links in that one
toc.file? But how do I separate them? At the moment I'm working with
site:section for all menus but have different site:nav1, site:nav2
and so on.

In the menupage.xsl I then call the links with:

div id=links
xsl:apply-templates select=document($toc-file)/*/
/div 

But that way I have all menus together at once and in the same position.

My question: What do I do to be able to separately call the several
menus?

Many thanks for your help!!!

Ines



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



Re: Navigation Issue

2003-03-26 Thread Geoff Howard
Can't help you with that specific article, but you may want to check out 
Forrest which came out after it was written IIRC.  Forrest is a cocoon 
based project to provide a framework for creating the skin of a website in 
a maintainable and flexible way.

http://xml.apache.org/forrest/

Geoff Howard

At 11:50 AM 3/26/2003, you wrote:
Hi list,

I'm building my first cocoon site on the basis of this article:
http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
Now, I don't only want to use a menu on the left but also one above it,
one at the top of the page and a footer at the bottom. It all should
look like this: http://www.comprehend.de/unipotsdam/
I am uncertain about the approach: Do I stick all links in that one
toc.file? But how do I separate them? At the moment I'm working with
site:section for all menus but have different site:nav1, site:nav2
and so on.
In the menupage.xsl I then call the links with:

div id=links
xsl:apply-templates select=document($toc-file)/*/
/div
But that way I have all menus together at once and in the same position.

My question: What do I do to be able to separately call the several
menus?
Many thanks for your help!!!

Ines



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


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


Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Hi Delis,

for an XML like

root
  passwordmypassword/password
  password2mypassword/password2
/root
I would use the following schematron:

rule context=/root
  assert test=string-length(password)  5must be  5/assert
  assert test=string-length(password) lt; 60must be lt; 60/assert
  assert test=password = password2password != password2/assert
/rule
I didn't test it, but the above looks logical to me ;-) Everything is pure 
XSLT. But what you tried (../password2), should work also (if context is 
password). I guess there must something else wrong. E.g. /password AND 
/password2? How can an XML have two root nodes?

Regards,

Joerg

Delis, Christopher E. wrote:
on a slightly different note, how does one reference another rule context.
i.e.:
let's say i have two elts, /password and /password2:

pattern name=Password Validation Pattern id=password
rule context=/password
assert test=string-length(.) gt; 5Name
should be at least 6 characters./assert
assert test=string-length(.) lt; 60Password
should be less
than 60 characters./assert
/rule
rule context=/password2
assert test=string-length(.) gt; 5Name
should be at least 6 characters./assert
/rule
/pattern
...how can i validate that /password and /password2 are equal in the
rule for /password?  i could use a predicate, but that won't give the user
an error message (from an assert test).  perhaps, this solution is just as
simple (i hope)? =-)  [i'm pretty sure i tried referencing (../password2)
but it didn't seem to work.]
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
sheesh!  turned out to be a stupid error on my part (i should've posted the
whole xml file and you probably would've found it right away).  thanks for
helping!  here's what works:

?xml version=1.0 ?
schema ns=http://xml.apache.cocoon/xmlform;
xmlns=http://www.ascc.net/xml/schematron;
titleSchema for the Password Form/title
phase id=passwordView
pFor password information./p
active pattern=password/
/phase
pattern name=Password Validation Pattern id=password
rule context=/password
assert test=string-length(.) gt; 3Password
should be at least 4 characters./assert
assert test=string-length(.) lt; 60Password
should be less
than 60 characters./assert
assert
test=string(.)=string(../password2)Passwords do not match!/assert
/rule
rule context=/password2
assert test=string-length(.) gt; 3Password
should be at least 4 characters./assert
/rule
/pattern
/schema


 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 10:58 AM
 To: [EMAIL PROTECTED]
 Subject: Re: XMLForm Schematron question
 
 
 Hi Delis,
 
 for an XML like
 
 root
passwordmypassword/password
password2mypassword/password2
 /root
 
 I would use the following schematron:
 
 rule context=/root
assert test=string-length(password)  5must be  5/assert
assert test=string-length(password) lt; 60must be 
 lt; 60/assert
assert test=password = password2password != password2/assert
 /rule
 
 I didn't test it, but the above looks logical to me ;-) 
 Everything is pure 
 XSLT. But what you tried (../password2), should work also (if 
 context is 
 password). I guess there must something else wrong. E.g. 
 /password AND 
 /password2? How can an XML have two root nodes?
 
 Regards,
 
 Joerg
 
 
 Delis, Christopher E. wrote:
  on a slightly different note, how does one reference 
 another rule context.
  i.e.:
  
  let's say i have two elts, /password and /password2:
  
  pattern name=Password Validation Pattern id=password
  rule context=/password
  assert test=string-length(.) gt; 5Name
  should be at least 6 
 characters./assert
  assert test=string-length(.) lt; 
 60Password
  should be less
  than 60 characters./assert
  /rule
  rule context=/password2
  assert test=string-length(.) gt; 5Name
  should be at least 6 
 characters./assert
  /rule
  /pattern
  
  ...how can i validate that /password and /password2 are 
 equal in the
  rule for /password?  i could use a predicate, but that 
 won't give the user
  an error message (from an assert test).  perhaps, this 
 solution is just as
  simple (i hope)? =-)  [i'm pretty sure i tried referencing 
 (../password2)
  but it didn't seem to work.]
 
 -- 
 
 System Development
 VIRBUS AG
 Fon  +49(0)341-979-7419
 Fax  +49(0)341-979-7409
 [EMAIL PROTECTED]
 www.virbus.de
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Dynamic i18n catalogs?

2003-03-26 Thread Björn Voigt
Hi cocooners,

is it possible to create dynamic catalogues for the i18n-Transformer?
I mean XSP or Generator createt catalogues.
Thank you

Björn



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


RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
i take it back!  it still doesn't work =-(

i keep getting Passwords do not match! errors...

 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 11:20 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: XMLForm Schematron question
 
 
 sheesh!  turned out to be a stupid error on my part (i 
 should've posted the
 whole xml file and you probably would've found it right 
 away).  thanks for
 helping!  here's what works:
 
 ?xml version=1.0 ?
 schema ns=http://xml.apache.cocoon/xmlform;
 xmlns=http://www.ascc.net/xml/schematron;
 titleSchema for the Password Form/title
 phase id=passwordView
 pFor password information./p
 active pattern=password/
 /phase
 pattern name=Password Validation Pattern id=password
 rule context=/password
 assert test=string-length(.) gt; 
 3Password
 should be at least 4 
 characters./assert
 assert test=string-length(.) lt; 
 60Password
 should be less
 than 60 characters./assert
 assert
 test=string(.)=string(../password2)Passwords do not match!/assert
 /rule
 rule context=/password2
 assert test=string-length(.) gt; 
 3Password
 should be at least 4 
 characters./assert
 /rule
 /pattern
 /schema
 
 
  -Original Message-
  From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 26, 2003 10:58 AM
  To: [EMAIL PROTECTED]
  Subject: Re: XMLForm Schematron question
  
  
  Hi Delis,
  
  for an XML like
  
  root
 passwordmypassword/password
 password2mypassword/password2
  /root
  
  I would use the following schematron:
  
  rule context=/root
 assert test=string-length(password)  5must be  5/assert
 assert test=string-length(password) lt; 60must be 
  lt; 60/assert
 assert test=password = password2password != 
 password2/assert
  /rule
  
  I didn't test it, but the above looks logical to me ;-) 
  Everything is pure 
  XSLT. But what you tried (../password2), should work also (if 
  context is 
  password). I guess there must something else wrong. E.g. 
  /password AND 
  /password2? How can an XML have two root nodes?
  
  Regards,
  
  Joerg
  
  
  Delis, Christopher E. wrote:
   on a slightly different note, how does one reference 
  another rule context.
   i.e.:
   
   let's say i have two elts, /password and /password2:
   
   pattern name=Password Validation Pattern id=password
   rule context=/password
   assert test=string-length(.) 
 gt; 5Name
   should be at least 6 
  characters./assert
   assert test=string-length(.) lt; 
  60Password
   should be less
   than 60 characters./assert
   /rule
   rule context=/password2
   assert test=string-length(.) 
 gt; 5Name
   should be at least 6 
  characters./assert
   /rule
   /pattern
   
   ...how can i validate that /password and /password2 are 
  equal in the
   rule for /password?  i could use a predicate, but that 
  won't give the user
   an error message (from an assert test).  perhaps, this 
  solution is just as
   simple (i hope)? =-)  [i'm pretty sure i tried referencing 
  (../password2)
   but it didn't seem to work.]
  
  -- 
  
  System Development
  VIRBUS AG
  Fon  +49(0)341-979-7419
  Fax  +49(0)341-979-7409
  [EMAIL PROTECTED]
  www.virbus.de
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: error trying to use TextParserGenerator

2003-03-26 Thread Neil Davies


Is there a detailed exception in the logs under WEB-INF/logs/*.log ?
(Perhaps you must set the log level higher)
With this exception I can only draw the conclusion, that the generator
have problems with the configuration within the components section.
Stephan.

Okay. I have looked at the error.log file, I meant to mention this in my 
last email but I sent it without realising I hadn't, and it mentioned a 
ClassNotFoundException on the TextParserGenerator. I have looked in the 
sitemap.xmap in the jakara-home/webapps/cocoon directory and there is no 
mention of a TextParserGenerator in there, which must be causing the 
problem.

I am using Cocoon 2.0.4, which is the latest version I think. Is the 
TextParserGenerator included with this? The other generators work 
without any bother.

Can anyone point me in the direction of some information on this 
subject? I have looked at the user-documentation on the 
TextParserGenerator online.

Here is the error-report if it is of any help:

ERROR   (2003-03-26) 17:24.25:543   [core.manager] (/cocoon/eadcairs) 
Thread-10/Handler: Error compiling sitemap
org.apache.avalon.framework.configuration.ConfigurationException: Error 
in sitemap configuration : org.apache.cocoon.generation.TextParserGenerator
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap.configure(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:148)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
   at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
   at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassNotFoundException: 
org.apache.cocoon.generation.TextParserGenerator
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
   at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88)
   at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:263)
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap$Configurer.configGenerators(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:170)
   at 
org.apache.cocoon.www.file_.C_.jakarta_tomcat.webapps.cocoon.c2.eadcairs.sitemap_xmap.configure(C:\jakarta-tomcat\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/jakarta_tomcat/webapps/cocoon/c2/eadcairs\sitemap_xmap.java:126)
   at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)
   at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
   at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
   at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
   at java.lang.Thread.run(Thread.java:536)

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


Re: Dynamic i18n catalogs?

2003-03-26 Thread Jens Maukisch
Hi,

 is it possible to create dynamic catalogues for the i18n-Transformer?
 I mean XSP or Generator createt catalogues.

iirc you can point the catalogue location to a cocoon pipeline which
generates your catalogue.

hth

-- 
* best regards
* Jens Maukisch 


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



Re: Dynamic i18n catalogs?

2003-03-26 Thread Björn Voigt
Jens Maukisch schrieb:
Hi,


is it possible to create dynamic catalogues for the i18n-Transformer?
I mean XSP or Generator createt catalogues.


iirc you can point the catalogue location to a cocoon pipeline which
generates your catalogue.
hth

	

map:match pattern=file-*.xml
map:generate src=file.xml/
 map:transform type=i18n
 map:parameter name=locale value=../locale/
...
Is it possible, to give the i18n-transformer within
the pipeline a catalogue location, because I need parameter{1}
to generate the catalog
...
 /map:transform
 map:serialize/
/map:match
Thank you



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


[OT] sunBow-like licenses

2003-03-26 Thread Josema Alonso
Dear all,

Just a quick question.
What do I need to generate licenses like the sunBow one for my own product?
We're developing some widgets for Flash using Java, XML and Cocoon and my
company would like to distribute it with a XML license like the sunBow one,
for a given period of time, for example.

Any pointers would be very very much appreciated.

Maybe Martin or anybody else with the right knowledge can help me.
Thanks in advance.



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



Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Hello Christopher,

I mentioned it already before: I guess the error are /password and 
/password2 as the values of the context attributes of the rule 
element. I have never been using Schematron in Cocoon, but as I used it 
offline a stylesheet was created from this schematron XML description 
and the rule's contexts were used in the match attribute of 
xsl:template/. The problem is then, that you need two root elements, 
to get true out of your test. But that's not possible in XML. So I 
guessed that you must change /password to password (the same for 
password2).

Regards,

Joerg

Delis, Christopher E. wrote:
i take it back!  it still doesn't work =-(

i keep getting Passwords do not match! errors...


-Original Message-
From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 11:20 AM
To: '[EMAIL PROTECTED]'
Subject: RE: XMLForm Schematron question
sheesh!  turned out to be a stupid error on my part (i 
should've posted the
whole xml file and you probably would've found it right 
away).  thanks for
helping!  here's what works:

?xml version=1.0 ?
schema ns=http://xml.apache.cocoon/xmlform;
   xmlns=http://www.ascc.net/xml/schematron;
   titleSchema for the Password Form/title
   phase id=passwordView
   pFor password information./p
   active pattern=password/
   /phase
   pattern name=Password Validation Pattern id=password
   rule context=/password
   assert test=string-length(.) gt; 
3Password
   should be at least 4 
characters./assert
   assert test=string-length(.) lt; 
60Password
should be less
   than 60 characters./assert
   assert
test=string(.)=string(../password2)Passwords do not match!/assert
   /rule
   rule context=/password2
   assert test=string-length(.) gt; 
3Password
   should be at least 4 
characters./assert
   /rule
   /pattern
/schema


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


Cocoon-based Database Administration

2003-03-26 Thread Richard In Public
Hi

I'm developing a fairly standard e-commerce site and need to provide my
client with a web-based interface to manage products, accounts, etc. in a
MySQL database.

Would using XForms/Actions to create these admin pages (about 10 tables in
total) be a good way to go or re-inventing the wheel?

CMS systems (with which I have no experience) seem to be oriented to editing
html content?  I'm only starting my research but would appreciate any advice
from those who have gone before me.

Many thanks,

Richard Hoberman


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



Re[2]: Dynamic i18n catalogs?

2003-03-26 Thread Jens Maukisch
Hi,

 map:match pattern=file-*.xml
  map:generate src=file.xml/
   map:transform type=i18n
   map:parameter name=locale value=../locale/
 ...
 Is it possible, to give the i18n-transformer within
 the pipeline a catalogue location, because I need parameter{1}
 to generate the catalog
 ...

as mentioned in the documentation the catalogue to be used could be
overridden at the pipeline level by secifying parameters called
catalogue-name and/or catalogue-location
e.g.:
map:patameter name=catalogue-location value=foo/
map:patameter name=catalogue-name value=bar/

hth

-- 
* best regards
* Jens Maukisch 


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



Re: Newbie: Best practices for DocBook XSL on Cocoon

2003-03-26 Thread Joerg Heinicke
Hello Joe,

I used DocBook without any problems in Cocoon. It's a few months ago and 
I don't know what versions of Cocoon and Xalan I used. I guess it was 
Cocoon 2.0.3, Xalan 2.3.1 and DocBook 1.51. So try to test it with a 
more current version of DocBook (I don't have a file 
docbook/html/common/common.xsl, only docbook/common/common.xsl, but no 
line 1576). Furthermore it's possible, that it is a bug in Xalan 2.3.1, 
so try 2.4.1.

Regards,

Joerg

Joe Williams wrote:
I have a question about using DocBook XSL with Cocoon, for anyone who 
has been successful in doing so. In hopes of getting some help and maybe 
helping others, I offer the following background.
 
After reading numerous posts to the archives for this list, and other 
resources, I am aware that not everyone is in favor of using the DocBook 
XSL stylesheets with Cocoon. However, I have also found that some people 
have done so successfully, and would like to do so myself.
 
I have been successful in serving DocBook XML content with a homegrown 
XSL stylesheet and CSS, but when I attempted to use the DocBook XSL to 
produce html, I get a blank page. (The transform runs fine from the 
command line.)
 
Looking at cocoon/WEB-INF/logs/error.log I see a fatal exception in 
docbook/html/common/common.xsl; Line 1576; Column 35, 
javax.xml.transform.TransformerException: 13 = 1 and farther down in 
the log, I see java.lang.ArrayIndexOutOfBoundsException: 13 = 1
 
Going to docbook/html/common/common.xsl; Line 1576; Column 35, I see 
the following:
 
xsl:when test=$value !=''
 
OK, so xalan doesn't like this line, I guess?
 
Here's my setup:
 
Cocoon 2.0.3
 
Using these classes in /usr/tomcat/webapps/cocoon/WEB-INF/lib:
 
xalan-2.3.1.jar
 
xalan2.jar (docbook extensions from Norm)
 
xercesImpl-2.0.0.jar
 
xml-apis.jar
 
Using jre 1.3.1_06
 
DocBook XML DTD 4.2
 
DocBook XSL 1.5
 
I would like to keep using xalan, but if I have to add saxon, please 
point me to a good procedure for doing so. Ditto for any other suggestions.
 
When I get the setup working, I will post the info to the list.
 
Thanks.
 
Joe


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


cinclude:include attributes (other than src)

2003-03-26 Thread Gene Hsu
Title: cinclude:include attributes (other than src)





How are cinclude:include attributes (other than src) supposed to work?


attributes are: element, ns, prefix, and select


-- foo.xml --
foo
 item1/item
 item2/item
/foo
-- bar.xml --
bar
 itema/item
 itemb/item
/bar
-- baz.xsp --
xsp:page language=java
 xmlns:xsp=http://apache.org/xsp
 xmlns:cinclude=http://apache.org/cocoon/include/1.0
baz
 cinclude:include src="">
 cinclude:include src="">
/baz
/xsp:page
-- end --


I have only been able to see any effect when I specify the three 
attributes element, ns, and prefix. And the effect that I see is
that the foo.xml or bar.xml is wrapped by the prefix:element specified
in the cinclude statement.


e.g. If I had specified cinclude:include src="" element=FOO
prefix=A ns=http://foo/, this would result in
A:FOOfoo
 item1/item
 item2/item
/foo
/A:FOO


I have been unable to see any effect using the select attribute, even 
when the XPath should select nothing.


Are these bugs? or what is the intended behavior?
The wiki implies different behavior than this, and the source code
doesn't reveal many hints at first glance.


Win2k
Cocoon Binary 2.0.4 (jvm14 build)
Sun J2SDK 1.4.1_01
Xalan 2.5d1


Thanks


-- Gene





RE: XMLForm Schematron question

2003-03-26 Thread Delis, Christopher E.
i'm not sure i understand your explanation.  are you suggesting that i need
to create another root container (e.g., /root) to hold the password and
password2 nodes in order to reference other form objects?  that doesn't seem
right.  or, are you saying that if change /password to password and
/password2 to password2 in my assert, that it should work (i tried this,
but it didn't work)?

i could try creating another root to contain the password nodes, but then
i'd have to change the model (bean), too.  since my deadline for this
project isn't yesterday, i was hoping somebody out there has actually done
something similar to this in cocoon and was willing to share...  btw, i am
using cocoon 2.1 cvs snapshot (xml-cocoon-2.1-20030210233231.tar.gz).

TIA,

chris



 -Original Message-
 From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 1:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: XMLForm Schematron question
 
 
 Hello Christopher,
 
 I mentioned it already before: I guess the error are /password and 
 /password2 as the values of the context attributes of the rule 
 element. I have never been using Schematron in Cocoon, but as 
 I used it 
 offline a stylesheet was created from this schematron XML description 
 and the rule's contexts were used in the match attribute of 
 xsl:template/. The problem is then, that you need two root 
 elements, 
 to get true out of your test. But that's not possible in XML. So I 
 guessed that you must change /password to password (the same for 
 password2).
 
 Regards,
 
 Joerg
 
 
 Delis, Christopher E. wrote:
  i take it back!  it still doesn't work =-(
  
  i keep getting Passwords do not match! errors...
  
  
 -Original Message-
 From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 11:20 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: XMLForm Schematron question
 
 
 sheesh!  turned out to be a stupid error on my part (i 
 should've posted the
 whole xml file and you probably would've found it right 
 away).  thanks for
 helping!  here's what works:
 
 ?xml version=1.0 ?
 schema ns=http://xml.apache.cocoon/xmlform;
 xmlns=http://www.ascc.net/xml/schematron;
 titleSchema for the Password Form/title
 phase id=passwordView
 pFor password information./p
 active pattern=password/
 /phase
 pattern name=Password Validation Pattern id=password
 rule context=/password
 assert test=string-length(.) gt; 
 3Password
 should be at least 4 
 characters./assert
 assert test=string-length(.) lt; 
 60Password
 should be less
 than 60 characters./assert
 assert
 test=string(.)=string(../password2)Passwords do not 
 match!/assert
 /rule
 rule context=/password2
 assert test=string-length(.) gt; 
 3Password
 should be at least 4 
 characters./assert
 /rule
 /pattern
 /schema
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: XMLForm Schematron question

2003-03-26 Thread Joerg Heinicke
Delis, Christopher E. wrote:
i'm not sure i understand your explanation.  are you suggesting that i need
to create another root container (e.g., /root) to hold the password and
password2 nodes in order to reference other form objects?  that doesn't seem
right.  or, are you saying that if change /password to password and
/password2 to password2 in my assert, that it should work (i tried this,
but it didn't work)?
Yes, I meant the second one. On what XML are these XPaths evaluated? Or 
is it JXPath on objects? Then I guess somebody else must help. Because I 
don't know the according XML structure for the objects.

You can try to write a mail to Ivelin 
(http://wiki.cocoondev.org/Wiki.jsp?page=IvelinIvanov), who is the 
XForms guru. Or more general to the cocoon dev list.

Joerg

i could try creating another root to contain the password nodes, but then
i'd have to change the model (bean), too.  since my deadline for this
project isn't yesterday, i was hoping somebody out there has actually done
something similar to this in cocoon and was willing to share...  btw, i am
using cocoon 2.1 cvs snapshot (xml-cocoon-2.1-20030210233231.tar.gz).
TIA,

chris

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
Hello Christopher,

I mentioned it already before: I guess the error are /password and 
/password2 as the values of the context attributes of the rule 
element. I have never been using Schematron in Cocoon, but as 
I used it 
offline a stylesheet was created from this schematron XML description 
and the rule's contexts were used in the match attribute of 
xsl:template/. The problem is then, that you need two root 
elements, 
to get true out of your test. But that's not possible in XML. So I 
guessed that you must change /password to password (the same for 
password2).

Regards,

Joerg

Delis, Christopher E. wrote:

i take it back!  it still doesn't work =-(

i keep getting Passwords do not match! errors...



-Original Message-
From: Delis, Christopher E. [mailto:[EMAIL PROTECTED]
sheesh!  turned out to be a stupid error on my part (i 
should've posted the
whole xml file and you probably would've found it right 
away).  thanks for
helping!  here's what works:

?xml version=1.0 ?
schema ns=http://xml.apache.cocoon/xmlform;
  xmlns=http://www.ascc.net/xml/schematron;
  titleSchema for the Password Form/title
  phase id=passwordView
  pFor password information./p
  active pattern=password/
  /phase
  pattern name=Password Validation Pattern id=password
  rule context=/password
  assert test=string-length(.) gt; 
3Password
  should be at least 4 
characters./assert
  assert test=string-length(.) lt; 
60Password
should be less
  than 60 characters./assert
  assert
test=string(.)=string(../password2)Passwords do not 
match!/assert

  /rule
  rule context=/password2
  assert test=string-length(.) gt; 
3Password
  should be at least 4 
characters./assert
  /rule
  /pattern
/schema


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


Are Continuations Expensive?

2003-03-26 Thread Richard In Public
Hi

I'm about to dive into Continutations and I'm wondering about their
scalability.  I don't know much about the implementation, but isn't storing
the StackTrace expensive?

Richard Hoberman


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



phpbb-like bulletin board running under cocoon

2003-03-26 Thread Frederic
Hi everyone,

I'm rather new to cocoon and need to install phpbb (www.phpbb.com) or a
similar bulletin board/forum on a site that runs under cocoon.
Is it possible to integrate a bb easily under cocoon? Can someone give me
some info on this?


Thx in advance!

Frederic


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



RE: Cocoon-based Database Administration

2003-03-26 Thread Colin W. Kingsbury

Two separate problems here:

1. How to create a page which allows a user to do X (e.g. create a new
account)
2. How to manage the overall structure of pages which make up the
site.

Cocoon gives you XSP for (1) and well, Cocoon, for (2), if you want to
reinvent the wheel. IMHO if you are building a basic e-commerce site
you should look at what is already available out there:

http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=open+source+e-com
merce+MySQL

Cocoon is a powerful framework but if you haven't used it before it will
take you some time to come up to speed. If you are just trying to bang
out a small consulting job there are probably easier ways. YMMV.

-cwk.


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



convert from asp online form to something under cocoon

2003-03-26 Thread Frederic
Hi all,

I'm currently running a site under cocoon. The site needs to have several
online forms of which the data needs now to be sent into an Access database.
What way should I go from here? What are the possibilities to achieve this
(if such goal is achievable)?

Many thx in advance!

Frederic


PS: Can I work with asp cdonts without cocoon ruining my code?


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



Re: Cocoon-based Database Administration

2003-03-26 Thread Richard In Public
I've been using Cocoon for a few months now and there is no way I'm going to
trade in this sort of power for a configurable e-commerce suite!  I'd feel
like I was painting myself into a corner rather than preparing myself for
the unexpected ;-)  Alos, this is my first serious engagement with an open
source project and I'm having to much fun to quit now.  I just want to make
sure that I'm not overlooking any obvious layers for this sort of thing.

Thanks for the input :-)

Richard


- Original Message -
From: Colin W. Kingsbury [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:34 PM
Subject: RE: Cocoon-based Database Administration



 Two separate problems here:

 1. How to create a page which allows a user to do X (e.g. create a new
 account)
 2. How to manage the overall structure of pages which make up the
 site.

 Cocoon gives you XSP for (1) and well, Cocoon, for (2), if you want to
 reinvent the wheel. IMHO if you are building a basic e-commerce site
 you should look at what is already available out there:

 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=open+source+e-com
 merce+MySQL

 Cocoon is a powerful framework but if you haven't used it before it will
 take you some time to come up to speed. If you are just trying to bang
 out a small consulting job there are probably easier ways. YMMV.

 -cwk.


 -
 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-based Database Administration

2003-03-26 Thread Richard In Public
P.S.  I'm looking into Castor...

- Original Message - 
From: Colin W. Kingsbury [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:34 PM
Subject: RE: Cocoon-based Database Administration


 
 Two separate problems here:
 
 1. How to create a page which allows a user to do X (e.g. create a new
 account)
 2. How to manage the overall structure of pages which make up the
 site.
 
 Cocoon gives you XSP for (1) and well, Cocoon, for (2), if you want to
 reinvent the wheel. IMHO if you are building a basic e-commerce site
 you should look at what is already available out there:
 
 http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=open+source+e-com
 merce+MySQL
 
 Cocoon is a powerful framework but if you haven't used it before it will
 take you some time to come up to speed. If you are just trying to bang
 out a small consulting job there are probably easier ways. YMMV.
 
 -cwk.
 
 
 -
 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-based Database Administration

2003-03-26 Thread Ryan Hoegg
Colin W. Kingsbury wrote:

Two separate problems here:

1. How to create a page which allows a user to do X (e.g. create a new
account)
You could look into XSP or if you have 2.1 dev you could try XMLForms 
and create Actions

2. How to manage the overall structure of pages which make up the
site.
You might consider Forrest for this sort of thing.  It's built on Cocoon.

Cocoon gives you XSP for (1) and well, Cocoon, for (2), if you want to
reinvent the wheel. IMHO if you are building a basic e-commerce site
you should look at what is already available out there:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=open+source+e-com
merce+MySQL
Cocoon is a powerful framework but if you haven't used it before it will
take you some time to come up to speed. If you are just trying to bang
out a small consulting job there are probably easier ways. YMMV.
-cwk.



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


Re: convert from asp online form to something under cocoon

2003-03-26 Thread Upayavira
 I'm currently running a site under cocoon. The site needs to have
 several online forms of which the data needs now to be sent into an
 Access database. What way should I go from here? What are the
 possibilities to achieve this (if such goal is achievable)?

Can't really answer that bit.

 PS: Can I work with asp cdonts without cocoon ruining my code?

What do you mean here? CDONTS is a Windows system for sending emails. Cocoon 
does not have access to that at all. If what you're trying to do is send emails, 
you'll 
need to find a Cocoon way of sending mail. I've heard mention of a mail logicsheet.

Anyone know how to use Cocoon to send an email?

Regards, Upayavira


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



Re: Cocoon-based Database Administration

2003-03-26 Thread Upayavira
 P.S.  I'm looking into Castor...

And then there's Hibernate, Torque and OJB. I've heard someone recommend 
starting with OJB...

And have you checked out the petshop example that's being worked on on cocoon-
dev? Try downloading the latest from CVS and try that out. May answer some of your 
questions (and probably give you more - such as should I really be using 2.1...).

Regards, Upayavira


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



CLI output file names

2003-03-26 Thread Olson, Dave -Systems
When running Cocoon as a command line tool, how does Cocoon determine what
to name the resulting files?  I assume the URI you specify after the options
is matched by one of the matchers in the sitemap, and so I know where
processing starts, but since a serializer, when run as a web app, streams to
a servlet/browser, where does output go when using the CLI?

I've searched all the web links, books, FAQs and mailing lists, but I can
find very little on using the CLI.  I found an example in build.xml, but I
still don't understand how the output filenames are determined.  For
example, if I have a match element for usersguide.fo that passes it to the
fo2pdf serializer (FOP), how do I indicate the output PDF filename?  

puzzled,
DAvid Olson


 



 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 


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



Encoding and thorn

2003-03-26 Thread Tim Cavanagh
Hi,

I am putting in some text from MS word through our publishing system that
includes MS curly quotes (8-bit) when it gets to cocoon to be parsed via
XSLT I get an error. The error is caused by the the thorn element being
placed in the text (unclosed). Our publishing system is on a Mac and using
Mac roman encoding if this is an issue?

The input is:
Tim¹s ³good² day

The output is:
Tim”¥ús ”¥thorngood”¥ÿ day


Any ideas?

Cheers

Tim Cavanagh
DMIT
South Australia



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



Re: XMLForm Schematron question

2003-03-26 Thread Ugo Cei
Delis, Christopher E. wrote:
i take it back!  it still doesn't work =-(

i keep getting Passwords do not match! errors...
I'm currently using the following:

rule context=/
  assert test=string(password1) = string(password2)
Passwords do not match.
  /assert
/rule
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]