RE: Cocoon reversing element attributes at output?

2002-12-25 Thread William Brogden
Title: Message



-Original Message-From: Anna 
Afonchenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 25, 
2002 5:38 AMTo: cocoon-usersSubject: Cocoon reversing 
element attributes at output?

  Hi All.
  I am writing xsl file that will catch some 
  nodes (according given XPath) and will output these nodes
  as a string.
  Here is the code snippet that outputs the 
  matching node:
  xsl:textlt;/xsl:text
  xsl:value-of 
  select="concat(name(),' ')"/
  xsl:for-each 
  select="@*"
   
  xsl:value-of select="name()"/
   
  xsl:text="/xsl:text
   
  xsl:value-of select="."/
   
  xsl:text" /xsl:text
  /xsl:for-each
  xsl:textgt;/xsl:text
  
  So, if, for example, the node img 
  src="" alt=""/ is caught, then it will be output as 
  is.
  When I was running this xsl using batch file, 
  everything was OK.
  Now I am running it using Cocoon, and although 
  I get correct nodes caught, for each node all attributes are output in the 
  reverse order, e.g. for the previous example the result in Cocoon 
  is
  img alt="" 
src=""/
  This is not a disaster, but it is rather 
  frustrating, because I would want to copy this node and search it in the code, 
  butif the attributes are reversed, I wouldn't be able to do 
  it.
  
  Does anybody know why Cocoon reverses 
  attributes order when outputting a node?
  
  Thank you very much for help.
  Anna
  
  
  The 
  SAX event for the start of an element carries attributes in an 
  Attributes
  collection. The JavaDocs say "the order of attributes in the list 
  isunspecified and may vary
  from 
  implementation to implementation." Therefore you can't rely on the 
  order
  being preserved.
  
  [EMAIL PROTECTED]Author of Soap Programming with Java - 
  Sybex; ISBN: 0782129285Coauthor of Cocoon 2 Programming - Sybex; ISBN: 
  0782141315


RE: correct use of umlauts

2002-11-16 Thread William Brogden
 -Original Message-
 From: Robert Sösemann [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, November 16, 2002 10:01 AM
 To: [EMAIL PROTECTED]
 Subject: correct use of umlauts
 
 
 Hello, who can help,
 
 
 I have the following code fragment in my xsp page, but I 
 always get an error
 because of the use of german umlaut entities like Ouml;.
 
   xsp:logic
 String keyword = esql:get-string
 column=k.word/;
 String firstletter = 
 keyword.substring(0,6);
 String sortable = keyword;
 
 
 if( firstletter == Ouml; ||
 firstletter == ouml;

Probably you want  firstletter.equals( Ouml; ) NOT ==


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285
Coauthor of Cocoon 2 Programming - Sybex; ISBN: 0782141315




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

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




RE: Sybex Cocoon book

2002-11-05 Thread William Brogden
 -Original Message-
 From: Geoff Howard [mailto:cocoongeoff;yahoo.com] 
 Sent: Tuesday, November 05, 2002 11:37 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Sybex Cocoon book
 
 
 
 --- Alex McLintock [EMAIL PROTECTED] wrote:
  Happily I have received another Cocoon2 book for
  review on 
  http://news.DiverseBooks.com
  
  Does anyone have any questions which they want me to
  discuss in my review?
 
 1) which version of cocoon is the book relevant to?
 2.0.3 release? any 2.1 dev and if so how outdated is
 it?
 Of the major topics of the book, how many are now in
 the process of being deprecated?
 2) where is the book focused?  static xml files?
 database?
 3) Are any topics covered from an advanced
 perspective?
 4) Of the competing concepts in cocoon, which does it
 advocate?  esql vs. sql transformer for example
 
 Geoff
 

As one of the authors of the Sybex book, let me say that
due to the pure mechanics of book publishing we had to
stick to the 2.0.2 - 2.0.3 versions.

Trying to be up to date with 2.1 would have been futile
and frustrating to our readers.

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285
Coauthor of Cocoon 2 Programming - Sybex; ISBN: 0782141315




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

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




Trying to run Command line Cocoon 2.0.2

2002-08-10 Thread William Brogden

 I am attempting to execute the command line version of
 Cocoon with an ANT task.
 
 Configuration: JDK 1.3.1, Tomcat 4.0.1, Cocoon-2.0.2
 ANT 1.4.1 - op sys: Windows XP

 Tomcat happily serves pages from
 http://localhost/cocoon202/
 
- 
 The ANT task and related definitions:
 
property name=tomcatlib value=c:\Tomcat401\common\lib\ /
property name=cocoonlib
value=c:\Tomcat401\webapps\cocoon202\WEB-INF\lib\ /

