RE: Password Encryption

2002-09-20 Thread Stefan Seifert

A bit off-topic, but:
A good method is using a SHA-Hash of the password like this:

  public static String encryptPassword(String pstrPassword) {
  MessageDigest sha = MessageDigest.getInstance(SHA);
  sha.update(pstrPassword.getBytes());
  byte abytHash[] = sha.digest();

  StringBuffer strEncrypt = new StringBuffer();
  for (int intIndex=0; intIndexabytHash.length; intIndex++) {
String strHex = Integer.toHexString(Math.abs(abytHash[intIndex]));
if (strHex.length()==1)
  strEncrypt.append(0);
strEncrypt.append(strHex);
  }

  return strEncrypt.toString();
  }

In this way it is not possible to get the password out of the database again, but if 
you encrypt the given password on user logon again with this method and compare the 
two hashs you know if the user entered the correct password.

Stefan

 -Original Message-
 From: Antonio Gallardo Rivera 
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 20, 2002 8:10 PM
 To: [EMAIL PROTECTED]
 Subject: Password Encryption
 
 
 I am using authentication against the database. I am storing 
 and geting the 
 user parameters from a database. My question is:
 
 How can I encrypt the password to store it then in the database?
 
 Thanks in advance :)
 
 Antonio Gallardo
 
 -
 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: german umlaut!

2002-09-09 Thread Stefan Seifert

Just use a proper encoding for the XML file (i.e. UTF-8) and a UTF-8-able editor 
(under Windows i.e. XML Spy or JBuilder). Then you can just type the umlauts as any 
other chars in your document without problems.
The HTML Serializer by default will encode them when doing HTML output to iso encoding 
like uuml; etc.

Stefan

 -Original Message-
 From: Wolle [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 09, 2002 9:17 PM
 To: [EMAIL PROTECTED]
 Subject: german umlaut!
 
 
 hi cocooners!
 
 has anybody a proper solution for involving german umlaute in a
 cocoon-framework?
 
 i have some ideas like
 
 1. writing the umlauts in  unicode (so creating a pdf via fop 
 will cause
 no problems)
 2. writing them in tex-style like u or o an exchange them later in
 every xsl-file
 3. using extra-markups like uml/uml
 
 i don't know. are there any solutions which had been tested already?
 
 does anybody know a comfortable solution?
 
 
 
 Auf bald
 
 Wolfgang Weigel
 
 
 -
 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: cocoon 2.0.3, xalan 2.3.1, output encoding

2002-08-22 Thread Stefan Seifert

You can specify a encoding parameter in the HTML Serializer definition in the 
sitemap like this:

map:serializer name=html mime-type=text/html logger=sitemap.serializer.html
  src=org.apache.cocoon.serialization.HTMLSerializer
  pool-max=128 pool-min=16 pool-grow=16
encodingUTF-8/encoding
/map:serializer

There you can try to put UTF-8 or iso-8859-1 or what you want.

Another remark: Which browser are you using? There are some problems in Netscape 4.x 
and special unicode characters translated from the HTML Serializer to namend entities.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 22, 2002 9:31 AM
 To: [EMAIL PROTECTED]
 Subject: cocoon 2.0.3, xalan 2.3.1, output encoding
 
 
 I read the following on apache's website :
 
   When you use the xsl:output encoding attribute to set 
 output character
 encoding, you should not use StreamResult(java.io.Writer) to 
 construct a
 StreamResult object to hold the transformation result. If you 
 do, the Writer
 uses its own encoding rather than the encoding specified in 
 the stylesheet.
 
 If you want to use a Writer, you can specify an encoding when 
 you create the
 Writer (java.io.OutputStreamWriter). Once the Writer exists, 
 you cannot
 reset the encoding it uses.
 
 So I guess that I have a default configuration to alter for 
 cocoon to output
 html in iso-8859-1 instead of utf-8 ? How did you solve it by 
 experience
 with other encodings ? utf-8 does not render well in my browser as for
 accentued characters...
 
 Thanks
 
 Babs
 
 
 -
 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: ampersand

2002-08-21 Thread Stefan Seifert

Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:33 PM
 To: [EMAIL PROTECTED]
 Subject: ampersand
 
 
 I need a link with 2 parameters in the url : 
 foo?param1=foo1param2=foo2.
 
 However XSL does not like the unicode for ampersand : #038, in
 xsl:text#038;/xsl:text before param2.
  It says :
 org.xml.sax.SAXParseException: The reference to entity 
 param2 must end
 with the ';' delimiter.
 
 So How can I get the right character ? I have troubles 
 finding my way in
 Unicode.org...
 
 I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
 
 How can I do that ? Thanks a lot.
 
 Babs
 
 
 -
 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: ampersand

2002-08-21 Thread Stefan Seifert

You did not try or it did not work?
Are you using a XML Editor with XML validity checking? In this case the editor would 
find such errors.

Stefan

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 21, 2002 5:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ampersand
 
 
 nope
 - Original Message - 
 From: Stefan Seifert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 5:43 PM
 Subject: RE: ampersand
 
 
 Did you try using a amp; instead of ?
 i.e. foo?param1=foo1amp;param2=foo2.
 
 Stefan
 
  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 21, 2002 5:33 PM
  To: [EMAIL PROTECTED]
  Subject: ampersand
  
  
  I need a link with 2 parameters in the url : 
  foo?param1=foo1param2=foo2.
  
  However XSL does not like the unicode for ampersand : #038, in
  xsl:text#038;/xsl:text before param2.
   It says :
  org.xml.sax.SAXParseException: The reference to entity 
  param2 must end
  with the ';' delimiter.
  
  So How can I get the right character ? I have troubles 
  finding my way in
  Unicode.org...
  
  I was there : http://www.unicode.org/Public/UNIDATA/NamesList.txt
  
  How can I do that ? Thanks a lot.
  
  Babs
  
  
  
 -
  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]



-
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: Merging Dynamic Content and Static HTML in Same Page

2002-08-20 Thread Stefan Seifert

There is another possibility, though a bit out of the scope of cocoon:
Use Cocoon to genrate HTML content that includes a Server Side Include-Statement 
(!--#include...--), put a Apache Webserver 2.x in front of cocoon (i.e. using 
mod_jk). With proper configuration in httpd.conf of the Apache you can let the 
Webserver resolve the Include-Statements, these should point to a local URL known to 
the webserver (the same way it works if you put Include-Statements in static 
HTML-Files).
This only works with Apache 2.x and above, not with Apache 1.x.

Stefan

 -Original Message-
 From: Michael Edge [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 4:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Merging Dynamic Content and Static HTML in Same Page
 
 
 
 
 
 Thanks for the help Vadim and Luca. My understanding is that 
 aggregation creates a single XML fragment from many sources, 
 concatenating them all together. Then it applies the 
 transformation and serialization. However, my documents are 
 not XML but HTML. Using aggregation and include it seems as 
 though these documents will be converted to XML, merged into 
 one large XML fragment before being transformed via my 
 stylesheet. I don't want or need the stylesheet to process 
 the HTML at all. I sort of need the aggregation to happen 
 after the transformation rather than before. Any suggestions? 
 Or are there other ways to accomplish this? Surely this must 
 be quite a common requirement?
 
 Thanks for your time
 
 Michael
 
 Michael Edge wrote:
 
 Hi All
 
 Is it possible within Cocoon to produce a single page that 
 is made up of both static and dynamic content. For example, I 
 would like to produce reports that all contain a standard 
 header with images and toolbars, etc., but where the dynamic 
 part of the page is generated by an XSP using ESQL. Within 
 Cocoon I can see ways of generating static pages using either 
 map:read or map:generate, as in:
 
 map:match pattern=head.html
map:read src=docs/head.htm mime-type=text/html/
 /map:match
 map:match pattern=head
   map:generate type=html src=docs/head.htm/
   map:serialize/
 /map:match
 
 And there are ways of generating dynamic pages using XSP, as in:
 
 map:match pattern=reports
   map:generate type=serverpages src=docs/PCTeamProduct.xsp/
   map:transform src=stylesheets/PCTeamProduct.xsl/
   map:serialize/
 /map:match
 
 Now how can I put these both together so that I get a single 
 HTML page with head.htm at the top followed by the output of 
 PCTeamProduct.xsp?
 
 
 1. Sitemap aggregation. See samples.
 2. Includes. See samples.
 
 Vadim
 
 
 Thanks for the help
 
 Regards
 
 Michael
 
 
 
 
 -
 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]
 
 
 
 
 
 
 --
 
 This e-mail may contain confidential and/or privileged 
 information. If you are not the intended recipient (or have 
 received this e-mail in error) please notify the sender 
 immediately and destroy this e-mail. Any unauthorized 
 copying, disclosure or distribution of the material in this 
 e-mail is strictly forbidden.
 
 
 
 -
 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: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException

2002-08-20 Thread Stefan Seifert

After a lot of resarching and debugging i found the source of this problem - a (minor) 
bug in Batik, that only appeared because some now unneeded code lines in the Cocoon 
SVG Builder.
I submitted a patch to Bugzilla: #11856.
I will submit a patch to Batik too, to resolve the real source of this problem.

