Re: Docbook and Cocoon?

2001-09-10 Thread Konstantin Agouros

On Sun, Sep 09, 2001 at 09:25:11PM -0700, Ovidiu Predescu wrote:
 On Sun, 9 Sep 2001 18:48:52 +0200, Konstantin Agouros [EMAIL PROTECTED] 
wrote:
 
  On Sat, Sep 08, 2001 at 07:54:15PM +0200, Konstantin Agouros wrote:
   Hi,
   
   thanks for the file. I tried this as well with xalan on the
   commandline as with cocoon. Now I don't get an endless loop but a
   Java.lang.outofmemory.  I guess I have to start the JVM with more
   virtual memory (I use the oasis docbook.dtd) and JDK 1.17. But it
   is really slow until it gets to the error.  So is this whole idea
   a workable solution for interactive cocooning?
   
  So I got it working now after starting the jvm with -mx64m. However
  cocoon 1.8.2 (or the xerces/xalan that come with it) do now work on
  docbook. Another issue is computing time. When I use xalan by hand
  on an athlon 1.1Ghz it takes 30seconds for the translation of
  Marinas simple example file. So how do I get docbook-files to a
  workable solution with cocoon?
 
 If you're an XEmacs/GNU Emacs user, you can try my XSLT-process
 mode. The latest version 2.1 has support for DocBook through the
 DocBook-XSL stylesheets. The supporting JVM is started only once, so
 processing the XML document runs quite fast from the second run
 onward.
Yes I use Emacs (btw is there a docbook-mode for emacs I am sure there is,
but where)

But what I plan to do is:
Put up my companies technical information (which machine is installed with what)
in docbook/xml. Then use cocoon to visualize it.

Konstantin
 
 You can find the XSLT-process mode at:
 
 http://xslt-process.sourceforge.net/index.php
 
 
 Regards,
 -- 
 Ovidiu Predescu [EMAIL PROTECTED]
 http://orion.nsr.hp.com/ (inside HP's firewall only)
 http://sourceforge.net/users/ovidiu/ (my SourceForge page)
 http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

-- 
Konstantin Agouros - NetAge Solutions, Dingolfinger Str. 6, 81673 Muenchen
Tel.: 089 666584-0, Fax: 089 666584-11, Email: [EMAIL PROTECTED]
--
Black holes are, where god divided by zero.

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: aggregate.xsp - C2b2 - is working???

2001-09-10 Thread Laurent KEMPENEERS

Hello,

I got the same result also. I identified the problem in the network
configuration of my computer: I can access to the internet only trough my
browser (no gateway are defined in my configuration), and then my JVM cannot
access to the internet and cannot find internet resources (especially those
mentioned in the aggregate sample of Cocoon). To check your network
configuration, try to ping an internet resources, if it fails, then you
probably have the same network configuration as mine... and the aggregate
example will not work.