property name=sourcepath value=c:\Tomcat401\webapps\cocoon202 /
property name=configfile value=WEB-INF\cocoon.xconf /
property name=destpath value=c:\JavaProj2002\dest /
property name=temppath value=c:\temp /
property name=logfile value=static.log /
property name=urilist value=c:\JavaProj2002\urllist.txt /
property name=cocoon
value=c:\Tomcat401\webapps\cocoon202\WEB-INF\lib\cocoon-2.0.2.jar /

target name=cmdline 
java jar=${cocoon} fork=yes
 arg value=-c${sourcepath} /
 arg value=-C${configfile} /
 arg value=-d${destpath} /
 arg value=-w${temppath} /
 arg value=-l${logfile} /
 arg value=-uINFO /
 arg value=-f${urilist} / 
 classpath
   fileset dir=${cocoonlib}
 include name=*.jar/
   /fileset
   fileset dir=${tomcatlib}
 include name=*.jar/
   /fileset
 /classpath
/java
/target

-- When trying to run this, it gets as
far as starting to configure components from
the cocoon.xconf where the first entry is
 xml-parser class=org.apache.avalon.excalibur.xml.JaxpParser
logger=core.xml-parser
  etc
and then I get:


 ERROR   10289   [] (): Could not load parser, Cocoon object not
created.
 java.lang.ClassNotFoundException:
org.apache.avalon.excalibur.xml.JaxpParser
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:253)
at org.apache.cocoon.Main.main(Main.java:395)
 FATAL_E 10289   [] (): Exception caught 
 org.apache.avalon.framework.configuration.ConfigurationException: Could
not load parser org.apache.avalon.excalibur.xml.JaxpParser
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:256)
at org.apache.cocoon.Main.main(Main.java:395)
 Java Result: 1

The class org.apache.avalon.excalibur.xml.JaxpParser
resides in avalon-excalibur-scratchpad-20020212.jar
which is in the ${cocoonlib} directory.

Why can't it find the class?
What should I try next?

[EMAIL PROTECTED]





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

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




RE: Stream generator XMLForms