Stefan

 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 4:42 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Strange error using JPEG/SVGSerializier under 
 heavy load -
 ClassCastException
 
 
 Stefan Seifert wrote:
   Hello Vadim.
  
   The Problem from the other thread is possibly related - 
 but i do not
   use saxon nor changed the default configuration of cocoon-2.0.3
   concerning XSLT processor usage (at least i'm not aware of this - i
   did some updates from earlier cocoon version, but always 
 tried to get
   all changed configurations from the new cocoon.xconf etc.).
  
   Again, my XML streams transformed are not that big 
 (usually  100kb),
   and the resulting JPEG is really small (~2-3kb). But 
 perhaps the bug
   appears by either big XML input files or a long runtime (points to
   small errors summing up and finally resulting in the error 
 - but why
   then a ClassCastException??).
  
   Unfortunately i have not found a way to reproduce the problem by
   force; in that case i would try to debug it. Perhaps i will try to
   blow up my XML input streams and see if i  can produce 
 the problem
   that way.
 
 You could try...
 
 
   But i'm not sure if it has really to do something with the
   other thread.
 
 May be not, but these ClassCastExceptions look very 
 suspiciously to me.
 
 Vadim
 
 
   Stefan
  
  
  
   -Original Message- From: Vadim Gritsenko
   [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14,
   2002 3:49 PM To: [EMAIL PROTECTED] Subject: Re: Strange
   error using JPEG/SVGSerializier under heavy load -
   ClassCastException
  
  
   Stefan Seifert wrote:
  
  
   Configuration: Cocoon 2.0.3, Tomcat 3.2.3. We use the
   SVGSerializer with JPEG-Output to generate
  
   graphical menus (we could not get the customer to use only plain
   text menus).
  
   All works fine after a starting up tomcat. But after a few
  
   days (variing) without even touching the server the SVG 
 Generantion
   fails with the Error below - a ClassCastException. Every following
   request of a JPEG generation failes with the same error.
  
   All other requests processing only HTML still work!
  
   This error is very strange, because all works until the SVG
  
   Serialization seems to hang up totally (but only the SVG
   Serialization).
  
   The memory utilisation is normal. There are no
  
   OutOfMemory-Erros or anything that points to a memory leak.
   Unfortunately it was not possible to reproduce this problem by
   force using a web stress tool, it only happens on the live servers
   and only after a few days.
  
   After a tomcat restart all works well again.
  
   Any ideas? I searched the mailing lists of Cocoon and Batik
  
   but found hints.
  
   We tried replacing the batik 1.5beta2 shipped with Cocoon
  
   2.0.3 with the latest 1.5 beta3, same problem.
  
  
  
  
   I wonder is it related to this thread or not:
   http://marc.theaimsgroup.com/?t=10279522402r=1w=2
  
   Vadim
  
  
   Stefan
  
   ...
 
 
 
 -
 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]




Strange error using JPEG/SVGSerializier under heavy load - ClassCastException

2002-08-14 Thread Stefan Seifert


Configuration: Cocoon 2.0.3, Tomcat 3.2.3.
We use the SVGSerializer with JPEG-Output to generate graphical menus (we could not 
get the customer to use only plain text menus).

All works fine after a starting up tomcat. But after a few days (variing) without even 
touching the server the SVG Generantion fails with the Error below - a 
ClassCastException. Every following request of a JPEG generation failes with the same 
error.
All other requests processing only HTML still work!

This error is very strange, because all works until the SVG Serialization seems to 
hang up totally (but only the SVG Serialization).
The memory utilisation is normal. There are no OutOfMemory-Erros or anything that 
points to a memory leak. Unfortunately it was not possible to reproduce this problem 
by force using a web stress tool, it only happens on the live servers and only after a 
few days.

After a tomcat restart all works well again.

Any ideas? I searched the mailing lists of Cocoon and Batik but found hints.
We tried replacing the batik 1.5beta2 shipped with Cocoon 2.0.3 with the latest 1.5 
beta3, same problem.

Stefan


FATAL_E (2002-08-14) 10:25.14:890   [core.xslt-processor] 
(/rstemplates/rs/rs_rubrik/0,,1767_gruene-partei~de_svg_nav1,00.jpg) 
Thread-9/TraxErrorHandler: Error in TraxTransformer: 
javax.xml.transform.TransformerException: java.lang.ClassCastException: 
org.apache.xerces.parsers.SAXParser
javax.xml.transform.TransformerException: java.lang.ClassCastException: 
org.apache.xerces.parsers.SAXParser
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:144)
at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:140)
at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)
-
java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser
at org.apache.batik.dom.svg.SVGDOMImplementation.createCSSEngine(Unknown 
Source)
at 
org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.createCSSEngine(Unknown Source)
at org.apache.batik.bridge.BridgeContext.initializeDocument(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:268)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:140)
at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1182)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
at java.lang.Thread.run(Thread.java:484)

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




AW: JDBC for SQL Server 2000

2002-06-13 Thread Stefan Seifert

