You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carlos Araya <el...@valinor.sjsu.edu> on 2000/06/08 06:27:17 UTC

Strange problem

I'm trying to troubleshoot the following problem:

I have an xml document
(http://valinor.sjsu.edu/~elrond/xml-novel/Story3.xml)

with an xsl style sheet
(http://valinor.sjsu.edu/~elrond/xml-novel/novel-xslt.xsl)

When I try to view it through a cocoon enabled server (apache 1.3.12
running JServ 1.1) and view the source, Cocoon keeps changing the root
element on my doctype declaration to HTML, eventhough it respects the
public and system identifiers.

However, if I use xalan from the command line, it does not do it and
respects (or ignores if you want) the DTD altogether. 

Is it a cocoon problem (might have goofed the config, but have looked
anywhere), an XSL-t problem, or just a plain stupid XML error?

Thanks

Carlos


--
Carlos E. Araya
WebCT Project Coordinator - New Media Specialist
Alquist Center for Instrucctional Development
San Jose State University
1 Washington Square
San Jose, Ca 95192-0026

email	: araya@sjsu.edu (prefered)		| Phone (408) 924 2859
	  elrond@valinor.sjsu.edu		| Pager (408) 308 1793
Web	: http://www.sjsu.edu/depts/alquist/	| Fax   (408) 924 2437
	  http://valinor.sjsu.edu/~elrond/	

finger elrond@valinor.sjsu.edu for PGP key
-- 
Note: you are currently using an unregistered evaluation copy of your 
life. Register now for the full-featured version and cheat codes!         





Re: Strange problem

Posted by Sven Kuenzler <sv...@tzi.de>.
Carlos Araya wrote:

> When I try to view it through a cocoon enabled server (apache 1.3.12
> running JServ 1.1) and view the source, Cocoon keeps changing the root
> element on my doctype declaration to HTML, eventhough it respects the
> public and system identifiers.
> 
> However, if I use xalan from the command line, it does not do it and
> respects (or ignores if you want) the DTD altogether.
> 
> Is it a cocoon problem (might have goofed the config, but have looked
> anywhere), an XSL-t problem, or just a plain stupid XML error?

You must tell Cocoon that you want a XSL transformation. Add the
following pi to Story3.xml

<?cocoon-process type="xslt"?>

and it should work.

HTH,
  Sven....