-Message d'origine-
De : Karol Pokojowczyk/POKOJOWCZYK.COM [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 7 septembre 2001 12:44
À : [EMAIL PROTECTED]
Objet : aggregate.xsp - C2b2 - is working???


Hello cocoon-users,

  is aggregate.xsp working?
  I got an empty result.

-- 
Best regards,
 Karol  mailto:[EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: AW: Velocity and sitemap

2001-09-10 Thread Tobias Luikard

I'm getting old. Thanks a lot.

Tobias

(It was a hard weekend .-)  )

Jörn Heid wrote:

 Perhaps because of 'scr' instead of 'src' ;)

 -Ursprüngliche Nachricht-
 Von: Tobias Luikard [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. September 2001 09:54
 An: [EMAIL PROTECTED]
 Betreff: Re: Velocity and sitemap

 Hi out there,

 I got a similar problem like Daniel.

 I createt a example direktory called Connections. There a simple xls
 example Homer.html (-.xml and adress-html.xls) which works perfekt. But
 when I try to run the sales.html example a Internal server error
 occurres. The descripiton is: org.apache.cocoon.ProcessingException:
 Stylesheet URI can't be null but I specified one. The XSL tranformation
 works fine when I rename the files in Homer.xml and address-html.xsl (and
 call then Homer.html)

 Here the pipeline deffinitions from the sitemape.xmap in the Connections
 direcory:

  map:pipelines
   map:pipeline
map:match pattern=
 map:redirect-to uri=sales.html/
/map:match
map:match pattern=Homer.html
 map:generate src=Homer.xml/
 map:transform src=address-html.xsl/
 map:serialize/
/map:match
map:match pattern=sales.html
 map:generate src=sales.xml/
 map:transform scr=sales.xsl/
 map:serialize/
/map:match
   /map:pipeline
  /map:pipelines

 With this statement I included the sitemap from the Context-Root sitemap:

   map:pipeline
map:match pattern=Connections/**
 map:mount check-reload=yes src=Connections/
 uri-prefix=Connections/
/map:match
   /map:pipeline

 Can anyone give me a hint why sales.html isn't working?

 Thanks a lot

 Tobias

 Daniel Owsianski wrote:

  Hi,
 
  I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
  sitemap has the following entries:
 
  !-- A --
 map:match pattern=hello-page.vm
  map:generate type=velocity src=templates/hello-page.vm/
  map:transform src=stylesheets/simple-page2html.xsl/
  map:serialize type=html/
 /map:match
 
  !-- B --
 map:match pattern=hello-page
  map:generate type=velocity src=templates/hello-page.vm/
  map:transform src=stylesheets/simple-page2html.xsl/
  map:serialize type=html/
 /map:match
 
  !-- C --
 map:match pattern=templates/*
  map:generate type=velocity src={1}/
  map:transform src=stylesheets/simple-page2html.xsl/
  map:serialize type=html/
 /map:match
 
  Why only 'C' works fine ??
  Both 'A' and 'B' generates processing exception (unable to find
  'templates/hello-page.vm') in VelocityGenerator.
  Please, a bit of help and explanation.
  Thx in advance...
   Daniel
 
  -
  Please check that your question has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




How can i bring the border in PDF format?

2001-09-10 Thread sudhakar sankar

Hai,

I am trying to bring the table border in the PDF, which is produced from Cocoon. But, 
i can't bring the border for the table. If anybody know, please advise me.

Thanks in advance

Sudhakar Sankar


 




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




How to install Cocoon 1.8/2.0 in JRun 3.x?

2001-09-10 Thread sudhakar sankar

Hai,

If you know about how to install Cocoon 1.8 or Cocoon 2.0 in JRun Application Server 
3.x, Can u send me the full details.

Thanks in Advance

Sudhakar Sankar


 




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Namespaces

2001-09-10 Thread Martin Kavalar

Thanks for your quick reply. Your solution helped me for all namespaces 
delared like this:
xmlns:name=mynamespace
but what about the xmlns=myothernamespace ?
I cant come up with a way of removing this one.
thanks
martin

Laurent KEMPENEERS wrote:

One solution for this kind of namespaces manipulation in XSLT is to use the
exclude-result-prefixes attribute of the stylesheet element.

The value of this attribute consists of one or more space-separated prefix
names. The namespace declarations related to those prefix names are not
copied to the output.

Laurent

-Message d'origine-
De : Martin Kavalar [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 8 septembre 2001 14:04
À : Cocoon Mailing List
Objet : Namespaces


Is there a way to remove the namespaces during an xslt? We are doing 
XML-XML (XHTML) and the namespaces that appear in the root (html) 
element is the only thing that keeps our document from validating as 
xhtml 1.0
thanks for your help
martin


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: doubts regarding interwebapp communication

2001-09-10 Thread Davanum Srinivas

Raghu,

Since i have not used JetSpeed myselfAm forwarding this to the cocoon users list. 
FWIW, Am
quite sure that JetSpeed is maintining session variables, you need to check with their 
docs on
what they are and which ones you can use.

Thanks,
dims

--- raghu [EMAIL PROTECTED] wrote:
 Hello,
 I am working on forms in cocoon2.  What we have in our system is 2
 webapplications(cocoon2 and jetspeed,also a jakarta project).   Jetspeed is
 a portlet framework,  and we have cocoon forms coming as portlet in the
 jetspeed main page.
 My question is,
 When the user logs in to the jetspeed homepage,  is there any methods in
 cocoon by which i can get the parameter (user name) from the jetspeed.  I
 have connected both the webapplication to the same database(mysql).
What i want is,  when the user after logging to jetspeed , he clicks on
 cocoon form, cocoon takes the username as a parameter, and based on this
 parameter fills some fields from the database table so that the user neednot
 enter those fields everytime he wants to fill in a form.
 Hope u are clear,
 Thanx,
 Raghu
 
 
 Man cannot remake himself without suffering. For he is both
 the marble and the sculptor.
 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Word documents

2001-09-10 Thread java guru

Hi.,
  I am not sure whats going on with ur system but the
following just worked fine for me..on c2..

***
   map:match pattern=testdoc
map:read src=resources/docs/test.doc
mime-type=application/msword/
   /map:match
***
This is what i included in my sitemap and it worked
just fine with c2 and ie browser..

And please refer to logs..they have every details of
what happened from the time of url request to response
served...that way you know where/what is missing...



 --- Mohit Narain [EMAIL PROTECTED] wrote:
 I am still unable to load up word documents linked
 from a cocoon page. I
 have tried both mime-types (application/msword 
 application/winword) but
 neither one has worked.
 
 Please advise.
 Best Wishes...Mohit
 
 

-
 Please check that your question has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
  

=
Thanks and have great day
srini


Do You Yahoo!?
Send a newsletter, share photos  files, conduct polls, organize chat events. Visit 
http://in/ groups.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Word documents

2001-09-10 Thread Kowshik . Podder

You need to check the mime type that your web server is setting for 
word documents, if it is at all at the moment, since this is the type 
which your browser must be setup to look for.

Kosh

 -Original Message-
 From: m.narain 
 Sent: 10 September 2001 12:29
 To: cocoon-users
 Cc: m.narain
 Subject: Word documents
 
 
 I am still unable to load up word documents linked from a 
 cocoon page. I
 have tried both mime-types (application/msword  
 application/winword) but
 neither one has worked.
 
 Please advise.
 Best Wishes...Mohit
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Namespaces

2001-09-10 Thread Martin Kavalar

exclude-result-prefixes=#default myotherns

still prints out the default namespace...any clue why?

Laurent KEMPENEERS wrote:

Sorry, 

My answer was not complete... for the default namespace, you can use the
value '#default' as namespace prefix.

Laurent

-Message d'origine-
De : Martin Kavalar [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 10 septembre 2001 13:00
À : [EMAIL PROTECTED]
Objet : Re: Namespaces


Thanks for your quick reply. Your solution helped me for all namespaces 
delared like this:
xmlns:name=mynamespace
but what about the xmlns=myothernamespace ?
I cant come up with a way of removing this one.
thanks
martin

Laurent KEMPENEERS wrote:

One solution for this kind of namespaces manipulation in XSLT is to use the
exclude-result-prefixes attribute of the stylesheet element.

The value of this attribute consists of one or more space-separated prefix
names. The namespace declarations related to those prefix names are not
copied to the output.

Laurent

-Message d'origine-
De : Martin Kavalar [mailto:[EMAIL PROTECTED]]
Envoyé : samedi 8 septembre 2001 14:04
À : Cocoon Mailing List
Objet : Namespaces


Is there a way to remove the namespaces during an xslt? We are doing 
XML-XML (XHTML) and the namespaces that appear in the root (html) 
element is the only thing that keeps our document from validating as 
xhtml 1.0
thanks for your help
martin


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




[C2] Using Cocoon with several XSL.

2001-09-10 Thread jose . camacho

  I want to use one xsl for each pattern, something like this,

map:match pattern=pic/index.xml?TG=*
   map:generate type=servlet src=package1.Servlet?TG={1}/
   map:transform src=stylesheets/page/{1}.xsl/
 map:serialize type=html/

 /map:match
   in the pattern * means something like '101' and i have one xsl archive 
like 101.xsl.
How can i do it ?



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Confused about Actions

2001-09-10 Thread Vadim Gritsenko

It soon will become FAQ...

Try this:
   map:match pattern=**.xml
  map:act type=email
   map:generate src={../1}.xml/

Action also can return parameters, and you need parameters from previous (one level 
up) component.

Vadim

 -Original Message-
 From: Jörn Heid [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, September 09, 2001 10:08 AM
 To: Cocoon-Users
 Subject: Confused about Actions


 The following pipeline does not work as the parameter {1} isn't visible
 after the email-action:

   map:match pattern=**.xml
  map:act type=email
   map:generate src={1}.xml/
   map:transform type=xinclude
   !-- The parameter 1 is not visible
 anymore --
   map:parameter name=src value={1}.xml/
   /map:transform
   map:transform src=xsl/page.xsl/
   map:transform type=ses
   map:parameter name=src value={1}.xml/
   /map:transform
   map:serialize type=html/
 /map:act

 The following version works

   map:match pattern=**.xml
  map:act type=email
 !-- Look here --
 map:parameter name=1 value={1}/
   map:generate src={1}.xml/
   map:transform type=xinclude
   map:parameter name=src value={1}.xml/
   /map:transform
   map:transform src=xsl/page.xsl/
   map:transform type=ses
   map:parameter name=src value={1}.xml/
   /map:transform
   map:serialize type=html/
 /map:act

 as the action return a map which duplicates the params:

 Map sitemapParams = new HashMap ();
 for (int i = 0; i  params.getNames ().length; i++)
 try {
 sitemapParams.put (params.getNames ()[i], params.getParameter
 (params.getNames ()[i]));
 } catch (Exception ex) { ex.printStackTrace (); }


 Is this the right way?
 Why do actions act like that? Why doesn't the pipeline union the different
 parameter maps?

 JOERN_HEID


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: WebSphere/Cocoon Gurus - Help!!!!

2001-09-10 Thread Jack Hirasawa

Hi fellow cocoon-users

I was able to successfully get Cocoon 1.8.2 working under WebSphere, but 
only after I back-levelled WebSphere to 3.5.2 (I was trying to get it 
running under 3.5.4).  Does anyone know what might have changed between the 
two releases that causes Cocoon 1.8.2 to break?

Cheers...

Jack


From: Jack Hirasawa [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: WebSphere/Cocoon Gurus -  Help
Date: Sat, 08 Sep 2001 21:44:00 -0400
MIME-Version: 1.0
X-Originating-IP: [64.229.42.233]
Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id 
MHotMailBD64147F002440043188407D85140BE90; Sat, 08 Sep 2001 18:44:32 -0700
Received: (qmail 36370 invoked by uid 500); 9 Sep 2001 01:44:21 -
Received: (qmail 36359 invoked from network); 9 Sep 2001 01:44:20 -
From cocoon-users-return-23514-jackhirasawa Sat, 08 Sep 2001 18:46:11 -0700
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
X-OriginalArrivalTime: 09 Sep 2001 01:44:01.0130 (UTC) 
FILETIME=[E64DDCA0:01C138D0]
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

(A desperate plea for understanding in a mechanized ethos)

Has anyone successfully installed Cocoon 1.8.2 on Websphere 3.5.4?

I downloaded cocoon 1.8.2, and ran the install script.

I got an exception Error accessing the resource cocoon.properties

I changed cocoon.java to access it as a file instead of a resource.

I was successful in getting http://localhost/cocoon/Cocoon.xml to display.

When I try to display the samples using http://localhost/cocoon/index.xml I
get the exception below...

I have tried putting the jar files into the classpath in the admin.config
file (and I did put the sax-bugfix.jar and xerces.jar in front)

Any ideas? ... Anyone? ... I'm stumped.

here's the exception...

Error found handling the request.
org.xml.sax.SAXParseException: The markup in the document following the 
root
element must be well-formed.
   at org.apache.cocoon.Engine.handle(Engine.java:313)
   at org.apache.cocoon.Cocoon.service(Cocoon.java:184)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:626)
   at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
   at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
   at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
   at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:360)
   at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:775)
   at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:701)
   at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:478)
   at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:234)
   at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:138)
   at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)
   at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
   at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
   at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
   at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
   at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
   at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
   at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)
   at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:353)
   at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:220)
   at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
   at java.lang.Thread.run(Thread.java:481)




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, 

Re: To those who are experts in using fop

2001-09-10 Thread Christopher Painter-Wakefield


I think you can just set the page-width and page-height attributes in your
page master element, e.g.,

fo:layout-master-set
fo:simple-page-master
page-master-name=pmaster
page-width=11in page-height=8.5in
...
/fo:simple-page-master
/fo:layout-master-set

However, I'm *not* an expert in using fop :)

-Christopher




Please respond to [EMAIL PROTECTED]

To:   Cocoon-Users-MailingList [EMAIL PROTECTED]
cc:

Subject:  To those who are experts in using fop


I want to create a pdf file in landscape format.
First, is it possible and if so, is it complexer than using portrait
format?

Sorry, if it's a stupid question, I have never worked with fop before.

JOERN_HEID





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Velocity and sitemap

2001-09-10 Thread Michael McKibben

Hello, I believe also the Velocity Cocoon2 Generator currently configures
the Velocity engine to resolve template files relative to the templates/
directory inside the cocoon webapp, so your src path should not include
the templates/ part.

Regards,

--mike

On Sat, 8 Sep 2001, Daniel Owsianski wrote:

 Hi,

 I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
 sitemap has the following entries:

 !-- A --
map:match pattern=hello-page.vm
 map:generate type=velocity src=templates/hello-page.vm/
 map:transform src=stylesheets/simple-page2html.xsl/
 map:serialize type=html/
/map:match

 !-- B --
map:match pattern=hello-page
 map:generate type=velocity src=templates/hello-page.vm/
 map:transform src=stylesheets/simple-page2html.xsl/
 map:serialize type=html/
/map:match

 !-- C --
map:match pattern=templates/*
 map:generate type=velocity src={1}/
 map:transform src=stylesheets/simple-page2html.xsl/
 map:serialize type=html/
/map:match

 Why only 'C' works fine ??
 Both 'A' and 'B' generates processing exception (unable to find
 'templates/hello-page.vm') in VelocityGenerator.
 Please, a bit of help and explanation.
 Thx in advance...
  Daniel


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




include xml fragment in xsp

2001-09-10 Thread florent barbare

Hi all,

i'm trying to include an xml fragment
in a xsp page several ways (included FAQ way)
but never don't work. I'm using C2.

on following, this way don't work but no error message
is displayed

?xml version=1.0 encoding=ISO-8859-1?

xsp:page
  language=java

 xmlns:xsp=http://apache.org/xsp;
 xmlns:xinclude=http://www.w3.org/1999/XML/xinclude;
 xmlns:request=http://apache.org/servlet/request;




  page

content  
  xinclude:include
 href=first.xml parse=xml/


coin



   /content
  /page
/xsp:page


this one (above) says :
org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error
compiling result_xsp: Line 75, column 50: '}' expected

?xml version=1.0 encoding=ISO-8859-1?

xsp:page
  language=java

 xmlns:xsp=http://apache.org/xsp;
 xmlns:util=http://apache.org/cocoon/utils;
 xmlns:request=http://apache.org/servlet/request;




  page

content

   util:include-file name=../users/first.xml/
util:get-file-contents name=../users/first.xml/
util:include-uri name=../users/first.xml/


   /content
  /page
/xsp:page

Thanks in advance for help.

Florent


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Cocoon 1.8.2 - .htaccess?

2001-09-10 Thread Elisa Green

My search in FAQs and alternative resources have turned up
nothing on cocoon security settings with .htaccess.

We have a virtual host set up on Apache 1.3.14 for a development
space which is to be password protected using .htaccess files. 
Tomcat 3.2.1 and Cocoon 1.8.2 are also set up on our Sun Solaris
5.8 platform.

These are our settings for the virtual host in Apache
(httpd.conf):
Listen 80
Listen 
.
.
.
VirtualHost xxx.xx.xx.x:
DocumentRoot /usr/local/apache/www

Directory /
AllowOverride All
Options None
Allow from all
/Directory

/VirtualHost

Tomcat and Cocoon are working well to deliver unprotected pages,
but all .xml pages (handled by the cocoon server) are displayed
without login.

I am hoping that solving this problem will address the strange
behaviour that we have recently had.  This includes a login
dialogue box which does not authenticate for any known userid and
password.  The login dialogue box has to be cancelled many times
(it seems to be related to the complexity of the page).  When all
the dialogue boxes are cancelled, the page is displayed with all
images broken.  Note that if login has already occurred through a
.html or .jsp file (Apache and Tomcat are authenticating as
expected), these same pages are delivered fine.

The .htaccess file is under the www directory and a directory of
images is located under www.

Tomcat settings for cocoon are:
Alias /cocoon /usr/local/tomcat/webapps/cocoon
Directory /usr/local/tomcat/webapps/cocoon
Options Indexes FollowSymLinks
/Directory
ApJservMount /cocoon /cocoon
AddType text/xml .xml
AddHandler jserv-servlet .xml

How do I make sure that cocoon does not by-pass .htaccess files?

Elisa
[EMAIL PROTECTED]

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Nobody Knows HOW TO SAVE STREAM ON DISK!!

2001-09-10 Thread cib

Hi,
I've been sending message everywhere and reading any book on jsp,
and nowhere it's told how I can get an xsp to record, or update a file.
It's crazy!!

I 've got an xsp which creates or recreate an xsl each time database is
changed.
But how can I save this stream from the xsp on my disk, on my server, so
that this xsl can be used on requests to transform my xml files.

Please, java is chinese to me, but i really need to record the file to my
disk for my app to work at last.

Cib

France, Bordeaux, xml and gay pride.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Nobody Knows HOW TO SAVE STREAM ON DISK!!

2001-09-10 Thread Christopher Painter-Wakefield


I think the reason nobody is answering is that nobody on this list knows
offhand how to do it.  They would have to spend time looking up the
appropriate Java references, etc., for your benefit.  I would suggest that
what you are trying to do is not basic xsp but very advanced, and therefore
requires some Java knowledge.  So you may need to take a little time
learning some Java, like it or not.  Otherwise, may I suggest that, since
nobody on this list has a quick answer for you, you take your question to a
Java newsgroup or mailing list, where there will be many Java experts to
help you.




Please respond to [EMAIL PROTECTED]

To:   Cocoon User Mail List [EMAIL PROTECTED]
cc:

Subject:  Nobody Knows HOW TO SAVE STREAM ON DISK!!


Hi,
I've been sending message everywhere and reading any book on jsp,
and nowhere it's told how I can get an xsp to record, or update a file.
It's crazy!!

I 've got an xsp which creates or recreate an xsl each time database is
changed.
But how can I save this stream from the xsp on my disk, on my server, so
that this xsl can be used on requests to transform my xml files.

Please, java is chinese to me, but i really need to record the file to my
disk for my app to work at last.

Cib

France, Bordeaux, xml and gay pride.





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Nobody Knows HOW TO SAVE STREAM ON DISK!!

2001-09-10 Thread Vadim Gritsenko

 -Original Message-
 From: cib [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 2:30 PM
 To: Cocoon User Mail List
 Subject: Nobody Knows HOW TO SAVE STREAM ON DISK!!
 
 
 Hi,
 I've been sending message everywhere and reading any book on jsp,
 and nowhere it's told how I can get an xsp to record, or update a file.
 It's crazy!!
 
 I 've got an xsp which creates or recreate an xsl each time database is
 changed.
 But how can I save this stream from the xsp on my disk, on my server, so
 that this xsl can be used on requests to transform my xml files.

Why don't you just use this XSL without saving to disk:
   !-- generates XSL --
   map:match pattern=xsl-source
map:generate src=stylesheets/simple-page2html.xsl/
map:serialize type=xml/
   /map:match
   !-- uses generated XSL --
   map:match pattern=xsl-cocoon
map:generate src=docs/hello-page.xml/
map:transform src=cocoon:/xsl-source/
map:serialize/
   /map:match

Vadim

 
 Please, java is chinese to me, but i really need to record the file to my
 disk for my app to work at last.
 
 Cib
 
 France, Bordeaux, xml and gay pride.
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Nobody Knows HOW TO SAVE STREAM ON DISK!!

2001-09-10 Thread Marcelo F. Ochoa

cib wrote:

Hi,
I've been sending message everywhere and reading any book on jsp,
and nowhere it's told how I can get an xsp to record, or update a file.
It's crazy!!

I 've got an xsp which creates or recreate an xsl each time database is
changed.
But how can I save this stream from the xsp on my disk, on my server, so
that this xsl can be used on requests to transform my xml files.

Please, java is chinese to me, but i really need to record the file to my
disk for my app to work at last.

Cib

France, Bordeaux, xml and gay pride.

  Store it as Stefano's Compiled XML format, look at this email threads 
for more details 
(http://marc.theaimsgroup.com/?l=xml-cocoon-devm=97178193218808w=2).
  Best regards, Marcelo.

PD: The zip file includes into this email has the source for the XML 
Compiler/Interpreter.

-- 
Marcelo F. Ochoa - [EMAIL PROTECTED]
Do you Know DB Prism? Look @ http://www.plenix.com/dbprism/
More info?
Chapter 21 of the book Professional XML Databases (Wrox Press 
http://www.wrox.com/)
Chapter 8 of the book Oracle  Open Source (O'Reilly 
http://www.oreilly.com/catalog/oracleopen/)
---
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-30 Fax: +54-2293-31





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




xlink namespace exception

2001-09-10 Thread Dinkar Ganti

Hello,

I am trying to generate an SVG page that has an xlink. CocoonServlet
exception throws the following exception:

html xmlns:error=http://apache.org/cocoon/error/2.0;
head
META http-equiv=Content-Type content=text/html; charset=UTF-8
title:Error creating the resource/title
/head
body bgcolor=#ff
table cellspacing=2 cellpadding=2 bgcolor=#00 border=0
tbody
tr
td colspan=2 bgcolor=#0086b2font size=+2
face=arial,helvetica,sanserif color=#ffError creating the
resource/font/td
/tr
tr
td valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ff/font/tdtd
bgcolor=#fffont face=arial,helvetica,sanserifFailed to execute
pipeline./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffdetails/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanseriffrom/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanserif/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanserifsource/font/tdtd
bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException/font
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ffdescription/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException:
Failed to execute pipeline.:org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:org.xml.sax.SAXParseException: The namespace prefix
xlink was not declared./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffextra info/font/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared./pre
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared.#13;
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:228)#13;
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2464)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1447)#13;
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)#13;
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)#13;
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)#13;
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)#13;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#13;
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)#13
;
at org.apache.tomcat.core.Handler.service(Handler.java:287)#13;
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)#13;
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)#13;
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)#13;
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)#13;
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)#1
3;
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)#
13;
at java.lang.Thread.run(Thread.java:484)#13;
org.xml.sax.SAXParseException: The namespace prefix xlink was not
declared.#13;
at
org.apache.cocoon.components.parser.JaxpParser.error(JaxpParser.java:141)#1
3;
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1186)#13;
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java:3640)#13;
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1155)#13;
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)#13;
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1238)#13;
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)#13;
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)#13;
at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)#13
;
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
#13;
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)#13;
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS

AW: xlink namespace exception

2001-09-10 Thread Jörn Heid

It seems you have forgotten to declare the namespace like
root-element xmlns:xlink=http://whatever;


-Ursprüngliche Nachricht-
Von: Dinkar Ganti [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 23:43
An: 'Cocoon-Users
Cc: [EMAIL PROTECTED]
Betreff: xlink namespace exception


Hello,

I am trying to generate an SVG page that has an xlink. CocoonServlet
exception throws the following exception:

html xmlns:error=http://apache.org/cocoon/error/2.0;
head
META http-equiv=Content-Type content=text/html; charset=UTF-8
title:Error creating the resource/title
/head
body bgcolor=#ff
table cellspacing=2 cellpadding=2 bgcolor=#00 border=0
tbody
tr
td colspan=2 bgcolor=#0086b2font size=+2
face=arial,helvetica,sanserif color=#ffError creating the
resource/font/td
/tr
tr
td valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ff/font/tdtd
bgcolor=#fffont face=arial,helvetica,sanserifFailed to execute
pipeline./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffdetails/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanseriffrom/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanserif/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanserifsource/font/tdtd
bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException/font
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ffdescription/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException:
Failed to execute pipeline.:org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:org.xml.sax.SAXParseException: The namespace prefix
xlink was not declared./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffextra info/font/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared./pre
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared.#13;
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:228)#13;
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2464)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1447)#13;
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)#13;
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)#13;
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)#13;
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)#13;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#13;
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)#13
;
at org.apache.tomcat.core.Handler.service(Handler.java:287)#13;
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)#13;
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)#13;
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)#13;
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)#13;
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)#1
3;
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)#
13;
at java.lang.Thread.run(Thread.java:484)#13;
org.xml.sax.SAXParseException: The namespace prefix xlink was not
declared.#13;
at
org.apache.cocoon.components.parser.JaxpParser.error(JaxpParser.java:141)#1
3;
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1186)#13;
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java:3640)#13;
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1155)#13;
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)#13;
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1238)#13;
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)#13;
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)#13;
at

Disabling XML Document validation in Cocoon

2001-09-10 Thread Dinkar Ganti

Is there a mechanism to disable validating the document?  I noticed that
the Parsers that cocoon uses have ability to manipulate Features by use of
setFeature().  How are these features specified for Cocoon ?

Any help will be greatly appreciated.

Thanks,

Dinkar


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: xlink namespace exception

2001-09-10 Thread Dinkar Ganti

Thank you very much for the hint.

Regards,

Dinkar

-Original Message-
From: Jörn Heid [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 5:51 PM
To: [EMAIL PROTECTED]
Subject: AW: xlink namespace exception


It seems you have forgotten to declare the namespace like
root-element xmlns:xlink=http://whatever;


-Ursprüngliche Nachricht-
Von: Dinkar Ganti [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. September 2001 23:43
An: 'Cocoon-Users
Cc: [EMAIL PROTECTED]
Betreff: xlink namespace exception


Hello,

I am trying to generate an SVG page that has an xlink. CocoonServlet
exception throws the following exception:

html xmlns:error=http://apache.org/cocoon/error/2.0;
head
META http-equiv=Content-Type content=text/html; charset=UTF-8
title:Error creating the resource/title
/head
body bgcolor=#ff
table cellspacing=2 cellpadding=2 bgcolor=#00 border=0
tbody
tr
td colspan=2 bgcolor=#0086b2font size=+2
face=arial,helvetica,sanserif color=#ffError creating the
resource/font/td
/tr
tr
td valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ff/font/tdtd
bgcolor=#fffont face=arial,helvetica,sanserifFailed to execute
pipeline./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffdetails/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanseriffrom/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanserif/font/td
/tr
tr
td valign=top bgcolor=#0086b2font color=#ff
face=arial,helvetica,sanserifsource/font/tdtd
bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException/font
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ffdescription/font/tdtd bgcolor=#fffont
face=arial,helvetica,sanseriforg.apache.cocoon.ProcessingException:
Failed to execute pipeline.:org.apache.cocoon.ProcessingException: Failed to
execute pipeline.:org.xml.sax.SAXParseException: The namespace prefix
xlink was not declared./font/td
/tr
tr
td colspan=2 valign=top bgcolor=#0086b2font size=+1
face=arial,helvetica,sanserif color=#ffextra info/font/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared./pre
/td
/tr
tr
td valign=top bgcolor=#0086b2font face=arial,helvetica,sanserif
color=#ff/font/tdtd bgcolor=#ff
preorg.apache.cocoon.ProcessingException: Failed to execute
pipeline.:org.xml.sax.SAXParseException: The namespace prefix xlink was
not declared.#13;
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:228)#13;
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2464)#13;
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1447)#13;
at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)#13;
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)#13;
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)#13;
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)#13;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#13;
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)#13
;
at org.apache.tomcat.core.Handler.service(Handler.java:287)#13;
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)#13;
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)#13;
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)#13;
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)#13;
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)#1
3;
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)#
13;
at java.lang.Thread.run(Thread.java:484)#13;
org.xml.sax.SAXParseException: The namespace prefix xlink was not
declared.#13;
at
org.apache.cocoon.components.parser.JaxpParser.error(JaxpParser.java:141)#1
3;
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1186)#13;
at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java:3640)#13;
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1155)#13;
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1862)#13;
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1238)#13;
at

Re: Cocoon 1.8.2 - .htaccess?

2001-09-10 Thread Jeff Turner

On Mon, Sep 10, 2001 at 01:54:35PM -0400, Elisa Green wrote:
 My search in FAQs and alternative resources have turned up
 nothing on cocoon security settings with .htaccess.

Cocoon has nothing to do with .htaccess. Cocoon runs as a servlet.
Access to servlets is determined by the servlet container (tomcat). For
apache, security is configured with .htaccess files, but in tomcat it's
done with security-constraint entries in your webapp's WEB-INF/web.xml
file. Have a look at the servlet spec for more info.

--Jeff


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Sitemap parameters scope and non-destructive session parameters propagation

2001-09-10 Thread Paolo

I am working with Cocoon but I have some problems with sitemap variables
scope. It seems that Sitemap Parameters propagated from db-authenticator
actions are not inherited into selectors or other db-authenticator
actions. Please look at this code and the scope of myvar_dbvars1
(propagated by db-authenticator action) to the session and Sitemap:

map:act type=db-authenticator
map:parameter name=descriptor value=dbvars1.xml/
map:select type=session
map:parameter name=state-key value=myvar_dbvars1/

map:when test=customer
map:act type=db-authenticator
map:parameter name=create-session
value=no/
map:parameter name=descriptor
value=dbvars2.xml/
map:redirect-to uri={myvar_dbvars1}/
/map:act

map:act type=session-invalidator
map:redirect-to uri=login/
/map:act
/map:when

map:otherwise
map:redirect-to uri={myvar_dbvars1}/
/map:otherwise
/map:select
/map:act

Then, my questions:
1) is it possibile to propagate Sitemap parameters into child elements
of sitemap?
2) is it possibile to check and propagate session attributes to Sitemap
without deleting an existing session?

Thanx!

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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