I can recommend the SPRINTA and OPTA drivers vom inet Software 
(http://www.inetsoftware.de/), but they are not free. But they are very stable and 
have very good performance, BLOB support etc.

Stefan

 -Ursprüngliche Nachricht-
 Von: Parrott Geoff [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 13. Juni 2002 12:30
 An: Cocoon-Users (E-mail)
 Betreff: JDBC for SQL Server 2000
 
 
 Hi  
 Slight amendment I now find out it is Server 2000 not 7 as 
 previous message 
 Can anyone recommend a good Free or Cheap JDBC driver for 
 MSSQL  2000  type 4 if possible 
 Currently developing with Cocoon 2 Tomcat 4.0.3 LE  jdk 1.4.0 
 I am migrating code developed on MySQL to run on MSSQL I have 
 found many issues 
 I am experiencing problems with whitespace written to the 
 database is this a JDBC issue 
 Regards 
 Geoff 
 

-
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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-12 Thread Stefan Seifert

Well, this is no problem, done it many times - it is well documented in the Tomcat 
documentation: see i.e. tomcat-iis-howto.html from the tomcat 3.x distribution.
For futher questions or problems see tomcat mailing lists.

Stefan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 12, 2002 9:13 PM
 To: [EMAIL PROTECTED]
 Subject: RE: MSFT answer to Cocoon? (Plaease don't throw stones :)
 
 
   Thanks Roger - this solution INTRIGUES me... Has anyone 
 done this or knows where to get info to couple IIS with 
 Tomcat?  Are cases/examples on Apache.org somewhere?
 
   Mike
 
 -Original Message-
 From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:55 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)
 
 
 Hi folks,
 
 Sorry Michael.  You were looking for a solution.
 
 I was being incredibly facetious when I typed .net. It is one of those
 reasons I got a minus on my report card(parochial school) for 
 lack of self
 control .
 
 There is nothing like Cocoon but Cocoon.
 
 Use IIS with Jakarta Tomcat, and run Cocoon in it as 
 Microsoft's answer to
 Cocoon/Xalan/Xerces functionality?
 
 -Roger
 - Original Message -
 From: Nicola Ken Barozzi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 5:14 PM
 Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)
 
 
 
 
  [EMAIL PROTECTED] wrote:
   This sounds right - from my research with .Net it doesn't 
 rival cocoon -
 was hoping there was a snap-in to IIS that mimics Cocoon
 
  Use IIS with Jakarta Tomcat, and run Cocoon in it.
 
  --
  Nicola Ken Barozzi   [EMAIL PROTECTED]
   - verba volant, scripta manent -
  (discussions get forgotten, just code remains)
  
 -
 
 
  
 -
  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]
 
 
 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/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: MSFT answer to Cocoon? (Plaease don't throw stones :)

2002-06-11 Thread Stefan Seifert

But you still have to do most of things on foot which is already built into Cocoon.
The technology is there (well, most of it), but there is now framework nearly 
comparable to Cocoon in the MS/.NET-world (yet).

Stefan

 -Original Message-
 From: Roger I Martin PhD [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:30 PM
 To: [EMAIL PROTECTED]
 Subject: Re: MSFT answer to Cocoon? (Plaease don't throw stones :)
 
 
 .net
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 2:08 PM
 Subject: MSFT answer to Cocoon? (Plaease don't throw stones :)
 
 
 
   Had to ask - does Microsoft have anything for IIS that gives
 Cocoon/Xalan/Xerces functionality?
 
   Mike
 
 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/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]
 
 
 
 
 

-
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: Load test with ab

2002-04-08 Thread Stefan Seifert

We are using MS SQL 2000 and Cocoon 2 very sucessful in two big
projects.
We bought a JDBC Driver (SPRINTA and OPTA) from inet-software
(http://www.inetsoftware.de).
They are not cheap, but worth the money.

Stefan

 -Original Message-
 From: Horst Rutter [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, April 06, 2002 12:15 AM
 To: [EMAIL PROTECTED]; Nicola Ken Barozzi
 Subject: Re: Load test with ab
 
 
 Frustrating, I also have to communicate with a MS SQL 2000 db server.
 Not having started on the JDBC work I would be interested to know:
 a) what kind of experiences people have made using JDBC in a 
 Cocoon 2.x
 environment talking to MS SQL 2000
 b) any pointers to alternative (other than MS) JDBC drivers, 
 if that's the
 bottleneck.
 
 Thanks,
 Horst
 
 - Original Message -
 From: Nicola Ken Barozzi [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, April 04, 2002 11:57 PM
 Subject: Re: Load test with ab
  
  Out of all the drivers we used, Microsoft's new JDBC driver 
 had the most
  problems. It's still a beta driver in the form distributed 
 on Microsoft's
  Web site, but it's not a new product per se, because it's 
 based on code
  licensed from DataDirect Technologies Inc., which has had 
 the leading
  third-party SQL Server JDBC driver for some years now.
  Providing and supporting its own JDBC driver is a very 
 welcome move, and
  Microsoft officials informed us last month that they had 
 70,000 downloads
 of
  the driver so far, so there is considerable customer interest in it.
  However, the driver, in both Beta 1 and Beta 2 forms (we 
 tested both), has
  serious performance and stability problems.
  Using the driver, we were unable to get more than about
 200-page-per-second
  throughput, and the problem was clearly the driver-the 
 database was only
 at
  about 15 percent to 20 percent CPU utilization at this 
 load. The driver
 also
  has memory leaks: We could see on WebLogic's administration 
 console that
  less memory was freed each time the Java virtual machine 
 did a garbage
  collection. Because of these leaks, the Microsoft JDBC 
 driver was unable
 to
  run for 8 hours straight.
  
 
  You should change driver (see 3rd party) od DB ;-)
 
  --
  Nicola Ken Barozzi   [EMAIL PROTECTED]
  - verba volant, scripta manent -
 (discussions get forgotten, just code remains)
  
 -
 
 
  
 -
  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: XSL question

2002-03-25 Thread Stefan Seifert

Try this:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE root [
  !ENTITY nbsp #160;
]
root
...
/root

Stefan

 -Original Message-
 From: Martin Mauri [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 25, 2002 4:51 PM
 To: [EMAIL PROTECTED]; Richard Korthuis
 Subject: Re: XSL question
 
 
 Ok, forget it anyway. Here goes another. Does anyone remember 
 how to define entities inside an xml file without the need of 
 declaring the use of a DTD?
 
 thanks!
 - Original Message - 
 From: Richard Korthuis 
 To: [EMAIL PROTECTED] 
 Sent: Monday, March 25, 2002 12:42 PM
 Subject: Re: XSL question
 
 
 Hello,
 
 What is this outside source? Are you calling the xml with a 
 param (http:///index.xml?param=something) or are you 
 passing this parameter in some other way?
 
 Richard
 - Original Message - 
 From: Martin Mauri 
 To: [EMAIL PROTECTED] ; Richard Korthuis 
 Sent: Monday, March 25, 2002 3:40 PM
 Subject: Re: XSL question
 
 
 Dear Richard,
 
 I understand what you say, but here the problem is if I can 
 get a parameter from an outside source, right?
 - Original Message - 
 From: Richard Korthuis 
 To: [EMAIL PROTECTED] 
 Sent: Monday, March 25, 2002 11:32 AM
 Subject: Re: XSL question
 
 
 A while ago I made an XML (Cocoon 1.8) which requested a 
 parameter passed on from a form on a webpage. Maybe you can 
 try something similar for your XSL?
 
 xsp:page language=java  xmlns:sql=http://www.apache.org/1999/SQL;
  xmlns:xsp=http://www.apache.org/1999/XSP/Core;
  xmlns:request=http://www.apache.org/1999/XSP/Request;
 
 dates
  sql:execute-query
   
   
   sql:querydelete from rooster where 
 uniek='request:get-parameter name=uniek/'
   /sql:query
  /sql:execute-query
 /dates
 
 /xsp:page
 
 Regards
 
 Richard Korthuis
 - Original Message - 
 From: von Schwerdtner, Thomas (GXS, FPI) 
 To: '[EMAIL PROTECTED]' 
 Sent: Monday, March 25, 2002 3:13 PM
 Subject: RE: XSL question
 
 
 Ah, good point.  I have no experience with pre 2.x Cocoon, so 
 I don't know what would work.  I'm sure others around here 
 can answer that though.
 
 -T
 -Original Message-
 From: Martin Mauri [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 25, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: XSL question
 
 
 Hi Thomas,
 
 That's a good answer, unfortunately I forgot to point that 
 I'm using Cocoon 1.8.2. Is there a solution for it? thanks!
 - Original Message - 
 From: von Schwerdtner, Thomas (GXS, FPI) 
 To: '[EMAIL PROTECTED]' 
 Sent: Monday, March 25, 2002 10:53 AM
 Subject: RE: XSL question
 
 
 Yes. 
 There is a tutorial on this at cocooncenter.org: 
 http://www.cocooncenter.de/cc/documents/resources/request-para
ms/index.html 


-Tom 



 -Original Message- 
 From: Martin Mauri [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 25, 2002 8:56 AM 
 To: [EMAIL PROTECTED] 
 Subject: XSL question 
 
 
 Hi, this is a kind of offtopic question I think but anyway... 
 
 Is there a possibility to pass a parameter to a stylesheet? 
 
 I'd like to do the following: 
 
 Given a stylesheet, I'd like to include another but depending 
 on a parameter 
 passed by some external source, say an xml page. 
 
 thanks in advance. 
 
 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]




AW: Extension functions

2002-03-20 Thread Stefan Seifert

What you are trying is XSLT 1.1 syntax, that is not supported by this
xalan version as fare as i know.
See http://xml.apache.org/xalan-j/extensions.html for the propietary
xalan extension syntax.

Stefan

 -Ursprüngliche Nachricht-
 Von: Malay Das [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 20. März 2002 20:46
 An: [EMAIL PROTECTED]
 Betreff: Extension functions
 
 
 Hi,
 
 I am trying out the extension function to print out the 
 current date - with
 these.
 
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns=http://www.brandsoft.com;
   xmlns:Date=java:java.util.Date
   version=1.1
 xsl:script language=java implements-prefix=Date
 src=java:java.util.Date/
 ..
 ..
 
 Today's Date :: xsl:value-of 
 select=Date:toString(Date:new())//td
 
 I am getting this error in component log -
 
 javax.xml.transform.TransformerException:
 javax.xml.transform.TransformerException: Instance method 
 call to method new
 requires an Object instance as first argument
 
 is not new a special function interpreted as constructor. 
 whats wrong..
 
 -md

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




AW: [FYI] Success Story - Cocoon-based Web-CMS with Vignette-Integration

2002-03-10 Thread Stefan Seifert

Hello Olivier.

 I wonder if you developped your own X(HT)ML authoring applet?
 I think this is the component that Cocoon is lacking for further 
 evolutions in CMS applications.
 Q42.nl plans to open-source version2 of their product.
 XXE is a GREAT editor, but license is quite hard to manage with.
 Your applet solution (if open-sourcing things is planned on 
 your side) 
 would be great.

No, we used a commercial solution for authoring XHTML fragements:
edit-on Pro (see http://www.realobjects.de/). It is implemented as JDK
1.1-Applet an runs in the most of the common browsers. Features are
quite impressive, but closed-source unfortunately. But License cost of
US$260 per 10 user is acceptable.

Stefan

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




[FYI] Success Story - Cocoon-based Web-CMS with Vignette-Integration

2002-03-09 Thread Stefan Seifert


We developed in a big project roughly spanning the past 1,5 years a
Java-based Web Content Management System using Cocoon 2 with
Vignette-Integration.

The result of the first development phase (the live website) you can see
at
http://www.gruene-fraktion.de (german). The System was developed by
gedas for the 'parliamentary faction of Bündnis90/Die Grünen' (the
German Green Party).

Some technical/architectional information:
 - The live-site is powerd by a farm of 5 web-/application and database
servers
 - The whole Live-Website is generated by Cocoon 2.0.1
 - The data (metadata, XML/XHTML-Fragments, Image data) is stored in a
relational database
 - Each page delivery consists af a bunch of complex aggregated
XSP-Pages using ESQL, transformed with XSLT-Stylesheets for different
layouts
 - Output is done in HTML, HTML Print version, PDF, RTF, Text (all
generated from the same content) and JPEGs (for graphical menus). (In
the live-site you will see at this moment only HTML output - the other
formats are used live in the near future).
 - For some reasons the caching mechanisms of Cocoon where not used but
it was decided to run this high-traffic Website on Vignette, using the
Vignette-Caching-Mechanisms.
 - Vignette is used for some other special community-features like
Online-Voting
 - The Content Management System itself is a traditional JSP/Java-Based
n-tiered System running in IE5 and higher and Netscacpe 4.7 and higher,
using a java applet for authoring formatted XHTML fragements. Some
additional feaures: Complex User Roles, simple Workflow,
Image+Link-Management etc.
 - A sort of 'cache manager daemon' does on-demand-regeneration of
changed pages
 - The system supports the administration of several sites in the same
web farm with completely different layouts
 - The system is used by up to 200 editors who can edit content -
without having to know anything about HTML or XML.


In late 2000 we took a first look at Cocoon 1 and did some prototyping
and implemented the system using Cocoon 2 since it reached first beta.
We were very impressed by the features and architecture of cocoon. The
first architecture was planned as a vignette-only website, but because
the lack of sufficient XML-support in Vignette (and other reasons) we
decided to use Cocoon as core system and Vignette only for caching and
cluster management and never looked back!

Using the sitemap-concept of Cocoon 2 it was very easy to implement the
cryptic Vignette URL syntax like ..xyz/0,938,123,00.htm and Vignette
Integration was made very easy.

Thanks to all developers maintaining and extending cocoon!
Its an excellent system! (some wishes, of course, remain)

The Content Managemenet System itself is unfortunately closed-souce, but
perhaps we can give some of our cocoon-related know-how as 'power-user'
back to the community in the future.

Stefan

--
If you like marketing stuff see the official press release for this
project:
http://www.gedas.com/press/releases_2001/release2001_12_11.asp
(you will find contact info for commercial contacts there too)
In case you don't know what Vignette is go http://www.vignette.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]




AW: How to define custom parameter for map:serialize?

2002-03-08 Thread Stefan Seifert


snip/

 This was discussed several times and the result is: serializers must
be
 unaware of environment they running in and always produce same
response
 independent of environment state. IIRC, this has to do with the
 caching. Implement custom transformer if you want, it can have
 parameters.

The problem is we have written a template-based serializer. The
pipeline generates the data, and the serializer uses the template and
the date to produce the output. The template is unfortunately not in
XML-Format, so it cannot be processed in the pipeline. Instead the
template filename should be passed as parameter to the serializer.

If caching is the only reason for not being able to allow
pipeline-dependent parameters - in this case it would be simple to not
use the caching (i.e. do not implementing the Cachable-Interface) for
this special serializer and there should be no problem with caching.

In the existing C2 architecture the lack of pipeline-dependent
parameters is quite limiting.

Now the only solution is to put the template parameter in the XML stream
to parameterize the serializer (but this is mixing of content and
formatting information) or to fix it in the serializer definition and
duplicate the serializer for each different parameter which is even
worse (and it would be not possible to get the parameter definition from
a database or other source).

Patching cocoon for our needs in this case is no option either, because
this would change interfaces in the heart of the pipeline processing
and we would not be able to upgrade to future cocoon-versions without
problems.

I think a lot of other serializers would benefit from pipeline-dependent
parameters, too, i.e. the compressing factor/background color of the svg
serializer or the doctype of the HTML serializer (just think of the
problems of some Netcape 6 version with some special doctype
definitions).

Stefan

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




AW: How to define custom parameter for map:serialize?

2002-03-08 Thread Stefan Seifert

No, output ist RTF. No, before you ask: we cannot use FOP and the
builtin RTF Serializer because we have some special requirements not
supported by FOP (i.e. automatic line numbering which is supported by
Word/RTF, but not in FOP).

Seeing your answers i'm thinking about another way, that seems quite
hacked for me: Writing a transformer that uses the incoming data and our
Template, puts all generated RTF in one huge single XML Element and  a
custom serializer serializes this without changes as text output.

Is this the cleanest solution in Cocoon??

Stefan

 -Ursprüngliche Nachricht-
 Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 16:17
 An: [EMAIL PROTECTED]
 Betreff: RE: How to define custom parameter for map:serialize?
 
 
  From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
  
  snip/
  
   This was discussed several times and the result is: serializers
 must
   be
   unaware of environment they running in and always produce same
   response
   independent of environment state. IIRC, this has to do with the
   caching. Implement custom transformer if you want, it can have
   parameters.
  
  The problem is we have written a template-based serializer. The
  pipeline generates the data, and the serializer uses the 
 template and
  the date to produce the output.
 
 Is output in XML format? (HTML?). If yes, than your serializer is
 perfect candidate for transformer.
 
 
  The template is unfortunately not in
  XML-Format, so it cannot be processed in the pipeline.
 
 It is Ok, it is not required to be XML (see above).
 
 
  Instead the
  template filename should be passed as parameter to the serializer.
  
  If caching is the only reason for not being able to allow
  pipeline-dependent parameters - in this case it would be 
 simple to not
  use the caching (i.e. do not implementing the 
 Cachable-Interface) for
  this special serializer and there should be no problem with caching.
  
  In the existing C2 architecture the lack of pipeline-dependent
  parameters is quite limiting.
 
 You can try and open the discussion on the dev list.
 
 
  
  Now the only solution is to put the template parameter in the XML
 stream
  to parameterize the serializer (but this is mixing of content and
  formatting information) or to fix it in the serializer 
 definition and
  duplicate the serializer for each different parameter which is even
  worse (and it would be not possible to get the parameter definition
 from
  a database or other source).
 
 Or to write a transformer. Clean and (btw) cacheable solution.
 
  
  Patching cocoon for our needs in this case is no option either,
 because
  this would change interfaces in the heart of the pipeline 
 processing
  and we would not be able to upgrade to future 
 cocoon-versions without
  problems.
  
  I think a lot of other serializers would benefit from
 pipeline-dependent
  parameters, too, i.e. the compressing factor/background color of the
 svg
  serializer or the doctype of the HTML serializer (just think of the
  problems of some Netcape 6 version with some special doctype
  definitions).
  
  Stefan

-
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 define custom parameter for map:serialize?

2002-03-07 Thread Stefan Seifert


We have written a custom serializer and want to specify a custom
parameter in the sitemap pipeline, not in serializer definition.

This works

  map:serializers
map:serializer name=serializerxyz mime-type=... logger=...
src=...
parameter name=param1 value=xyz/
/map:serializer
  /map:serializers

but the parameter is fixed for the whole sitemap.

But we want to define the parameter in the pipeline like:

map:match pattern=...
  ...
  map:serialize type=serializerxyz
parameter name=param1 value=xyz/
  /map:serialize
/map:match

How ist this possible? We found no fitting interface to accomplish this
(SitemapOutputComponent does not define a setup-Method like
OutputModelComponent).

Any ideas? Is it not possible to define parameters for serializers?

Stefan

-
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: CPU throttling under cocoon

2002-02-15 Thread Stefan Seifert

In most cases this results from running tomcat 3.x and Netscape 4.x at
the same time under NT/W2K.
Solution: Open Task Manager and set the Process Priority for
netscape.exe to low. Unfortunately you have to do this each time you
start Netscape 4.x.

Stefan

 -Ursprüngliche Nachricht-
 Von: Sean Malone [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 14. Februar 2002 23:18
 An: [EMAIL PROTECTED]
 Betreff: RE: CPU throttling under cocoon
 
 
 I think that this may be related to tomcat, several times I 
 have encountered
 this problem on NT4 and Windows 2000. These were applications 
 running in the
 tomcat 3.2 environment only (cocoon not installed). The 
 applications still
 function but the cpu shows 100%
 
 -Original Message-
 From: Stephen Clarke [mailto:[EMAIL PROTECTED]]
 Sent: 14 February 2002 18:17
 To: Cocoon
 Subject: CPU throttling under cocoon
 
 
 Hi,
 Is anyone aware of a CPU throttling problem with Cocoon. I've 
 been having a
 problem on win2k where the cpu goes up to 100% and stays 
 there. I am now
 convinced it is either tomcat or cocoon, but most likely 
 cocoon. No problem
 last couple of days when I wasn't using cocoon. Back to work on cocoon
 today, CPU throttles. I close down Tomcat and it stops. CPU 
 back to 3%.
 Maybe it's Java, I don't know. But does anyone know how to 
 deal with it. I
 can't run a machine with a CPU behaving like this.
 Please help if you can, or let me know if this is a known problem,
 Thanks.
 --
 Best,
 Stephen Clarke
 
 
 -
 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]




AW: Multi - Page Tables Examples

2002-01-15 Thread Stefan Seifert

Yes, that is possible. We did it with cocoon and the recent FOP-Releases
(although our tables usually do not span more than two pages). The Table
header is automatically repeated on every page, works quite well.
The reference we used is
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html

But, as a limitation of FOP, you have to explicit layout all column
widths exactly and put all cell values in fo:block-Elements, or you will
get no correct output or no output at all. See FOP-Documentation for
this limitations.

Stefan

 -Ursprüngliche Nachricht-
 Von: Skladov, Victor [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 15. Januar 2002 09:56
 An: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Betreff: FO: Multi - Page Tables Examples
 
 
 Hi to all!
 
 The question is: is it possible to produce multi - page 
 tables with FO?
 Our tables take 1 to 5 pages.
 Are there any good examples?
 Can anybody point me in the right direction?
 
 Regards and best wishes,
 Viktor
 
 
 -
 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]




AW: Specifying XSL sheet for client side translation in XSP?

2002-01-03 Thread Stefan Seifert

I solved a similiar problem using a XSL stylesheet which only puts a
xml:stylesheet processing instructing in the resulting XML-Stream before
it is send to the browser.

Use a stylesheet like this (i called it add_stylesheet_pi.xsl):

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:strip-space elements=*/
xsl:param name=stylesheet/
xsl:template match=*
  xsl:text disable-output-escaping=yeslt;?xml-stylesheet
type=text/xsl href=/xsl:textxsl:value-of
select=$stylesheet/xsl:text
disable-output-escaping=yes?gt;/xsl:text
  xsl:copy-of select=./
/xsl:template
/xsl:stylesheet


And correct your Sitemap as follows:

   map:match pattern=browsertest/
map:generate src=reci-vba.xml/
map:select type=browser
   map:when test=explorer6
  map:transform src=stylesheets/add_stylesheet_pi.xsl
map:parameter name=stylesheet
value=stylesheets/reci2r.xsl/
  /map:transform
  map:serialize type=xml/
   /map:when
   map:otherwise
  map:transform src=stylesheets/reci2r.xsl/
  map:serialize type=html/
   /map:otherwise
/map:select
   /map:match


Stefan

 -Ursprüngliche Nachricht-
 Von: Rune Sandnes [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 28. Dezember 2001 15:44
 An: [EMAIL PROTECTED]
 Betreff: Specifying XSL sheet for client side translation in XSP?
 
 
 
 I have gotten the browser-detection features to work with Cocoon 2, I
 plan to serve
 raw XML and XSL to users of Explorer 6, so they can do the
 XSL-transformation client-side,
 Cocoon will do the transformation for other browsers.
 
 My sitemap looks like this, and it works nicely for static files:
 
map:match pattern=browsertest/
 map:generate src=reci-vba.xml/
 map:select type=browser
map:when test=explorer6
   map:serialize type=xml/
/map:when
map:otherwise
   map:transform src=stylesheets/reci2r.xsl/
   map:serialize type=html/
/map:otherwise
 /map:select
/map:match
 
 (The string explorer6 is defined further up in the sitemap, with
 browser name=explorer6 useragent=MSIE 6/
 i the map:selector bane=browser section)
 
 The start of the XML file in question looks like this:
 
   ?xml version=1.0 ?
   ?xml:stylesheet type=text/xsl href=/stylesheets/reci2r.xsl ?
 
 The ?xml:stylesheet part is ignored when Cocoon does the
 transformation, the
 transform specified in the sitemap takes preference.
 
 My problem is that I don't want to serve static XML files, 
 but generated
 content
 through XSP. When I try to do this operation with a generated 
 XSP file I
 can't 
 seem to get the ?xml:stylesheet instruction through to the 
 client. It
 just 
 disappears, no matter where in the XSP file I put it.
 
 Anyone know how to do this?
 
 
 Thanks,
 Rune,
 Klapp Media,
 Trondheim, Norway
 
 -
 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] Getting rid of unused XML namespaces in XML Streams from XSP

2001-12-19 Thread Stefan Seifert


Using XSP Pages and ESQL logicsheet to generate XML Streams results in
putting several namespaces used for internal XSP processing in the final
stream, i.e.:
xmlns:xsp=http://apache.org/xsp;
xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;

This is very ugly becaucse i have no need of these namespaces in the
final XML stream. In some cases i use ESQL to get XML fragments to
database fields with formatte XHTML-Paragraphs; in this case these
namespaces appear on every paragraph in the resulting HTML page
increasing the size and decreasing source-readability.

Is there any possibility to suppress this? I tried combinations of
exclude-result-prefixes in XSLT but this does not work for namespaces
resultet from XSP generation.

Another note: This problem was not there with the early betas of cocoon
2 and slipped in some time afterwards.

Stefan

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




AW: Cocoon and .NET

2001-12-18 Thread Stefan Seifert

If you write a .NET Service that has an XML-Output via HTTP it should be
easy to integrate this with coocoon (as data producer).

But it think it is nearly impossible at this time to write a real cocoon
generator or serializer with the benefits of SAX Event Processing and
reduced server round-trips because Microsoft has not support for the
Java2-Platform in .NET.

Stefan

 -Ursprüngliche Nachricht-
 Von: Bert Van Kets [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 18. Dezember 2001 11:15
 An: [EMAIL PROTECTED]
 Betreff: Cocoon and .NET
 
 
 Does anybody know where I can find more info on integrating .NET with 
 Cocoon?  For example writing serializers or generators in .NET.
 Our company would like to use Cocoon as a framework, but most of our 
 programmers are into Microsoft programming.  I know that some 
 people will 
 think I'm heavily swearing at the moment, but I wish to use 
 the best of 
 both worlds and can only use the knowledge available in our company.
 Thanks,
 Bert

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




AW: [C2] Newbie: Adding doctype to xhtml output?

2001-12-17 Thread Stefan Seifert

Try adding the elements doctype-public, doctype-system in your
sitemap to the HTML-Serializer like the following:

map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
  doctype-public-//W3C//DTD HTML 4.01//EN/doctype-public
  doctype-systemhttp://www.w3.org/TR/html4/strict.dtd/doctype-system
  encodingUTF-8/encoding
/map:serializer

Stefan

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 17. Dezember 2001 18:06
 An: [EMAIL PROTECTED]
 Betreff: [C2] Newbie: Adding doctype to xhtml output?
 
 
 
 Hi,
 
 I was wondering what the correct way add a doctype to xhtml output is?
 Right now my xsl looks like this:
 
 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns=http://www.w3.org/TR/xhtml1/strict;
 xsl:output method=xml standalone=yes 
 doctype-public=-//W3C//DTD XHTML
 1.0 Strict//EN
 doctype-system=DTD/xhtml1-strict.dtd /
 xsl:template match=/
 xsl:text disable-output-escaping=yes!DOCTYPE html PUBLIC
 -//W3C//DTD XHTML 1.0 Strict//EN DTD/xhtml1-strict.dtd
 /xsl:text
 html
 ...
 
 which results in output:
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 DTD/xhtml1-strict.dtd
 html xmlns=http://www.w3.org/TR/xhtml1/strict;
 ...
 
 Is this the correct way to do this?  The xsl:text
 disable-output-escaping=yes!DOCTYPE html PUBLIC -//W3C... part
 seems like a hack to me.  Why doesn't simply specifying the 
 doctype-public
 and doctype-system attributes in the xsl:output element result in the
 doctype being added?  I haven't made any changes to my 
 sitemap file.  Is
 there something I should do there that would be more appropriate?
 
 Thanks!
 
 Ian
 
 .
 
 
 -
 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]




AW: Cocoon2 and j2sdkee1.2.1 ?

2001-09-26 Thread Stefan Seifert

Hallo Roman.

 Did anyone manage to make cocoon2 work with the j2sdkee1.2.1?

 1. cocoon2 could not access the jar-files in the WEB-INF/lib dir so I
 extracted them all into the WEB-INF/classes dir

Did you try to set the Parameter init-classloader to true in the
cocoon servlet init parameters in web.xml? I encountered some problems
too when accessing additional jars in WEB-INF/lib without setting this
parameter on Tomcat 3.2.3 (but standalone without j2sdkee1.2.1).

Stefan

-
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] How to Configure MRUMemoryStore/Pipeline-Caching

2001-09-06 Thread Stefan Seifert


Has anyone further information concerning the MRUMemoryStore-Settings in
cocoon.xconf?
It is commentent in the File, but on several questions i found no
answers:

 - Why are there three MRUMemoryStores? One store, one stream-cache,
on event-cache?
 - What exactly is cached in store?
 - What exactly is cached in stream-cache?
 - What exactly is cached in event-cache? 
 - Are the memory-Settings like heapsize shared by the three stores or
parallel (means that you have to plan for 3*heapsize memory allocation
using the all three stores)?

Stefan

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




AW: esql, get-xml and xsp:logic

2001-08-20 Thread Stefan Seifert

Take a look at the generate Java class behind the XSP page - and you
will see the problem. get-xml does not an xml string, but a xml dom
element object (or sax events in cocoon 2). In your second case there
was just the .toString()-Method of org.w3c.dom.Element called.

I can see not much sense in putting the xml fragment in a string (i
think you had some misleading thinking here), but if you really need it,
just use get-string instead of get-xml, this returns the plain text of
the column.

Stefan

 -Ursprüngliche Nachricht-
 Von: Brent L Johnson [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 21. August 2001 01:16
 An: Cocoon-Users
 Betreff: esql, get-xml and xsp:logic
 
 
 I've been using esql:get-xml column=COLNAME 
 root=fragment/ and it's
 been working perfectly.  But, I've found a problem when 
 trying to set a
 String inside an xsp:logic tag to that.  Make any sense?  
 Here's the code
 that works...
 
 esql:row-results
 TEST: esql:get-xml column=mycol root=fragment/
 /esql:row-results
 
 But, I want to set a string to that value.. e.g.
 xsp:logic
 String myval = esql:get-xml column=mycol root=fragment/;
 /xsp:logic
 
 Doing this I get the following error:
 Incompatible type for =. Can't convert org.w3c.dom.Element to
 java.lang.String.
 
 Then I tried this (which ALMOST works):
 xsp:logic
 String myval =  + esql:get-xml column=mycol root=fragment/;
 /xsp:logic
 
 Unfortunately - this only gives me the string [fragment: 
 null].  Does this
 have something to do with the order that the XSP and XSL is 
 processed???
 
 Thanks,
 
 - Brent

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




AW: formatting from the DB coming out as text

2001-08-19 Thread Stefan Seifert

Use get-xml from the esql logicsheet in your xsp pages and the copy-of
XSLT-Command in your XSLT-Stylesheet. See several postings on this issue
in this mailing list. Note that the XML in the database has to be a
well-formed xml document with root node etc.

Stefan

 -Ursprüngliche Nachricht-
 Von: Liam Morley [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 19. August 2001 11:29
 An: [EMAIL PROTECTED]
 Betreff: formatting from the DB coming out as text
 
 
 I have news articles stored in the database. When I use 
 Cocoon to extract
 them, p/ is converted to lt;p/gt;, and so the actual 
 formatting of
 the news article is not shown. How do I fix this?
 
 Thanks...
 
 ---
 Liam Morley
 
 light the deep, and bring silence to the world.
 light the world, and bring depth to the silence.

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




AW: JRE 1.3.1 problem

2001-08-17 Thread Stefan Seifert

We use the same configuration (but Tomcat 3.2.3, not Tomcat 3.2.2), it
works fine (though we hat to set the cocoon-parameter init-classloader
in web.xml to true).

Stefan

 -Ursprüngliche Nachricht-
 Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 17. August 2001 14:30
 An: Cocoon-users
 Betreff: JRE 1.3.1 problem
 
 
 
 Anyone having problems with SUN's JRE 1.3.1 and Cocoon 2.0b2 ?
 
 I tried it, but I had to go back to JRE 1.3.0... 
 disappointing, isn't ?
 
 
 Best regards,
 
 P.S.
 Complete configuration is:
 - Windows 2000 Professional SP2
 - IIS 5.0
 - SUN JRE 1.3.1 (to make the whole thing work, I had to use 1.3.0)
 - Tomcat 3.2.2
 - Cocoon 2.0 b2
 
 -
Luca Morandini
GIS Consultant
 [EMAIL PROTECTED] 
   +39 0744 59  85  1 Office
   +39 0335 681 02 12 Mobile
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 -
 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]




AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert

Its not a cocoon, but a XSL-Problem. Try the following:

xsl:template match=Member
  xsl:for-each select=*
xsl:if test=position()1
  xsl:value-of select=$delimiter/
/xsl:if
xsl:value-of select=./
  /xsl:for-each
/xsl:template

Stefan

 -Ursprüngliche Nachricht-
 Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 13. August 2001 14:01
 An: '[EMAIL PROTECTED]'; cib
 Betreff: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Hi! I have an XSL stylesheet that I typed from a tutorial and 
 it would not
 work under Cocoon2. Yet, it worked fine when I used MSXML4. 
 (Thus, the only
 difference between Cocoon and MS is the parser.)
 
 If requested, I can attach the entire stylesheet and XML 
 documents, but the
 offending template is:
 xsl:template match=Member
   xsl:for-each select=*[position() lt; last()]
   xsl:value-of select=./
   xsl:value-of select=$delimiter/
   /xsl:for-each
   xsl:value-of select=*[last()]/
 /xsl:template
 
 For some reason, Cocoon does not go through each node in the 
 xsl:for-each
 select=*[position() lt; last()] line. The best I could 
 get Cocoon2 to
 do is to only look at the last node. Does anyone know why?

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




AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert

I supposed it is not valid XSL, but i'm not sure.
Anyway i find the second approach quite easier to read and it works...
But this is not the right list for such a question - take a look at the
mulberry-list for XSL:
http://www.mulberrytech.com/xsl/xsl-list/index.html

Stefan

 -Ursprüngliche Nachricht-
 Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 13. August 2001 14:29
 An: '[EMAIL PROTECTED]'
 Cc: ':[EMAIL PROTECTED]'
 Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Thanks! Using your help, I did get the expected output by 
 replacing last()
 with the eventual translation, 4. So my new line read  xsl:if
 test=position()lt;4 . 
 
 Now, can you please explain what you meant by a 
 XSL-Problem? Should my
 original line work according to the W3 recommendations, or is 
 it the way the
 parsers interpret things? Again, it works using MSXML4.0 but 
 not Cocoon2.
 Just wondering so I could identify future instances that are similar.
 
 Thanks again.
 
 -Original Message-
 From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
 Sent: August 13, 2001 8:19 AM
 To: [EMAIL PROTECTED]
 Subject: AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Its not a cocoon, but a XSL-Problem. Try the following:
 
 xsl:template match=Member
   xsl:for-each select=*
 xsl:if test=position()1
   xsl:value-of select=$delimiter/
 /xsl:if
 xsl:value-of select=./
   /xsl:for-each
 /xsl:template
 
 Stefan
 
  -Ursprüngliche Nachricht-
  Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 13. August 2001 14:01
  An: '[EMAIL PROTECTED]'; cib
  Betreff: Why doesn't Cocoon2 recognize [position() lt; last()] ??
  
  
  Hi! I have an XSL stylesheet that I typed from a tutorial and 
  it would not
  work under Cocoon2. Yet, it worked fine when I used MSXML4. 
  (Thus, the only
  difference between Cocoon and MS is the parser.)
  
  If requested, I can attach the entire stylesheet and XML 
  documents, but the
  offending template is:
  xsl:template match=Member
  xsl:for-each select=*[position() lt; last()]
  xsl:value-of select=./
  xsl:value-of select=$delimiter/
  /xsl:for-each
  xsl:value-of select=*[last()]/
  /xsl:template
  
  For some reason, Cocoon does not go through each node in the 
  xsl:for-each
  select=*[position() lt; last()] line. The best I could 
  get Cocoon2 to
  do is to only look at the last node. Does anyone know why?
 
 -
 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]




AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??

2001-08-13 Thread Stefan Seifert

I think in this case, this is not a cocoon-bug, but a xalan-bug (which
cocoon uses internally for XSLT), and xalan has its own mailing lists,
too (see apache website).

Stefan

 -Ursprüngliche Nachricht-
 Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 13. August 2001 16:34
 An: '[EMAIL PROTECTED]'; Stefan Seifert
 Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 Thanks for the reply. Actually, the XSL is valid and it should work
 according to the W3 Recommendations. The only conclusion left 
 is that there
 is a bug in Cocoon2, which is what I am trying to verify. So 
 it was posted
 in the correct list.
 
 -Original Message-
 From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
 Sent: August 13, 2001 8:39 AM
 To: [EMAIL PROTECTED]
 Subject: AW: Why doesn't Cocoon2 recognize [position() lt; last()] ??
 
 
 I supposed it is not valid XSL, but i'm not sure.
 Anyway i find the second approach quite easier to read and it works...
 But this is not the right list for such a question - take a 
 look at the
 mulberry-list for XSL:
 http://www.mulberrytech.com/xsl/xsl-list/index.html
 
 Stefan
 
  -Ursprüngliche Nachricht-
  Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 13. August 2001 14:29
  An: '[EMAIL PROTECTED]'
  Cc: ':[EMAIL PROTECTED]'
  Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; 
 last()] ??
  
  
  Thanks! Using your help, I did get the expected output by 
  replacing last()
  with the eventual translation, 4. So my new line read  xsl:if
  test=position()lt;4 . 
  
  Now, can you please explain what you meant by a 
  XSL-Problem? Should my
  original line work according to the W3 recommendations, or is 
  it the way the
  parsers interpret things? Again, it works using MSXML4.0 but 
  not Cocoon2.
  Just wondering so I could identify future instances that 
 are similar.
  
  Thanks again.
  
  -Original Message-
  From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
  Sent: August 13, 2001 8:19 AM
  To: [EMAIL PROTECTED]
  Subject: AW: Why doesn't Cocoon2 recognize [position() lt; 
 last()] ??
  
  
  Its not a cocoon, but a XSL-Problem. Try the following:
  
  xsl:template match=Member
xsl:for-each select=*
  xsl:if test=position()1
xsl:value-of select=$delimiter/
  /xsl:if
  xsl:value-of select=./
/xsl:for-each
  /xsl:template
  
  Stefan
  
   -Ursprüngliche Nachricht-
   Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
   Gesendet: Montag, 13. August 2001 14:01
   An: '[EMAIL PROTECTED]'; cib
   Betreff: Why doesn't Cocoon2 recognize [position() lt; last()] ??
   
   
   Hi! I have an XSL stylesheet that I typed from a tutorial and 
   it would not
   work under Cocoon2. Yet, it worked fine when I used MSXML4. 
   (Thus, the only
   difference between Cocoon and MS is the parser.)
   
   If requested, I can attach the entire stylesheet and XML 
   documents, but the
   offending template is:
   xsl:template match=Member
 xsl:for-each select=*[position() lt; last()]
 xsl:value-of select=./
 xsl:value-of select=$delimiter/
 /xsl:for-each
 xsl:value-of select=*[last()]/
   /xsl:template
   
   For some reason, Cocoon does not go through each node in the 
   xsl:for-each
   select=*[position() lt; last()] line. The best I could 
   get Cocoon2 to
   do is to only look at the last node. Does anyone know why?
  
  
 -
  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]




AW: XML in database, how to pass to Cocoon?

2001-08-13 Thread Stefan Seifert

ESQL is one of the builtin cocoon stylesheets, there are some samples in
the cocoon distribution and documataion about it in the cocoon docs.

 -Ursprüngliche Nachricht-
 Von: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 13. August 2001 17:21
 An: '[EMAIL PROTECTED]'
 Betreff: RE: XML in database, how to pass to Cocoon?
 
 
 OK, I read up on ESQL and can see the database connection 
 params and SQL. Is
 this the way that I would read my XML from the database 
 rather than from a
 file?
 How does this integrate with Cocoon?
 Erich
 
 -Original Message-
 From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 13, 2001 10:41 AM
 To: [EMAIL PROTECTED]
 Subject: AW: XML in database, how to pass to Cocoon?
 
 
 
  I have been using Cocoon 1 for a little while and have been 
 happy with
 the
  results. Using the browser I can enter a URL that contains 
 the path to
 the
  XML file and then Cocoon renders the PDF in the browser. This  works
 well.
  Good job to all involved.
  I do have a couple of questions though.
  
  1) The technique described above works well for XML files but in my
  application I will read the XML from a blob in the database (which I
 know
  how to do). Say I get the XML from the database and put it into a
 String. Is
  there any hooks in Cocoon so that I can call a method and 
 pass it the
 XML
  string? Where can I see the Cocoon servlets source?
 
 Use the esql-Stylesheet with get-xml, with this you can put a XML tree
 from the database in you xml stream generated by cocoon. The 
 xml has to
 be wellformed in the database.
 
  2) Has anyone managed to get background images working in FOP?
 
 Never tried.
  
  3) Has anyone managed to format dates in FOP?
 
 Unfortunately XSLT has no date formatting functions. But you 
 can use the
 Java Core classes or you own classes for formatting in XSLT using the
 java extension support in Xalan. It's the xalan-specific, of 
 course. The
 XSLT 1.1 Specs define a product-inpdependet extension 
 support, but this
 does not work in the current xalan-version used by cocoon 2. See
 Xalan-Homepage on the apache website.
 
 Stefan
 
 -
 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]




