Re: Problems with internal redirection: empty output using a reader

2002-07-18 Thread Sven Kitschke



 Ooops:
   copying and touching hello-page.xml: works, works not, works, ...
 Can this be? OK. I will test it.

A new test case attached. Un-targz it and drop the directory into
cocoon/mount/.

The only difference between the hello-pages i can see are the file
dates. In the sitemap i have only variated the sample input files
and the generator type.

http://localhost:8080/cocoon/mount/fails/never1.html
http://localhost:8080/cocoon/mount/fails/always2.html
http://localhost:8080/cocoon/mount/fails/always3.html
http://localhost:8080/cocoon/mount/fails/always4.html
http://localhost:8080/cocoon/mount/fails/never5.html
http://localhost:8080/cocoon/mount/fails/never6.html
http://localhost:8080/cocoon/mount/fails/never7.html


HTH, Sven.



fails.tar.gz
Description: GNU Zip compressed data

-
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: Looking for help in the upcomming release

2002-07-12 Thread Sven Kitschke

Hi,

Klaus Bertram wrote:

 There is strange Unknown error by the index engine of Lucene!!
 System properties:
 Win 2000 Prof.
 jdk 1.4.0_01
 tomcat 4.0.4
 cvs from today
 

This may not help, but: The Lucene folks have released a version 1.2

a month ago. The files are available at

http://jakarta.apache.org/builds/jakarta-lucene/release/v1.2/
Is there any reason not to update?


 when tomcat is started as a service in Windows
 No Error in log files
 The tomcat engine throw a windows exception and the process stops.
 it works when tomcat is started  from a dos window with startup.
 

 on an system with tomcat4.0.1 and jdk1.3.1_02 and tomcat at service it work's nice.
 
 by the way the yahoo sample are blank
 
 Klaus
 




-
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: DTD comments in xinclude/cinclude transformer output

2002-07-03 Thread Sven Kitschke


Stephan Michels wrote:

 
 On Tue, 2 Jul 2002, Sven Kitschke wrote:
 
Ok, I've a patch against an actual cvs copy (cocoon_2_0_3_branch).
Should i create a patch entry at bugzilla?


[snip]

 
 I also noticed the bug, thanks for the patch.
 Patch is applied, please cross-check.
 
 Stephan Michels.
 
I can see the changes only in the HEAD branch. cocoon_2_0_3_branch

tag is at version 1.6.

Ciao and (HTH or TIA), Sven.




-
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: DTD comments in xinclude/cinclude transformer output

2002-07-02 Thread Sven Kitschke

Ok, I've a patch against an actual cvs copy (cocoon_2_0_3_branch).
Should i create a patch entry at bugzilla?

Sven Kitschke wrote:

 Hi,
 
 using the cinclude or the xinclude transformer
 i get everytime the comments from the source
 documents DTD included. This results in ca.
 114 kB extra with the DocBook DTD.
 



--- E:\cvs_cocoon\xml-cocoon2\src\java\org\apache\cocoon\xml\IncludeXMLConsumer.java   
 2002-03-11 12:15:26.0 +0100
+++ IncludeXMLConsumer.java 2002-07-02 21:58:38.0 +0200
@@ -82,6 +82,7 @@
 private boolean ignoreEmptyCharacters = false;
 private boolean ignoreRootElement = false;
 private int ignoreRootElementCount;
+private boolean inDTD = false;
 
 /**
  * Constructor
@@ -214,10 +215,12 @@
 public void startDTD(String name, String public_id, String system_id)
 throws SAXException {
 // Ignored
+inDTD = true;
 }
 
 public void endDTD() throws SAXException {
 // Ignored
+inDTD = false;
 }
 
 public void startEntity(String name) throws SAXException {
@@ -242,7 +245,7 @@
 
 public void comment(char ary[], int start, int length)
 throws SAXException {
-if(lexicalHandler != null)
+if(!inDTD  lexicalHandler != null)
 lexicalHandler.comment(ary,start,length);
 }
 }



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


DTD comments in xinclude/cinclude transformer output

2002-07-01 Thread Sven Kitschke

Hi,

using the cinclude or the xinclude transformer
i get everytime the comments from the source
documents DTD included. This results in ca.
114 kB extra with the DocBook DTD.

Although I've not tried to reproduce bug #5973 and
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102507582917917w=2
this may be similar problems.

The testcase:
   tomcat 4.0.4 (was also with 4.0.1)
   cocoon 2.0.3 from cvs (ca. 23.05.2002)+ saxon/xerces

Directory structure:
cocoon/
   mount/
 dtdcomments/
   sitemap.xmap
   test.xml
   test2.xml
   test3.xml
   dtd/ (directory with DocBook DTD whitin)

TIA, Sven.



?xml version=1.0 encoding=ISO-8859-1?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
	!-- === Components  --
	map:components
		map:generators default=file/
		map:transformers default=xslt /
		map:readers default=resource/
		map:serializers default=html/
		map:selectors default=browser/
		map:matchers default=wildcard/
	/map:components
	!-- === Pipelines = --
	map:pipelines
	!-- === test = --
		map:pipeline
!-- Here i get the expected result --
			map:match pattern=testcase1.xml
map:generate src=test.xml/
map:serialize type=xml/
			/map:match
!-- Here i have the comments from within the dtd --
			map:match pattern=testcase2.xml
map:generate src=test2.xml/
map:transform type=xinclude/
map:serialize type=xml/
			/map:match
!-- Here i have also the comments from within the dtd --
			map:match pattern=testcase3.xml
map:generate src=test3.xml/
map:transform type=cinclude/
map:serialize type=xml/
			/map:match
		/map:pipeline 
	/map:pipelines
/map:sitemap
!-- end of file --


?xml version=1.0 encoding=UTF-8?
!DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN dtd/docbookx.dtd
article
	titleA stupid example/title
	paraThis is only a test file./para
/article


?xml version=1.0 encoding=UTF-8?
xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=test.xml /

?xml version=1.0 encoding=UTF-8?
ci:include xmlns:ci=http://apache.org/cocoon/include/1.0; src=test.xml / 


-
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: how to remove the DTD wriiten at the top ?

2002-07-01 Thread Sven Kitschke

Hi,

this seems to be some sort of Bug #5973. I've a similar
problem using the xinclude and the cinclude transformer.
I will send an extra email for this.

Sebastien SACARD wrote:

  Vadim Gritsenko wrote:
 
  From: Sebastien SACARD [mailto:[EMAIL PROTECTED]]

[snip]

  map:serializers default=html
map:serializer name=html mime-type=text/html; charset
  ISO-8859-1
  src=org.apache.cocoon.serialization.HTMLSerializer
  encodingISO-8859-1/encoding
  doctype-public-//W3C//DTD HTML 4.0 Transitional//EN
  /doctype-public
  doctype-systemhttp://www.w3.org/TR/REC-html40/loose.dtd/doctype-syste
  m
  omit-xml-declarationtrue/omit-xml-declaration
  indent1/indent
/map:serializer
 

[snip]

  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  http://www.w3.org/TR/REC-html40/loose.dtd;
  !--
Extensible HTML version 1.0 Transitional DTD
 
This is the same as HTML 4.0 Transitional except for


[snipped]

This are all comments from the DTD and its entities? Right?


Ciao Sven.




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