2002-07-13 Thread William Brogden



 -Original Message-
 From: Leszek Gawron [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, July 13, 2002 3:08 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Stream generator  XMLForms
 
 
 On Fri, Jul 12, 2002 at 08:55:23PM -0500, Ivelin Ivanov wrote:
  
  Maybe you should be looking at Axis instead of Cocoon for 
 this kind of task.
  
  http://xml.apache.org/axis/
 the problem is my client is Pocket PC 2002 and I do not have 
 any SOAP client
 libraries for it. 
 if I had SOAP I would use Microsoft .NET Web Services
 

If it is a compact SOAP implementation you are looking for,
suitable for small systems, try the Enhydra site:
http://kxml.enhydra.org/  and related.

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285




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

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




RE: Stream generator XMLForms

2002-07-12 Thread William Brogden

 -Original Message-
 From: Leszek Gawron [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Stream generator  XMLForms
 
 
 On Fri, Jul 12, 2002 at 09:32:12AM -0400, Andrew C. Oliver wrote:
  enlightenment on this question is found here: 
  
 http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlfor
 m-wizard.html
 I do not think that is the solution for my problem. From what 
 I have read(
 maybe I'm wrong ) XMLForms are good for collecting data on 
 server side for
 example in DOM Node. What I would like to do is to send xml 
 data to server
 (prepared by client), do some businness processing and send 
 response to
 client.
 In my case the client is a simple C++ application using MSXML
   ouzo
 

That sure sounds like a description of a SOAP RPC to me.

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





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

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




RE: What is Xscript and how is it related to the Cocoon 2 environment?

2002-07-12 Thread William Brogden

I found some hits by searching on Yahoo but I dunno what
relates to Cocoon.


 -Original Message-
 From: Mark Gaither [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 6:04 PM
 To: [EMAIL PROTECTED]
 Subject: What is Xscript and how is it related to the Cocoon 
 2 environment?
 
 
 What is Xscript and how is it related to the Cocoon 2 environment?
 
 Thanks in advance,
 
 Mark Gaither
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.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/faq/index.html

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




RE: Barf on JSPGenerator on Hello.jsp (HELP!)

2002-06-10 Thread William Brogden

 -Original Message-
 From: Rob Kelley [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, June 09, 2002 4:41 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Barf on JSPGenerator on Hello.jsp (HELP!)
 
 
 
 I'm still stuck here.  Any help would be appreciated.  
 
 
   
   I'm running cocoon 2.0.2 on Tomcat  4.0.1 (Windows).  I've been
 trying to run the hello example for the jsp:   
   http://127.0.0.1:8080/cocoon/jsp/hello
   
   I get the same error (stack trace at end of email):
   
   SAXException JspGenerator.generate() 
   
   My sitemap entry is:
   
  map:match pattern=jsp/*
   map:generate src=/docs/samples/jsp/{1}.jsp type=jsp/
   map:transform src=stylesheets/page/simple-page2html.xsl/
   map:serialize type=html/
  /map:match
   
   
   My cocoon.xconf jsp-engine is:
 jsp-engine logger=core.jsp-engine
   parameter name=servlet-class
 value=org.apache.jasper.servlet.JspServlet/
   parameter name=servlet-name value=*.jsp/
 /jsp-engine
   
   And I'm at wit's end. How do I get JSPs to work?
   
   Please help!
   
   Rob
   
   Stack Trace:
   org.apache.cocoon.ProcessingException: SAXException
 JspGenerator.generate() 

 SAXExceptions have details on the cause which
the standard error reporter is not displaying.
You may want to create a modified error handler
to dump the extra details which include:
an embedded Exception and a detailed message.


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





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

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




RE: slow xalan transformation

2002-05-19 Thread William Brogden

Scanning the entire bible to pick a chapter seems very
wasteful. If you never serve more than one chapter, why
not store the chapters separately?

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285



 -Original Message-
 From: Adrian Petru Dimulescu [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, May 19, 2002 2:44 PM
 To: [EMAIL PROTECTED]
 Subject: slow xalan transformation
 
 
 Hello,
 
 I installed today a cvs cocoon on a Tomcat 4.0.3 / jdk 
 1.3.1_01 and it works 
 fine if it weren't for the slow xslt transformation.
 
 What do i mean by slow? 
 
 I want to make HTML versions of Bible chapters. In order to 
 do that, I have a 
 main biblie.xml file which includes all its chapters using 
 entities. I apply 
 a stylesheet which simply selects a chapter and then another 
 stylesheet which 
 transforms this selection to HTML markup.
 
 it should be said that the xml file (with its chapters) is no 
 small xml file 
 (it is the Bible after all).
 
 the relevant sitemap.conf part:
 
map:match pattern=carti/**.html
 map:generate src=carti/resources/{1}.xml/
 map:transform 
 src=carti/stylesheets/tei-select-subdiv.xsl
   map:parameter 
 name=use-request-parameters value=true/
 /map:transform
 map:transform src=carti/stylesheets/{1}-html.xsl/
 map:serialize/
/map:match
 
 
 I measured the time it takes several xslt processors on my machine 
 (Thunderbird 1.2 GHz, 250MB RAM) to isolate a chapter of the 
 Bible (say, 
 Genesis or Matthew)  
 
 * xalan2 (Java):  40 seconds
 * saxon6.5 (Java):  18 seconds
 * xsltproc (C): 3 seconds !
 
 Under jdk1.4 xalan is catastrophic: it takes more than 2 
 minutes to do this 
 transformation.
 
 Now, my question is: do you think these times are normal, do 
 they include DTD 
 validation and if they do how can I disable DTD validation?
 
 Is there a Java solution to this problem (other than writing 
 a TraxTransformer 
 implementaion which would simply execute xsltproc?)
 
 ==
 Thank you,
 Adrian Petru Dimulescu.
 
 
 
 * * *
 
 PS: 
 Here is a sketch of the biblie.xml:
 
 ?xml version=1.0 encoding=iso-8859-2 ? 
 !DOCTYPE TEI.2 PUBLIC -//TEI//DTD TEI Lite XML ver. 1//EN
 /home/dadi/xml/dtds/tei/myPizza.dtd [
 !-- Vechiul Testament --
 
 !ENTITY facerea  SYSTEM capitole/facerea.xml
 !ENTITY iesirea  SYSTEM capitole/iesirea.xml
 !-- ... and all the other chapter here ... --
 
 TEI.2
 text
 body
 div0 type=parte id=vt n=1
 headVechiul Testament/head
 
 facerea;
 iesirea;
 
 !-- ... and all the other chapters here ... --
 /div0
 
 /body
 /text
 
 /TEI.2
 



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




Getting modules visible in Jython

2002-04-22 Thread William Brogden


Here is how I finally got this working.

1. In the generate tag, create a parameter to hold the python.path (not
PYTHONPATH, thats for CPython)

   map:match pattern=jython/*
map:generate type=script src=jython/{1} 
  map:parameter name=python.path value=c:/java/jython-2.1/Lib
/
/map:generate
map:transform src=stylesheets/test/simple-page2html.xsl/
map:serialize type=html/
   /map:match

2. In the actual python script, before trying to import any modules

params   = bsf.lookupBean( parameters )
# params is a org.apache.avalon.framework.parameters.Parameters
props = System.getProperties()
import sys  # thats the Jython standard library, includes sys.path
pth = params.getParameter(python.path)
sys.path.insert(0, pth )
# now it should search there first for modules
===

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285




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




ScriptGenerator problem

2002-04-15 Thread William Brogden


I am attempting to add Python script processing capability to the
ScriptGenerator using jython.

I placed jython.jar in the cocoon/WEB-INF/lib directory
Cocoon version is 2.0.1 dated 2/26/02
Erased the work directory before starting

Here is my modified script generator entry in sitemap.xmap:

map:generator name=script
src=org.apache.cocoon.generation.ScriptGenerator 
logger=sitemap.generator.script label=content,data 
add-languages
  language name=python src=org.python.util.PythonInterpreter
extension map:value=py/
  /language  
/add-languages
/map:generator

This fails during sitemap compilation due to the sitemap_xmap.java
code being cut short in the middle of the ScriptGenerator  code

Here is the actual message from the sitemap log:
ERROR   (2002-04-15) 11:34.20:312   [sitemap] (/cocoon/welcome)
HttpProcessor[8080][4]/Handler: Error compiling sitemap
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 588, column 38:  '}' expected.

- sitemap_xmap.java has the following code 
  { DefaultConfiguration cconf1 =
  new DefaultConfiguration(script, LOCATION);
cconf1.addAttribute (name, script);
cconf1.addAttribute (src,
org.apache.cocoon.generation.ScriptGenerator);
cconf1.addAttribute (logger, sitemap.generator.script);
cconf1.addAttribute (label, content,data);

//line numbers not supported with xalan
{
  DefaultConfiguration cconf2 =
new DefaultConfiguration(add-languages, LOCATION);

  cconf1.addChild(cconf2);

  //line numbers not supported with xalan
  {
DefaultConfiguration cconf3 =
  new DefaultConfiguration(language, LOCATION);

cconf3.addAttribute (name, python);

cconf3.addAttribute (src,
org.python.util.PythonInterpreter);

cconf2.addChild(cconf3);

//line numbers not supported with xalan
{
  DefaultConfiguration cconf4 =
new DefaultConfiguration(extension,
 LOCATION);

  cconf4.addAttribute (map:value, py);

  cconf3.addChild(cconf4);
- here the code abruptly stops, the last line is # 588.

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285




-
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: ScriptGenerator problem

2002-04-15 Thread William Brogden

 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, April 15, 2002 2:30 PM
 To: [EMAIL PROTECTED]
 Subject: RE: ScriptGenerator problem
 
 
  From: William Brogden [mailto:[EMAIL PROTECTED]]
  
  
  I am attempting to add Python script processing capability to the
  ScriptGenerator using jython.
  
  I placed jython.jar in the cocoon/WEB-INF/lib directory
  Cocoon version is 2.0.1 dated 2/26/02
  Erased the work directory before starting
  
  Here is my modified script generator entry in sitemap.xmap:
  
  map:generator name=script
  src=org.apache.cocoon.generation.ScriptGenerator
  logger=sitemap.generator.script label=content,data 
  add-languages
language name=python 
 src=org.python.util.PythonInterpreter
  extension map:value=py/
 
 map:value is neither supported nor valid construct anymore. Try this:
 
   extensionpy/extension
 
 
 Vadim

Ah - that is the nomenclature that appears in the Javadocs for
org.apache.cocoon.generation.ScriptGenerator so I used it.

On further fooling around I find that ScriptGenerator seems
to come already configured for Python and you can access the
docs/samples/scripts/hello.py file.

But where in the world does that configuration occur? Is it
built in to BSF?

WBB



-
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: Where is META tag coming from?

2002-03-22 Thread William Brogden


That META tag is injected by the HTML serializer - one of the
standard serializers in the W3C XSLT recommendations - see
section 16.2 HTML output method. I don't know how you 
override it.

WBB



-
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: Cocoon2, SOAP: How to process xml-content?

2002-03-15 Thread William Brogden

 -Original Message-
 From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf 
 Of Erwin Burgstaller
 Sent: Friday, March 15, 2002 8:47 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Cocoon2, SOAP: How to process xml-content?
 
 
 On Fri, Mar 15, 2002 at 08:01:32AM +0100, Erwin Burgstaller wrote:
  Apache::SOAP. So I hope I will find how to configure the service to
  return an org.w3c.dom.Element, will I?
 
 Ok, I've got the service to write:
 
 [..]
 SOAP-ENV:Body
 list_allResponse
 SOAP-ENV:encodingStyle=http://xml.apache.org/xml-soap/literalxml;
 s-gensym12 xsi:type=xsd:stringlt;?xml version=1.0?gt;
 [..]
 
 But that does not change anything.

 Your SOAP server appears to be converting XML tags to escaped form, 
but thats exactly what you don't want. How is the data originally 
stored, with real tags or in the escaped form.

WBB



-
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: Cocoon2, SOAP: How to process xml-content?

2002-03-14 Thread William Brogden

 -Original Message-
 From: Erwin Burgstaller [mailto:[EMAIL PROTECTED]] On Behalf 
 Of Erwin Burgstaller
 Sent: Thursday, March 14, 2002 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: Cocoon2, SOAP: How to process xml-content?
 
 
 
 I have a SOAP service which produces well formed xml-content. 
 I want to
 get data from that service into a cocoon xsp application. At 
 the moment
 the result looks like this:
 
 [..]
 
 SOAP-ENV:Body
 namesp3:list_allResponse xmlns:namesp3=urn:Stlist
 s-gensym15 xsi:type=xsd:stringlt;?xml version=1.0?gt;
 lt;timesgt;
 lt;sdategt;2002.01.07lt;/sdategt;lt;stimegt;07:58:59lt;
 /stimegt;lt;edategt;2002.01.07lt;/edategt;lt;etimegt;12
 :01:49lt;/etimegt;lt;projectgt;0099lt;/projectgt;lt;brg
 roupgt;06lt;/bgroupgt;lt;commentgt;209
 
 [..]
 
 This is without processing any stylesheet.
 
 My question is: How can I prohibit the xml-code to be converted to
 text, or how can transform it back to xml to be processed by a
 stylesheet later. The intention is to handle it like files 
 with xinclude.
 
 Thanks,
   Erwin

Why not have the service return a org.w3c.dom.Element -
that will produce xml directly in the SOAP response.

Your deployment descriptor would have an entry like this example I ran:

 isd:mappings
   isd:map encodingStyle=http://xml.apache.org/xml-soap/literalxml;
 xmlns:x=urn:ExercisePubs qname=x:book-element
 javaType=org.w3c.dom.Element
 java2XMLClassName=
   org.apache.soap.encoding.literalxml.XMLParameterSerializer
 xml2JavaClassName=
   org.apache.soap.encoding.literalxml.XMLParameterSerializer
 /
/isd:mappings

[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





-
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: cocoon setup error

2002-02-20 Thread William Brogden

 -Original Message-
 From: gfitzz [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, February 20, 2002 9:58 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon setup error
 
 
 My server is Win2K Server using IIS.  I installed JDK 
 1.3.1_02, Tomcat 4.0.2
 and Cocoon.  When I try to access cocoon I get the following error:
 
 java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
 
 I set this up identically on a Win2K Pro machine and it works fine.
 
 What is wrong?
 
 Gary Fitzgerald
 41 Arlington Street
 Everett, MA 02149
 617-387-3926
 [EMAIL PROTECTED]
 www.totalinclusion.org

 It is extremely likely that your server with a problem is 
picking up an old version of the JAXP parser before it sees
the one Cocoon comes with. See the findingclasses.html
file in your JDK tooldocs for how this can happen.


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





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




Content Management

2002-01-12 Thread William Brogden


 I have been trying to chase down leads for content management,
both in the general web site sense and in the Apache Cocoon2 context. 

 Most of these products look to me like simple authoring packages, 
rather than complete content management. Am I unreasonable to
expect more management functions? Seems to me that management
should let you dynamically modify the site without taking it
down.


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





-
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: Request attributes?

2001-12-05 Thread William Brogden



 -Original Message-
 From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, December 05, 2001 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: Request attributes?
 
 
 A bit confused.
 
 Looking at org.apache.cocoon.environment.Request (basically 
 it's just a ServletRequest object).  I see that a Request has 
 both parameters and attributes.
 
 I know what request parameters are.  These are the form 
 values in your HTML form that get submitted to the servlet.
 
 But what are request attributes?   I don't know how it works 
 elsewhere, but at least with Cocoon these seem to always be empty.
 
 1) What are they for?
 
 2) Am I allowed to use these for my own personal use; i.e., 
 as sort of a temporary storage area?  (e.g., 
 request.setAttribute(String name, Object o) )
 

Request attributes are indeed used for storage of your own objects,
particularly when forwarding the request for further processing.

WBB



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