AW: Ancestor and Cocoon 2

2001-07-20 Thread Stefan Seifert

Of course. ancestor is not a function but a integral part of the XPath
specification and fully supportet by the XSLT processor used by Cocoon
2.

Use it like this:

xsl:value-of select=ancestor::NameOfNode/

Look in the XPath specifications for further documentation.

Stefan

 -Ursprüngliche Nachricht-
 Von: Hege Hansbakk [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 19. Juli 2001 11:14
 An: [EMAIL PROTECTED]
 Betreff: Ancestor and Cocoon 2
 
 
 Is it possible to use the ancestor function in Cocoon 2, even 
 though it
 uses the SAX parser? The error I get is that it can not find the
 function...
 
 Hege

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




AW: the problem of nbsp

2001-07-18 Thread Stefan Seifert

Or, just put a Entity Reference Declaration in your XML document like:

?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE root [!ENTITY nbsp #160;]
root
  ...
/root

or, you can directly use #160; instead of nbsp; in you XML source
without any further declarations.

Stefan

 -Ursprüngliche Nachricht-
 Von: andre powroznik [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 18. Juli 2001 09:31
 An: [EMAIL PROTECTED]
 Betreff: Re: the problem of nbsp
 
 
 Did you try putting it in a CDATA ?
 
 ![CDATA[nbsp;]]
 
 Drasko Kokic wrote:
 
  Hello again,
 
  could anybody provide some code how to overcome this
  problem?!
 
  How should the nbsp be defined in XSL so that after
  serialisation it only produces nbsp;?
 
  TIA
  Drasko
 
  --- Frans Thamura [EMAIL PROTECTED] wrote:
   Try used XSL syntax, nbsp is HTML syntax..
  
   I forgot the value, but it is look like #Ax0 or
   something.. that works in my
   script
  
   Frans
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, June 05, 2001 12:12 AM
   Subject: the problem of nbsp
  
  
hi,
   
I use the nbsp; to define a empty roll or column,
   but it result a
   error(The entity nbsp was
referenced, but not declared) when the xsl is
   parsed. May I know how to
   solve this problem ?
   
Thank you.
   
Kok Choon
   
   
  
  
E-mail: [EMAIL PROTECTED]
Date: 06/05/01
Time: 01:12:52
   
This message was sent by Z-Mail Pro - from
   NetManage
NetManage - delivers Standards Based IntraNet
   Solutions
   
  
  
   
   
  
  
 -
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]
  
  
  
  _
   Do You Yahoo!?
   Get your free @yahoo.com address at
   http://mail.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]
  
 
  __
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.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]
 
 
 -
 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]




AW: AW: the problem of nbsp

2001-07-18 Thread Stefan Seifert

Well, some conversion process in you mailing system or in the mailing
list stripped the elementary pieces of my.

In the   (or the second sentence between use and instead) should
be (here with spaces between):   # 1 6 0 ;   ( in words: amp,
double-cross, one, six, zero, semicolon )

Stefan

 -Ursprüngliche Nachricht-
 Von: Drasko Kokic [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 18. Juli 2001 11:30
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: the problem of nbsp
 
 
 Thanks for your suggestion :-)
 
 Unfortunately,   is not exactly same as nbsp;
 
 Drasko
 
 --- Stefan Seifert [EMAIL PROTECTED] wrote:
  Or, just put a Entity Reference Declaration in your
  XML document like:
  
  ?xml version=1.0 encoding=iso-8859-1?
  !DOCTYPE root [!ENTITY nbsp  ]
  root
...
  /root
  
  or, you can directly use   instead of nbsp; in
  you XML source
  without any further declarations.
  
  Stefan
  
   -Ursprüngliche Nachricht-
   Von: andre powroznik
  [mailto:[EMAIL PROTECTED]]
   Gesendet: Mittwoch, 18. Juli 2001 09:31
   An: [EMAIL PROTECTED]
   Betreff: Re: the problem of nbsp
   
   
   Did you try putting it in a CDATA ?
   
   ![CDATA[nbsp;]]
   
   Drasko Kokic wrote:
   
Hello again,
   
could anybody provide some code how to overcome
  this
problem?!
   
How should the nbsp be defined in XSL so that
  after
serialisation it only produces nbsp;?
   
TIA
Drasko
   
--- Frans Thamura [EMAIL PROTECTED] wrote:
 Try used XSL syntax, nbsp is HTML syntax..

 I forgot the value, but it is look like #Ax0
  or
 something.. that works in my
 script

 Frans

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 12:12 AM
 Subject: the problem of nbsp


  hi,
 
  I use the nbsp; to define a empty roll or
  column,
 but it result a
 error(The entity nbsp was
  referenced, but not declared) when the xsl
  is
 parsed. May I know how to
 solve this problem ?
 
  Thank you.
 
  Kok Choon
 
 

   
 
 
  E-mail: [EMAIL PROTECTED]
  Date: 06/05/01
  Time: 01:12:52
 
  This message was sent by Z-Mail Pro - from
 NetManage
  NetManage - delivers Standards Based
  IntraNet
 Solutions
 

   
 
 
 
 


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



   
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.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]

   
   
  __
Do You Yahoo!?
Get personalized email addresses from Yahoo!
  Mail
http://personal.mail.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]
   
   
  
 
 -
   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]
  
 
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.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

AW: [C2] Redirects

2001-07-11 Thread Stefan Seifert

  Anders Lindh wrote:
   
   Migrating from C1 becomes so much more complicated
   when XSP redirects are not available...
  
  I agree. There's no way I can port my old Cocoon1 apps 
 without redirects
  being available conditionally (i.e. depending on user 
 input). Perhaps
  this is possible with the Sitemap, but I don't know how.
 
 You should definitly have a look into actions...
 --
 Torsten

This works perfectly using actions. I solved a problem where the
stylesheet for a document depends on a field in the database using
actions.
I think you can solve nearly everything with the action concept, though
its on the first sight a bit more complicated than in cocoon 1 (but it's
better designed now).

Stefan

-
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] Why different Pipelines

2001-07-11 Thread Stefan Seifert

Hello.

I've one question concerning pipelines in C2: What is the difference in
using one large pipeline to splitting it up in several smaller
pipelines? I cannot see a differene from the documentation? Any
performance/feature differences?

Is it possible to use parts of one pipeline in another pipeline (i.e.
with the aggregator)?

Stefan

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




AW: [C2] Possible Solution for PDF Bug with IE 5.x !??

2001-07-05 Thread Stefan Seifert

Hello Ulrich.

Just one point: Most of the workarounds do not work with C2 (did you
ever try them with C2)? The one you described with a content disposition
unlike *.pdf works, but it is not acceptable for the user (who expectes
to open the pdf in the browser window and could not do the additional
steps saving to disc and displaying).

And a second: I downloaded your example from ulim/iebug and experimented
a bit with it. If i save the generatet pdf in a file and put it in the
same directory and call it, it works in all browsers, including IE 5.5.
How do you explan this? There should be no difference between the
streams?

And third (*personal opinion*): If you develop cocoon applications for
the internet, you have do deal with the millions of installed IE's out
there (market share about 70%), it is difficult to not support it. And -
let all political aspects alone - the IE is definetly the better
product, concerning accuracy of displaying HTML Pages, Framesets etc.,
Speed and stability. And with Netscape discontinuing the Browser at all
IE will widespread even more. Please, i know Microsoft has a bad
reputation in open souce communities (with right, of course), but this
is my personal opinion and experience from serveral Intra- and
Internet-projects in the last few years.

So i'm still not sure if its really (only) an IE Bug, and that there are
still possibilites to optimze this in cocoon.

Stefan

 That being said, there are two currently known workarounds, both
posted to
 the list recently (setting a content-disposition header or configuring
 Acrobat as external application). Perhaps you have discovered a third
 workaround. But it is not ok to use these workarounds, instead we all
 should discourage people from using IE by *NOT* supporting its bugs.
We
 are talking about intentional bugs here, introduced to undermine the
 OpenSource and standards movement.
 
 Plus, it's happened three or four times before: every time we find a
 workaround, Microsoft will change IE in the next version to not
support
 this workaround anymore. Then we have to find a new workaround, which
will
 work until the next version - but the users of the older versions of
IE
 will not be supported anymore. We are not helping users if we go into
a
 coding competition with Microsoft.

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




AW: hello.pdf not displaying anything

2001-07-05 Thread Stefan Seifert

Take a look at my posting from yesterday - [C2] Possible Solution for
PDF Bug with IE 5.x !??. I explained it in detail. Ask me for further
questions.

In my tests a realized big problems because of the lack of
content-length for FOP-generated PDF's. With content-length it worked
quite well.
This is a different problem than that with C1 (see Ulrich's Postings),
because C1 properly sends a content-length.

Stefan

 -Ursprüngliche Nachricht-
 Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 5. Juli 2001 13:47
 An: [EMAIL PROTECTED]
 Betreff: AW: hello.pdf not displaying anything
 
 
 Hi,
 
 I think we should focus on the real problem here and not raise
 any discussion about which browser is better, what you should
 use and why not to use anything else.
 I think this is the private decission of the user himself and
 noone's else.
 
 If there are problems with displaying PDF in any browser and if
 this can be solved by changing anything inside Cocoon 2 (without
 breaking something) we not only should do it - we will do it.
 
 So please, help us in solving the problem.
 
 
 Carsten 
 
 Open Source GroupsunShine - b:Integrated
 
 Carsten Ziegeler, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 www.sundn.de  mailto: [EMAIL PROTECTED] 
 
 
  Ulrich Mayring wrote:
  
  Piroumian, Konstantin wrote:
   
   Standarts are made to be supported, otherwise they are useless. 
  The reality
   is that IE is leading browser and I don't believe that anybody 
  will design
   his applications in standart, but less functional or simplified 
  way, only
   because that is not a standart way.
  
  Well, obviously you're not supporting the standards 
 movement. That is
  your choice, but if you're using standards-based, 
 OpenSource software
  for free, you should give something back. You are under no 
 obligation to
  do that, but I would expect from OpenSource users that they do not
  actively help MS perverting standards.
  
   I don't like Microsoft either and that's why I don't use 
 IIS or other
   Microsoft technologies that I can avoid, but I can't 
 avoid using IE and
   developing for IE, because it's impossible now. I think, 
 that the same
   situation is everywhere.
  Today you say you can't avoid developing for IE. If 
 everyone thinks like
  that, then tomorrow you won't be able to avoid using IIS. 
 Don't you see
  where that leads? Haven't you heard about the smart tags in the next
  Internet Explorer? MS is trying to take over the Web, plain 
 and simple.
  
  Are you suggesting the Web developers code around the smart tags by
  intentionally mis-spelling words, so IE doesn't recognize 
 them anymore,
  but human users will? Then the next version of IE will contain a
  dictionary of mis-spelled words. Then we're not only in a 
 coding-war,
  but also in a spelling-war with MS. Plus all the users of
  standards-compliant browsers would have to read intentionally
  mis-spelled words, even though their browser would 
 correctly render the
  words, if they were spelled correctly.
  
  If you are suggesting we should ignore HTTP to accomodate 
 IE, then that
  is the same thing as if you were suggesting we ignore the 
 dictionary and
  spell all words differently to avoid smart tags. The 
 dictionary is the
  law of spelling and HTTP is the law of the Web. Working 
 around either
  one is the bad guy's way - don't be a bad guy!
  
   According to your advice, we have to tell our users to use 
  Netscape (or so)
   if they want to get a PDF document. But often people don't have 
  any browser
   other than IE.
  
  Then they have to get one. There are so many browsers out there that
  there really is no reason to use IE.
  
  Ulrich
  
  -- 
  Ulrich Mayring
  DENIC eG, Systementwicklung
  
  
 -
  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]




AW: [C2] Possible Solution for PDF Bug with IE 5.x !??

2001-07-05 Thread Stefan Seifert



 Solution 2:
 
 Generate PDF, save it in temmp PDF file,
 redirect User's browser to this file (since content length is known -
no
 problems with IE),
 delete temp file 1 minute later.

I thought of that too, but how do delete the file 1 minute (or whatever)
later? Is there i simple solution in cocoon to do this in a properly
scheduled manner, without messing with spawned threads etc. Perhaps
there is a possibility in the avalon framework? Any ideas?

Stefan

-
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/Tomcat 3.2.2: Include Cocoon-Content in JSP

2001-07-03 Thread Stefan Seifert

I want to include the result of a cocoon transformation as part of
another JSP Page as follows:

... jsp content ...

%
String strIncludeURL = ../cocoon/meeting_agenda.htm?MeetingID=1;
%
jsp:include page=%=strIncludeURL% flush=true/

... jsp content ...


Unfortunately this does not work. If i use a JSP page as include
destination it works. If i type in the Coccon-URL directly, i get the
content right. But in combination i get nothing. The cocoon servlet is
mapped on /cocoon/*. meeting_agenda.htm is the result of an C2 pipeline
serialized as HTML.

Any ideas how to include a cocoon page in a JSP page? I've found a
sample using jsp:include with C1, but this seems not to work with C2.

Stefan

-
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] ESQL, get-xml and entities like nbsp;

2001-06-26 Thread Stefan Seifert

I use ESQL and get-xml to get XHTML-Fragments from the database.

The Problem: The XHTML conatins sometimes entities like nbsp;, which
are vaild for XTHML, but not for XML. In an XSL-Stylesheet i can use a
statement like

!DOCTYPE xsl:stylesheet [
!ENTITY % HTMLlat1 PUBLIC
   -//W3C//ENTITIES Latin 1 for XHTML//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent;
%HTMLlat1;
]

to integrate XHTML entities. But when i use get-xml in an XSP page, this
does not work; even if i put this statement in the XSP page.

Any idea to tell the XML parse internally used from get-xml to allow
these specific Entities?

Stefan

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




AW: XSP/ESQL Examples

2001-06-22 Thread Stefan Seifert


Take a look at the attached Cocoon 2 XSP Page. It uses multiple nested
queries with case switching, custom ordering etc. I'm not sure if its
used as intended from the xsp developers, but it fits perfectly to my
problem.


 -Ursprüngliche Nachricht-
 Von: Matt Sabourin [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 21. Juni 2001 19:12
 An: [EMAIL PROTECTED]
 Betreff: XSP/ESQL Examples
 
 I didn't get any responses to my earlier mail, so I'll try a different
 route.  Can anyone point me to some websites that have examples of 
 XSP/ESQL beyond those provided with Cocoon?  Is anyone using this
 combination on a large scale?  I'm specifically looking for some
 examples with multiple queries, passing data between queries, etc.
 
 Does anyone have any comments about Oracle's XSQL / XML products?
 Good, bad, easy to use, not worth it?
 
 tnx
 -m

 rs_rubrik.zip

-
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 - Dynamically choose XSL-Template in XSP

2001-06-14 Thread Stefan Seifert

Hello.

This is my problem: With Cocoon 1 I created a XSP-Page, which builds an
XML-Stream using the ESQL TagLib from a Database. The Path for the XSL
to use was also fetched from the database and applyed using the
following statement:

  xsp:pi target=xml-stylesheet
href=esql:get-string column=TemplateURL/
type=text/xsl
  /xsp:pi

Unfortunately this approach does not work with Cocoon2, where the
XSL-Transformation is defined in the pipeline-Definition. How is it
possible to solve this with Cocoon2?

Stefan

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




Problems with cocoon-2.0b1 and tomcat-4.0-b5

2001-06-12 Thread Stefan Seifert

Hello.

I tried running cocoon 2.0b1 with tomcat-4.0-b5 on Windows 2000 with JDK
1.3.1. It works, but it takes incredibly long to startup and compile
sitemaps etc.

I.e. calling the root at http://localhost:8080/cocoon takes something
about 10 minutes at a Pentium III-1 GHz, 512Meg RAM. Calling the simple
hello world-Sample still takes a minute or so.

Anyone else encountered this problem? I only installed cocoon 2 as
described in the docs via building the WAR-File and copying it to the
webapps directory.

Stefan Seifert

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